43 #include "ConfigExamples.h"
44 #include "DGtal/helpers/StdDefs.h"
45 #include "DGtal/base/Common.h"
46 #include "DGtal/topology/helpers/Surfaces.h"
47 #include "DGtal/topology/SurfelSetPredicate.h"
48 #include "DGtal/geometry/curves/FreemanChain.h"
49 #include "DGtal/io/boards/Board2D.h"
50 #include "DGtal/images/ImageContainerBySTLMap.h"
55 using namespace DGtal;
67 FreemanChain<int> fc1 (
"001001001001001111101111011222222223222222322233333330301033333003", 6, 14);
86 it!= boundarySCell.end(); it++){
105 boundarySCell.
insert(*it);
114 BoolImage2D interiorCellImage( imageDomain );
116 interiorCellImage, 1,
false);
121 it!=interiorCellImage.domain().end(); it++){
122 if(interiorCellImage(*it)){
130 BoolImage2D interiorCellHoleImage( imageDomain );
131 BoolImage2D exteriorCellHoleImage( imageDomain );
135 interiorCellHoleImage, 1,
true);
137 exteriorCellHoleImage, 1,
false);
143 it!=interiorCellHoleImage.domain().end(); it++){
144 if(interiorCellHoleImage(*it)){
151 it!=exteriorCellHoleImage.domain().end(); it++){
152 if(exteriorCellHoleImage(*it)){
157 aBoard.
saveEPS(
"example_ctopo-fillContours.eps");
158 aBoard.
saveFIG(
"example_ctopo-fillContours.fig");
160 aBoard2.
saveEPS(
"example_ctopo-fillContours2.eps");
161 aBoard2.
saveFIG(
"example_ctopo-fillContours2.fig");
Aim: This class specializes a 'Board' class so as to display DGtal objects more naturally (with <<)....
Structure representing an RGB triple with alpha component.
Aim: This class is a model of CCellularGridSpaceND. It represents the cubical grid as a cell complex,...
Cell uSpel(Point p) const
From the digital coordinates of a point in Zn, builds the corresponding spel (cell of maximal dimensi...
bool init(const Point &lower, const Point &upper, bool isClosed)
Specifies the upper and lower bounds for the maximal cells in this space.
const Cell & lowerCell() const
Return the lower bound for cells in this space.
const Point & lowerBound() const
Return the lower bound for digital points in this space.
const Point & upperBound() const
Return the upper bound for digital points in this space.
Aim: A utility class for constructing surfaces (i.e. set of (n-1)-cells).
void beginBlock(const std::string &keyword="")
void saveFIG(const char *filename, PageSize size=Board::BoundingBox, double margin=10.0, bool includeFIGHeader=true) const
void saveEPS(const char *filename, PageSize size=Board::BoundingBox, double margin=10.0) const
MyDigitalSurface::ConstIterator ConstIterator
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 ...
std::string className() const
Return the style name used for drawing this object.
Represents a signed cell in a cellular grid space by its Khalimsky coordinates and a boolean value.
Aim: The predicate returning true iff the point is in the domain given at construction.
ShapeList & insert(const Shape &shape, int depth)
HyperRectDomain< Space > Domain