32 #include "DGtal/base/Common.h"
33 #include "DGtal/helpers/StdDefs.h"
34 #include "DGtal/shapes/Shapes.h"
35 #include "DGtal/shapes/ShapeFactory.h"
36 #include "DGtal/io/boards/Board2D.h"
37 #include "DGtal/io/colormaps/GrayscaleColorMap.h"
38 #include "DGtal/io/writers/VolWriter.h"
39 #include "DGtal/images/ImageContainerBySTLVector.h"
43 using namespace DGtal;
67 board.
saveSVG(
"implicitball.svg");
74 board.
saveSVG(
"implicitcube.svg");
82 board.
saveSVG(
"implicitlosange.svg");
89 board.
saveSVG(
"implicitrounded-1.svg");
97 board.
saveSVG(
"implicitrounded-2.5.svg");
127 image.setValue((*it), 128);
138 int main(
int argc,
char** argv )
142 for (
int i = 0; i < argc; ++i )
147 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...
ConstIterator end() const
ConstIterator begin() const
Container::const_iterator ConstIterator
ConstIterator type of the container;.
Aim: implements association bewteen points lying in a digital domain and values.
Aim: model of CEuclideanOrientedShape and CEuclideanBoundedShape concepts to create a ball in nD....
Aim: model of CEuclideanOrientedShape and CEuclideanBoundedShape concepts to create an hypercube in n...
Aim: model of CEuclideanOrientedShape and CEuclideanBoundedShape concepts to create a ball for the L_...
Aim: model of CEuclideanOrientedShape and CEuclideanBoundedShape concepts to create a rounded hypercu...
Aim: A utility class for constructing different shapes (balls, diamonds, and others).
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: Export a 3D Image using the Vol formats.
int main(int argc, char **argv)
bool testImplicitShape3D()
ImageContainerBySTLVector< Domain, Value > Image