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"
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;
106int main(
int argc,
char** argv )
110 for (
int i = 0; i < argc; ++i )
115 trace.
emphase() << ( res ?
"Passed." :
"Error." ) << endl;
Aim: This class specializes a 'Board' class so as to display DGtal objects more naturally (with <<)....
Aim: A wrapper class around a STL associative container for storing sets of digital points within som...
Iterator for HyperRectDomain.
const ConstIterator & begin() const
const ConstIterator & end() const
Aim: From a point predicate (model of concepts::CPointPredicate), this class constructs another point...
static void addNorm2Ball(TDigitalSet &aSet, const Point &aCenter, UnsignedInteger aRadius)
void beginBlock(const std::string &keyword="")
void clear(const DGtal::Color &color=DGtal::Color::None)
void saveSVG(const char *filename, PageSize size=Board::BoundingBox, double margin=10.0) const
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: Defines a predicate on a point.