32 #include "DGtal/base/Common.h"
33 #include "DGtal/helpers/StdDefs.h"
34 #include "DGtal/shapes/Shapes.h"
35 #include "DGtal/shapes/ShapeFactory.h"
37 #include "DGtal/geometry/volumes/estimation/Measure.h"
42 using namespace DGtal;
62 unsigned int nbok = 0;
79 trace.
info() <<
"Input set= "<<set<<std::endl;
84 measure.
init(10, set);
86 measure.
init(100, set);
93 trace.
info() <<
"(" << nbok <<
"/" << nb <<
") "
94 <<
"true == true" << std::endl;
103 int main(
int argc,
char** argv )
107 for (
int i = 0; i < argc; ++i )
111 bool res = testConcept() && testMeasure();
112 trace.
emphase() << ( res ?
"Passed." :
"Error." ) << endl;
void beginBlock(const std::string &keyword="")
Aim: model of CEuclideanOrientedShape and CEuclideanBoundedShape concepts to create a ball in nD...
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: Implements a simple measure computation (in the Lesbegue sens) of a set. In dimension 2...
void init(const double h, const Set &aSetPointer)
Aim: A utility class for constructing different shapes (balls, diamonds, and others).