32#include "DGtal/base/Common.h"
33#include "DGtal/helpers/StdDefs.h"
34#include "DGtal/shapes/Shapes.h"
35#include "DGtal/shapes/parametric/Ball2D.h"
36#include "DGtal/io/boards/Board2D.h"
37#include "DGtal/io/colormaps/GrayscaleColorMap.h"
38#include "DGtal/images/ImageContainerBySTLVector.h"
51bool testParametricShape()
53 trace.beginBlock (
"Testing parametric shaper ..." );
70 trace.info()<<
"Generated set: "<<set<<
" lowerBound="<<
lower
71 <<
" upperBound="<<
upper<<std::endl;
74 board.
saveSVG(
"parametricball.svg");
82int main(
int argc,
char** argv )
84 trace.beginBlock (
"Testing class ImplicitShape" );
85 trace.info() <<
"Args:";
86 for (
int i = 0; i < argc; ++i )
87 trace.info() <<
" " << argv[ i ];
90 bool res = testParametricShape();
91 trace.emphase() << ( res ?
"Passed." :
"Error." ) << endl;
Aim: Model of the concept StarShaped represents any circle in the plane.
Aim: This class specializes a 'Board' class so as to display DGtal objects more naturally (with <<)....
static void euclideanShaper(TDigitalSet &aSet, const TShapeFunctor &aFunctor, const double h=1.0)
PointVector< dim, double > RealPoint
void saveSVG(const char *filename, PageSize size=Board::BoundingBox, double margin=10.0) const
DigitalSetSelector< Domain, BIG_DS+HIGH_BEL_DS >::Type DigitalSet
HyperRectDomain< Space > Domain
DGtal is the top-level namespace which contains all DGtal functions and types.
Vector lower(const Vector &z, unsigned int k)
Vector upper(const Vector &z, unsigned int k)