DGtal  0.9.3
Functions
testLambdaMST2D.cpp File Reference
#include <iostream>
#include <fstream>
#include <iterator>
#include <vector>
#include "DGtal/base/Common.h"
#include "ConfigTest.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/io/readers/PointListReader.h"
#include "DGtal/geometry/curves/ArithmeticalDSSComputer.h"
#include "DGtal/geometry/curves/estimation/LambdaMST2D.h"
#include "DGtal/geometry/curves/SaturatedSegmentation.h"
Include dependency graph for testLambdaMST2D.cpp:

Go to the source code of this file.

Functions

int main (int, char **)
 

Detailed Description

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Author
Kacper Pluta (kacpe.nosp@m.r.pl.nosp@m.uta@e.nosp@m.siee.nosp@m..fr ) Laboratoire d'Informatique Gaspard-Monge - LIGM, A3SI, France
Date
2014/10/03

Functions for testing class LambdaMST2D.

This file is part of the DGtal library.

Definition in file testLambdaMST2D.cpp.

Function Documentation

◆ main()

int main ( int  ,
char **   
)

Definition at line 98 of file testLambdaMST2D.cpp.

References DGtal::Trace::beginBlock(), DGtal::Trace::emphase(), DGtal::Trace::endBlock(), and DGtal::trace.

99 {
100  bool res = true;
101  testLambdaMST2D testLMST;
102  trace.beginBlock ( "Testing LambdaMST2D" );
103  trace.beginBlock ( "Testing point only calculation" );
104  res &= testLMST.lambda64ByPoint();
105  trace.endBlock();
106  trace.beginBlock ( "Testing calculation for whole curve" );
107  res &= testLMST.lambda64();
108  trace.endBlock();
109  trace.emphase() << ( res ? "Passed." : "Error." ) << endl;
110  trace.endBlock();
111  return res ? 0 : 1;
112 }
void beginBlock(const std::string &keyword="")
Trace trace
Definition: Common.h:137
double endBlock()
std::ostream & emphase()