31 #include "DGtal/base/Common.h"
32 #include "DGtal/helpers/StdDefs.h"
33 #include "ConfigExamples.h"
37 #include "DGtal/io/readers/PNMReader.h"
38 #include "DGtal/images/imagesSetsUtils/SetFromImage.h"
42 #include "DGtal/topology/helpers/Surfaces.h"
43 #include "DGtal/geometry/curves/FreemanChain.h"
47 #include "DGtal/io/boards/Board2D.h"
48 #include "DGtal/io/colormaps/GradientColorMap.h"
49 #include "DGtal/io/Color.h"
57 std::string filename = examplesPath +
"samples/circleR10modif.pgm";
76 aBoard << image.domain();
84 std::vector< std::vector< Z2i::Point > > vectContoursBdryPointels;
86 ks, set2dPredicate, sAdj );
92 cmap_grad.addColor(
Color( 255, 0, 0 ) );
93 cmap_grad.addColor(
Color( 255, 255, 10 ) );
94 cmap_grad.addColor(
Color( 25, 255, 255 ) );
95 cmap_grad.addColor(
Color( 255, 25, 255 ) );
96 cmap_grad.addColor(
Color( 25, 25, 25 ) );
99 for(
unsigned int i=0; i<vectContoursBdryPointels.size(); i++){
104 aBoard <<
SetMode( fc.className(),
"InterGrid" );
111 aBoard.saveEPS(
"freemanChainFromImage.eps");