DGtal  0.9.3
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/SaturatedSegmentation.h"
Include dependency graph for testLambdaMST3D.cpp:

Go to the source code of this file.


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/.

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

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 107 of file testLambdaMST3D.cpp.

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

108 {
109  bool res = true;
110  testLambdaMST3D testLMST;
111  trace.beginBlock ( "Testing LambdaMST3D" );
112  trace.beginBlock ( "Testing point only calculation" );
113  res &= testLMST.lambda64ByPoint();
114  trace.endBlock();
115  trace.beginBlock ( "Testing calculation for whole curve" );
116  res &= testLMST.lambda64();
117  trace.endBlock();
118  trace.endBlock();
119  trace.emphase() << ( res ? "Passed." : "Error." ) << endl;
120  return res ? 0 : 1;
121 }
void beginBlock(const std::string &keyword="")
Trace trace
Definition: Common.h:137
double endBlock()
std::ostream & emphase()