32#include "DGtal/base/Common.h"
33#include "DGtal/io/boards/Board2D.h"
34#include "DGtal/io/Color.h"
35#include "DGtal/io/colormaps/HueShadeColorMap.h"
36#include "DGtal/shapes/Shapes.h"
37#include "DGtal/graph/CUndirectedSimpleGraph.h"
38#include "DGtal/graph/DepthFirstVisitor.h"
39#include "DGtal/graph/CGraphVisitor.h"
42#include "DGtal/images/ImageContainerBySTLVector.h"
90 <<
SetMode( p1.className(),
"Paving" );
102 image.setValue(bfv.
current().first, ++cpt);
106 string specificStyle = p1.className() +
"/Paving";
109 it != shape_set.
end();
125 cmap_grad( image(*it) ) ) )
137 board.
saveEPS(
"testDepthFirstPropagation.eps");
150 specificStyle = p1.className() +
"/Paving";
153 it != shape_set.
end();
169 cmap_grad( image(*it) ) ) )
181 board.
saveEPS(
"testDepthFirstPropagation-distance.eps");
Aim: This class specializes a 'Board' class so as to display DGtal objects more naturally (with <<)....
Aim: This class is useful to perform a breadth-first exploration of a graph given a starting point or...
const Node & current() const
Aim: This class is useful to perform a depth-first exploration of a graph given a starting point or s...
const Node & current() const
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: This class template may be used to (linearly) convert scalar values in a given range into a colo...
std::string className() const
Aim: implements association bewteen points lying in a digital domain and values.
Aim: An object (or digital object) represents a set in some digital space associated with a digital t...
static void addNorm1Ball(TDigitalSet &aSet, const Point &aCenter, UnsignedInteger aRadius)
static void addNorm2Ball(TDigitalSet &aSet, const Point &aCenter, UnsignedInteger aRadius)
void clear(const DGtal::Color &color=DGtal::Color::None)
void saveEPS(const char *filename, PageSize size=Board::BoundingBox, double margin=10.0) const
BreadthFirstVisitor< MyDigitalSurface > Visitor
Aim: Gathers several functions useful for concept checks.
DGtal is the top-level namespace which contains all DGtal functions and types.
Custom style class redefining the pen color and the fill color. You may use Board2D::Color::None for ...
static Image create(const Set &aSet, const Value &defaultValue, const bool addBorder, typename Set::ConstIterator itBegin, typename Set::ConstIterator itEnd, const bool keepSetDomain=false)
Modifier class in a Board2D stream. Useful to choose your own mode for a given class....
Aim: Defines the concept of a visitor onto a graph, that is an object that traverses vertices of the ...
Aim: Represents the concept of local graph: each vertex has neighboring vertices, but we do not neces...
ImageContainerBySTLVector< Z2i::Domain, int > Image
void testDepthFirstPropagation()
HyperRectDomain< Space > Domain
Z2i::DigitalSet DigitalSet