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"
62 trace.beginBlock (
"Testing Measure ..." );
76 trace.info() <<
"Input set= "<<set<<std::endl;
78 trace.info()<<measure<<std::endl;
81 measure.
init(10, set);
82 trace.info() <<
"Volume (h=10) "<<measure.
eval()<<std::endl;
83 measure.
init(100, set);
84 trace.info() <<
"Volume (h=100) "<<measure.
eval()<<std::endl;
86 trace.info()<<measure<<std::endl;
96int main(
int argc,
char** argv )
98 trace.beginBlock (
"Testing class Measure" );
99 trace.info() <<
"Args:";
100 for (
int i = 0; i < argc; ++i )
101 trace.info() <<
" " << argv[ i ];
102 trace.info() << endl;
105 trace.emphase() << ( res ?
"Passed." :
"Error." ) << endl;
Aim: model of CEuclideanOrientedShape and CEuclideanBoundedShape concepts to create a ball in nD....
Aim: Implements a simple measure computation (in the Lesbegue sens) of a set. In dimension 2,...
void init(const double h, const Set &aSetPointer)
static void euclideanShaper(TDigitalSet &aSet, const TShapeFunctor &aFunctor, const double h=1.0)
HyperRectDomain< Space > Domain
DigitalSetSelector< Domain, BIG_DS+HIGH_BEL_DS >::Type DigitalSet
DGtal is the top-level namespace which contains all DGtal functions and types.