|
DGtal 1.4.2
|
#include <DGtal/geometry/curves/estimation/LambdaMST2D.h>
Public Types | |
| typedef TSegmentation | Segmentation |
| Tangential cover algorithm. | |
| typedef TSegmentation::SegmentComputer | SegmentComputer |
| Curve segmentation algorithm. | |
| typedef SegmentComputer::ConstIterator | ConstIterator |
| Type of iterator, at least readable and forward. | |
| typedef Functor::Value | Value |
| Type returned by model of CLMSTTangentFrom2DSS. | |
| typedef TSpace::RealVector | RealVector |
| Type of 3d real vector. | |
| typedef TSpace::Point | Point |
| Type of 3d real point. | |
Public Member Functions | |
| LambdaMST2DEstimator () | |
| Default constructor. | |
| void | init (ConstIterator itb, ConstIterator ite) |
| void | attach (Alias< TSegmentation > SegmentComputer) |
| RealVector | eval (const Point &p) |
| template<typename OutputIterator > | |
| OutputIterator | eval (ConstIterator itb, ConstIterator ite, OutputIterator result) |
| bool | isValid () const |
Protected Member Functions | |
| template<typename OutputIterator > | |
| void | accumulate (std::vector< Value > &outValues, OutputIterator &result) |
| Accumulate partial results obtained for each point. | |
Private Member Functions | |
| BOOST_STATIC_ASSERT ((TSpace::dimension==2)) | |
| BOOST_CONCEPT_ASSERT ((concepts::CSpace< TSpace >)) | |
| BOOST_CONCEPT_ASSERT ((concepts::CLMSTTangentFromDSS< Functor >)) | |
| BOOST_CONCEPT_ASSERT ((concepts::CForwardSegmentComputer< typename TSegmentation::SegmentComputer >)) | |
Private Attributes | |
| ConstIterator | myBegin |
| ConstIterator | myEnd |
| Functor | myFunctor |
| TSegmentation * | dssSegments |
Aim: Implementation of Lambda MST tangent estimators. This class is a model of CCurveLocalGeometricEstimator.
| TSpace | model of CSpace |
| TSegmentation | tangential cover obtained by a segmentation of a 2D digital curve by maximal straight segments |
| Functor | model of CLMSTTangentFrom2DSS |
Definition at line 57 of file LambdaMST2D.h.
| SegmentComputer::ConstIterator DGtal::LambdaMST2DEstimator< TSpace, TSegmentation, Functor >::ConstIterator |
Type of iterator, at least readable and forward.
Definition at line 71 of file LambdaMST2D.h.
| TSpace::Point DGtal::LambdaMST2DEstimator< TSpace, TSegmentation, Functor >::Point |
Type of 3d real point.
Definition at line 77 of file LambdaMST2D.h.
| TSpace::RealVector DGtal::LambdaMST2DEstimator< TSpace, TSegmentation, Functor >::RealVector |
Type of 3d real vector.
Definition at line 75 of file LambdaMST2D.h.
| TSegmentation DGtal::LambdaMST2DEstimator< TSpace, TSegmentation, Functor >::Segmentation |
Tangential cover algorithm.
Definition at line 67 of file LambdaMST2D.h.
| TSegmentation::SegmentComputer DGtal::LambdaMST2DEstimator< TSpace, TSegmentation, Functor >::SegmentComputer |
Curve segmentation algorithm.
Definition at line 69 of file LambdaMST2D.h.
| Functor::Value DGtal::LambdaMST2DEstimator< TSpace, TSegmentation, Functor >::Value |
Type returned by model of CLMSTTangentFrom2DSS.
Definition at line 73 of file LambdaMST2D.h.
| DGtal::LambdaMST2DEstimator< TSpace, TSegmentation, Functor >::LambdaMST2DEstimator | ( | ) |
Default constructor.
|
protected |
Accumulate partial results obtained for each point.
| OutputIterator | writable iterator. |
| outValues | partial results for each point |
| result | writable iterator over a container which stores estimated tangent directions. |
| void DGtal::LambdaMST2DEstimator< TSpace, TSegmentation, Functor >::attach | ( | Alias< TSegmentation > | SegmentComputer | ) |
Attach tangential cover computer.
| SegmentComputer | - DSS segmentation algorithm |
Referenced by main().
|
private |
|
private |
|
private |
|
private |
| RealVector DGtal::LambdaMST2DEstimator< TSpace, TSegmentation, Functor >::eval | ( | const Point & | p | ) |
| OutputIterator DGtal::LambdaMST2DEstimator< TSpace, TSegmentation, Functor >::eval | ( | ConstIterator | itb, |
| ConstIterator | ite, | ||
| OutputIterator | result ) |
| OutputIterator | writable iterator. More efficient way to compute tangent directions for all points of a curve. |
| itb | begin iterator |
| ite | end iterator |
| result | writable iterator over a container which stores estimated tangent directions. |
| void DGtal::LambdaMST2DEstimator< TSpace, TSegmentation, Functor >::init | ( | ConstIterator | itb, |
| ConstIterator | ite ) |
| bool DGtal::LambdaMST2DEstimator< TSpace, TSegmentation, Functor >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
|
private |
Pointer to a curve segmentation algorithm.
Definition at line 154 of file LambdaMST2D.h.
|
private |
Iterator which corresponds to the beginning of a valid range - [myBegin, myEnd)
Definition at line 140 of file LambdaMST2D.h.
|
private |
Iterator which corresponds to the end of a valid range - [myBegin, myEnd)
Definition at line 144 of file LambdaMST2D.h.
|
private |
Functor which takes: reference to digital straight segment - DSS, position of given point in DSS and length of DSS and returns DSS's direction and the eccentricity of the point in the DSS.
Definition at line 150 of file LambdaMST2D.h.