45 #include "DGtal/base/Common.h"
46 #include "DGtal/base/BasicTypes.h"
47 #include "DGtal/helpers/StdDefs.h"
50 #include "DGtal/geometry/curves/Naive3DDSSComputer.h"
51 #include "DGtal/geometry/curves/SaturatedSegmentation.h"
52 #include "DGtal/geometry/curves/estimation/LambdaMST3D.h"
58 using namespace DGtal;
67 typedef vector < Point > Container;
76 contour.push_back(
Point(18,25,18));
77 contour.push_back(
Point(17,25,19));
78 contour.push_back(
Point(16,25,20));
79 contour.push_back(
Point(15,25,21));
80 contour.push_back(
Point(14,25,22));
81 contour.push_back(
Point(13,25,23));
82 contour.push_back(
Point(12,25,24));
83 contour.push_back(
Point(11,25,25));
84 contour.push_back(
Point(10,25,26));
85 contour.push_back(
Point(9,25,27));
86 contour.push_back(
Point(8,25,28));
99 for (
ConstIterator it = contour.begin(); it != contour.end(); ++it )
104 lmst.
init ( contour.begin(), contour.end() );
105 std::vector < RealVector > tangent;
106 lmst.
eval < std::back_insert_iterator< std::vector < RealVector > > > ( contour.begin(), contour.end(), std::back_insert_iterator< vector < RealVector > > ( tangent ) );
void attach(Alias< TSegmentation > segmentComputer)
RealVector eval(const Point &p)
DSSFilter & getDSSFilter()
void init(ConstIterator itb, ConstIterator ite)
Aim: Simplify creation of Lambda MST tangent estimator.
Aim: Dynamic recognition of a 3d-digital straight segment (DSS)
Aim: Computes the saturated segmentation, that is the whole set of maximal segments within a range gi...
MyDigitalSurface::ConstIterator ConstIterator
functors namespace gathers all DGtal functors.
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