32 #include "DGtal/base/Common.h" 33 #include "DGtal/geometry/volumes/KanungoNoise.h" 34 #include "DGtal/io/boards/Board2D.h" 35 #include "DGtal/helpers/StdDefs.h" 36 #include "DGtal/shapes/Shapes.h" 37 #include "DGtal/kernel/CPointPredicate.h" 41 using namespace DGtal;
52 unsigned int nbok = 0;
65 board.
saveSVG(
"input-set-kanungo.svg");
73 if (nosifiedObject( * it ))
75 board.
saveSVG(
"output-set-kanungo-0.5.svg");
83 if (nosifiedObject2( * it ))
85 board.
saveSVG(
"output-set-kanungo-0.1.svg");
89 trace.
info() <<
"(" << nbok <<
"/" << nb <<
") " 90 <<
"true == true" << std::endl;
106 int main(
int argc,
char** argv )
110 for (
int i = 0; i < argc; ++i )
115 trace.
emphase() << ( res ?
"Passed." :
"Error." ) << endl;
void beginBlock(const std::string &keyword="")
const ConstIterator & end() const
void saveSVG(const char *filename, PageSize size=Board::BoundingBox, double margin=10.0) const
Aim: Defines a predicate on a point.
Aim: From a point predicate (model of concepts::CPointPredicate), this class constructs another point...
void clear(const DGtal::Color &color=DGtal::Color::None)
const ConstIterator & begin() const
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: A wrapper class around a STL associative container for storing sets of digital points within som...
Aim: A utility class for constructing different shapes (balls, diamonds, and others).
Aim: This class specializes a 'Board' class so as to display DGtal objects more naturally (with <<)....
int main(int argc, char **argv)