45 #include "DGtal/base/Common.h"
46 #include "DGtal/base/BasicTypes.h"
47 #include "DGtal/helpers/StdDefs.h"
50 #include "DGtal/geometry/curves/estimation/LambdaMST3DBy2D.h"
56 using namespace DGtal;
64 typedef vector < Point > Container;
71 contour.push_back (
Point ( 18, 25, 18 ) );
72 contour.push_back (
Point ( 17, 25, 19 ) );
73 contour.push_back (
Point ( 16, 25, 20 ) );
74 contour.push_back (
Point ( 15, 25, 21 ) );
75 contour.push_back (
Point ( 14, 25, 22 ) );
76 contour.push_back (
Point ( 13, 25, 23 ) );
77 contour.push_back (
Point ( 12, 25, 24 ) );
78 contour.push_back (
Point ( 11, 25, 25 ) );
79 contour.push_back (
Point ( 10, 25, 26 ) );
80 contour.push_back (
Point ( 9, 25, 27 ) );
81 contour.push_back (
Point ( 8, 25, 28 ) );
85 for (
const auto & p : contour )
91 vector < RealVector > tangent;
92 lmst.
eval ( contour.cbegin ( ), contour.cend ( ), back_insert_iterator < vector < RealVector > > ( tangent ) );
94 for (
const auto & t : tangent )
void init(Iterator3D itB, Iterator3D itE, MAIN_AXIS axis)
RealVector3D eval(const Point3D &point)
Aim: Simplify creation of Lambda MST tangent estimator.
MyDigitalSurface::ConstIterator ConstIterator
DGtal is the top-level namespace which contains all DGtal functions and types.
int main(int argc, char **argv)