31#include "DGtal/base/Common.h"
32#include "DGtal/io/boards/Board2D.h"
33#include "DGtal/io/Color.h"
34#include "DGtal/io/colormaps/GradientColorMap.h"
35#include "DGtal/shapes/Shapes.h"
36#include "DGtal/graph/CUndirectedSimpleGraph.h"
37#include "DGtal/graph/BreadthFirstVisitor.h"
38#include "DGtal/graph/CGraphVisitor.h"
39#include "DGtal/images/ImageContainerBySTLVector.h"
79 Object obj(Z2i::dt4_8, shape_set);
90 <<
SetMode( p1.className(),
"Paving" );
105 string specificStyle = p1.className() +
"/Paving";
108 it != shape_set.
end();
124 cmap_grad(
image(*it) ) ) )
137 board.
saveEPS(
"testBreadthFirstPropagation.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
ConstIterator end() const
ConstIterator begin() const
Container::const_iterator ConstIterator
Aim: This class template may be used to (linearly) convert scalar values in a given range into a colo...
void addColor(const Color &color)
Aim: implements association between points lying in a digital domain and values.
void setValue(const Point &aPoint, const Value &aValue)
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 saveEPS(const char *filename, PageSize size=Board::BoundingBox, double margin=10.0) const
BreadthFirstVisitor< MyDigitalSurface > Visitor
Object< DT4_8, DigitalSet > Object4_8
DigitalSetSelector< Domain, BIG_DS+HIGH_BEL_DS >::Type DigitalSet
HyperRectDomain< Space > Domain
Aim: Gathers several functions useful for concept checks.
DGtal is the top-level namespace which contains all DGtal functions and types.
CustomColors(const Color &penColor, const Color &fillColor)
CustomStyle(std::string classname, DrawableWithBoard2D *style)
static Image create(const Set &aSet, const Value &defaultValue, const bool addBorder, typename Set::ConstIterator itBegin, typename Set::ConstIterator itEnd, const bool keepSetDomain=false)
SetMode(std::string classname, std::string mode)
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...
void testBreadthFirstPropagation()
Z2i::DigitalSet DigitalSet