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"
42 using namespace DGtal;
51 bool testParametricShape()
71 <<
" upperBound="<<
upper<<std::endl;
74 board.
saveSVG(
"parametricball.svg");
82 int main(
int argc,
char** argv )
86 for (
int i = 0; i < argc; ++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 <<)....
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).
void beginBlock(const std::string &keyword="")
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.
int main(int argc, char **argv)
Vector lower(const Vector &z, unsigned int k)
Vector upper(const Vector &z, unsigned int k)