DGtal
1.5.beta
|
Aim: a model of CGlobalCurveEstimator that computes the length of a digital curve using its MLP (given by the FP) More...
#include <DGtal/geometry/curves/estimation/MLPLengthEstimator.h>
Public Types | |
typedef TConstIterator | ConstIterator |
typedef double | Quantity |
typedef FP< ConstIterator, int, 4 > | FaithfulPolygon |
typedef FaithfulPolygon::RealPoint | Point |
typedef FaithfulPolygon::RealVector | Vector |
Public Member Functions | |
MLPLengthEstimator ()=default | |
~MLPLengthEstimator ()=default | |
MLPLengthEstimator (const MLPLengthEstimator &other)=delete | |
MLPLengthEstimator & | operator= (const MLPLengthEstimator &other)=delete |
Quantity | eval (const ConstIterator &itb, const ConstIterator &ite, const double h=1.) const |
void | selfDisplay (std::ostream &out) const |
bool | isValid () const |
Aim: a model of CGlobalCurveEstimator that computes the length of a digital curve using its MLP (given by the FP)
Description of template class 'MLPLengthEstimator'
Model of CGlobalCurveGeometricEstimator
TConstIterator | a model of CConstIteratorOnPoints. |
Definition at line 69 of file MLPLengthEstimator.h.
typedef TConstIterator DGtal::MLPLengthEstimator< TConstIterator >::ConstIterator |
Definition at line 76 of file MLPLengthEstimator.h.
typedef FP<ConstIterator,int,4> DGtal::MLPLengthEstimator< TConstIterator >::FaithfulPolygon |
Definition at line 80 of file MLPLengthEstimator.h.
typedef FaithfulPolygon::RealPoint DGtal::MLPLengthEstimator< TConstIterator >::Point |
Definition at line 81 of file MLPLengthEstimator.h.
typedef double DGtal::MLPLengthEstimator< TConstIterator >::Quantity |
Definition at line 78 of file MLPLengthEstimator.h.
typedef FaithfulPolygon::RealVector DGtal::MLPLengthEstimator< TConstIterator >::Vector |
Definition at line 82 of file MLPLengthEstimator.h.
|
default |
Default Constructor.
|
default |
Destructor.
|
delete |
Copy constructor.
other | the object to clone. Forbidden by default. |
Quantity DGtal::MLPLengthEstimator< TConstIterator >::eval | ( | const ConstIterator & | itb, |
const ConstIterator & | ite, | ||
const double | h = 1. |
||
) | const |
Computation of the l1 length of the curve. Complexity: O(|Range|)
itb | begin iterator |
ite | end iterator |
h | grid size (must be > 0). |
Referenced by testL1LengthEstimator().
bool DGtal::MLPLengthEstimator< TConstIterator >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
|
delete |
Assignment.
other | the object to copy. |
void DGtal::MLPLengthEstimator< TConstIterator >::selfDisplay | ( | std::ostream & | out | ) | const |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |