|
DGtal 2.0.0
|
Aim: A model of CLocalCurveGeometricEstimator that assigns to each element of a (sub)range a quantity estimated from the most centered maximal segment passing through this element. More...
#include <DGtal/geometry/curves/estimation/MostCenteredMaximalSegmentEstimator.h>
Public Types | |
| typedef SegmentComputer::ConstIterator | ConstIterator |
| typedef SCEstimator::Quantity | Quantity |
| typedef SaturatedSegmentation< SegmentComputer > | Segmentation |
| typedef Segmentation::SegmentComputerIterator | SegmentIterator |
Public Member Functions | |
| MostCenteredMaximalSegmentEstimator ()=delete | |
| MostCenteredMaximalSegmentEstimator (const SegmentComputer &aSegmentComputer, const SCEstimator &aSCEstimator) | |
| ~MostCenteredMaximalSegmentEstimator () | |
| void | init (const ConstIterator &itb, const ConstIterator &ite) |
| Quantity | eval (const ConstIterator &it, const double h=1.) |
| template<typename OutputIterator> | |
| OutputIterator | eval (const ConstIterator &itb, const ConstIterator &ite, OutputIterator result, const double h=1.) |
| bool | isValid () const |
Private Attributes | |
| ConstIterator | myBegin |
| ConstIterator | myEnd |
| SegmentComputer | mySC |
| SCEstimator | mySCEstimator |
Aim: A model of CLocalCurveGeometricEstimator that assigns to each element of a (sub)range a quantity estimated from the most centered maximal segment passing through this element.
Description of template class 'MostCenteredMaximalSegmentEstimator'
Here is a basic example of curvature estimation:
3. Get the estimations
| SegmentComputer | at least a model of CForwardSegmentComputer |
| SCEstimator | a model of CSegmentComputerEstimator |
Definition at line 83 of file MostCenteredMaximalSegmentEstimator.h.
| typedef SegmentComputer::ConstIterator DGtal::MostCenteredMaximalSegmentEstimator< SegmentComputer, SCEstimator >::ConstIterator |
Definition at line 95 of file MostCenteredMaximalSegmentEstimator.h.
| typedef SCEstimator::Quantity DGtal::MostCenteredMaximalSegmentEstimator< SegmentComputer, SCEstimator >::Quantity |
Definition at line 96 of file MostCenteredMaximalSegmentEstimator.h.
| typedef SaturatedSegmentation<SegmentComputer> DGtal::MostCenteredMaximalSegmentEstimator< SegmentComputer, SCEstimator >::Segmentation |
Definition at line 98 of file MostCenteredMaximalSegmentEstimator.h.
| typedef Segmentation::SegmentComputerIterator DGtal::MostCenteredMaximalSegmentEstimator< SegmentComputer, SCEstimator >::SegmentIterator |
Definition at line 99 of file MostCenteredMaximalSegmentEstimator.h.
|
delete |
Default constructor. Not valid.
Referenced by MostCenteredMaximalSegmentEstimator(), and operator=().
| DGtal::MostCenteredMaximalSegmentEstimator< SegmentComputer, SCEstimator >::MostCenteredMaximalSegmentEstimator | ( | const SegmentComputer & | aSegmentComputer, |
| const SCEstimator & | aSCEstimator ) |
Constructor.
| aSegmentComputer | a segment computer |
| aSCEstimator | an estimator |
|
inline |
|
private |
Copy constructor.
| other | the object to clone. Forbidden by default. |
References MostCenteredMaximalSegmentEstimator().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Specialization of the end of the algorithm
| itb | subrange begin iterator |
| ite | subrange end iterator |
| itCurrent | current iterator |
| first | iterator on the first maximal segment |
| last | iterator on the last maximal segment |
| result | output iterator on the estimated quantity |
|
private |
| Quantity DGtal::MostCenteredMaximalSegmentEstimator< SegmentComputer, SCEstimator >::eval | ( | const ConstIterator & | it, |
| const double | h = 1. ) |
Unique estimation
| it | any valid iterator |
| h | grid size (must be > 0). |
NB: the whole range [myBegin , myEnd)| is scanned in the worst case
| OutputIterator DGtal::MostCenteredMaximalSegmentEstimator< SegmentComputer, SCEstimator >::eval | ( | const ConstIterator & | itb, |
| const ConstIterator & | ite, | ||
| OutputIterator | result, | ||
| const double | h = 1. ) |
Estimation for a subrange [itb , ite )
| itb | subrange begin iterator |
| ite | subrange end iterator |
| result | output iterator on the estimated quantity |
| h | grid size (must be > 0). |
NB: the whole range [myBegin , myEnd)| is scanned in the worst case
| void DGtal::MostCenteredMaximalSegmentEstimator< SegmentComputer, SCEstimator >::init | ( | const ConstIterator & | itb, |
| const ConstIterator & | ite ) |
Initialisation.
| itb | begin iterator |
| ite | end iterator |
| bool DGtal::MostCenteredMaximalSegmentEstimator< SegmentComputer, SCEstimator >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
|
private |
Assignment.
| other | the object to copy. |
References MostCenteredMaximalSegmentEstimator().
|
private |
begin and end iterators
Definition at line 175 of file MostCenteredMaximalSegmentEstimator.h.
|
private |
Definition at line 175 of file MostCenteredMaximalSegmentEstimator.h.
|
private |
segmentComputer used to segment
Definition at line 178 of file MostCenteredMaximalSegmentEstimator.h.
|
private |
object estimating the quantity from segmentComputer
Definition at line 181 of file MostCenteredMaximalSegmentEstimator.h.