68 std::string file = examplesPath +
"samples/contourSnoisy.sdp";
74 aBoard <<
SetMode(aContour[0].className(),
"Grid");
75 for (
unsigned int i = 0; i< aContour.size(); i++){
76 aBoard << aContour[i];
77 aBoard.
drawLine(aContour[i][0], aContour[i][1],
78 aContour[(i+1)%aContour.size()][0], aContour[(i+1)%aContour.size()][1]);
85 AlphaThickSegmentComputer2D anAlphaSegment(15);
88 std::vector<Z2i::RealPoint>::const_iterator it = aContour.begin();
89 while (anAlphaSegment.extendFront(*it)) {
96 aBoard << anAlphaSegment;
98 AlphaThickSegmentComputer2D anAlphaSegment2(9);
100 anAlphaSegment2.init(aContour.begin());
101 while (anAlphaSegment2.end() != aContour.end() &&
102 anAlphaSegment2.extendFront()) {
108 aBoard << anAlphaSegment2;
111 AlphaThickSegmentComputer2D anAlphaSegment3(2);
112 anAlphaSegment3.init(aContour.begin());
113 while (anAlphaSegment3.end() != aContour.end() &&
114 anAlphaSegment3.extendFront()) {
117 aBoard << anAlphaSegment3;
120 aBoard.
saveEPS(
"exampleAlphaThickSegmentNoisy.eps");