44 #include "DGtal/base/Common.h"
45 #include "DGtal/base/BasicTypes.h"
46 #include "DGtal/helpers/StdDefs.h"
49 #include "DGtal/geometry/curves/ArithmeticalDSSComputer.h"
50 #include "DGtal/geometry/curves/SaturatedSegmentation.h"
51 #include "DGtal/geometry/curves/estimation/LambdaMST2D.h"
57 using namespace DGtal;
65 typedef vector < Point > Container;
74 contour.push_back(
Point(18,18));
75 contour.push_back(
Point(17,19));
76 contour.push_back(
Point(16,20));
77 contour.push_back(
Point(15,21));
78 contour.push_back(
Point(14,22));
79 contour.push_back(
Point(13,23));
80 contour.push_back(
Point(12,24));
81 contour.push_back(
Point(11,25));
82 contour.push_back(
Point(10,26));
83 contour.push_back(
Point(9,27));
84 contour.push_back(
Point(8,28));
93 for (
ConstIterator it = contour.begin(); it != contour.end(); ++it )
98 lmst.
init ( contour.begin(), contour.end() );
99 std::vector < RealVector > tangent;
100 lmst.
eval < back_insert_iterator< vector < RealVector > > > ( contour.begin(), contour.end(), back_inserter ( tangent ) );
Aim: This class is a wrapper around ArithmeticalDSS that is devoted to the dynamic recognition of dig...
RealVector eval(const Point &p)
void init(ConstIterator itb, ConstIterator ite)
void attach(Alias< TSegmentation > SegmentComputer)
Aim: Simplify creation of Lambda MST tangent estimator.
Aim: Computes the saturated segmentation, that is the whole set of maximal segments within a range gi...
MyDigitalSurface::ConstIterator ConstIterator
DGtal is the top-level namespace which contains all DGtal functions and types.
ArithmeticalDSSComputer< std::vector< Z2i::Point >::const_iterator, int, 4 > SegmentComputer
SaturatedSegmentation< SegmentComputer > Segmentation