DGtal 1.4.0
Loading...
Searching...
No Matches
testLambdaMST3D.cpp File Reference
#include <iostream>
#include <fstream>
#include <vector>
#include <iterator>
#include "DGtal/base/Common.h"
#include "ConfigTest.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/io/readers/PointListReader.h"
#include "DGtal/geometry/curves/Naive3DDSSComputer.h"
#include "DGtal/geometry/curves/estimation/LambdaMST3D.h"
#include "DGtal/geometry/curves/estimation/FunctorsLambdaMST.h"
#include "DGtal/geometry/curves/SaturatedSegmentation.h"
Include dependency graph for testLambdaMST3D.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 LambdaMST3D.

This file is part of the DGtal library.

Definition in file testLambdaMST3D.cpp.

Function Documentation

◆ main()

int main ( int ,
char **  )

Definition at line 163 of file testLambdaMST3D.cpp.

164{
165 bool res = true;
166 testLambdaMST3D testLMST;
167 trace.beginBlock ( "Testing LambdaMST3D" );
168 trace.beginBlock ( "Testing point only calculation" );
169 res &= testLMST.lambda64ByPoint();
170 res &= testLMST.lambda64Filtered();
171 res &= testLMST.lambdaSinByPoint();
172 res &= testLMST.lambdaExpByPoint();
173 trace.endBlock();
174 trace.beginBlock ( "Testing calculation for whole curve" );
175 res &= testLMST.lambda64();
176 res &= testLMST.lambdaSin();
177 res &= testLMST.lambdaExp();
178 trace.endBlock();
179 trace.endBlock();
180 trace.emphase() << ( res ? "Passed." : "Error." ) << endl;
181 return res ? 0 : 1;
182}
void beginBlock(const std::string &keyword="")
std::ostream & emphase()
double endBlock()
Trace trace
Definition Common.h:153

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