DGtal 1.3.0
|
Aim: a simple model of CGlobalCurveEstimator that compute the length of a curve using the l_1 metric (just add 1/h for every step). More...
#include <DGtal/geometry/curves/estimation/L1LengthEstimator.h>
Public Types | |
typedef TConstIterator | ConstIterator |
typedef double | Quantity |
Public Member Functions | |
L1LengthEstimator ()=default | |
~L1LengthEstimator ()=default | |
L1LengthEstimator (const L1LengthEstimator &other)=delete | |
L1LengthEstimator & | operator= (const L1LengthEstimator &other)=delete |
Quantity | eval (const ConstIterator &itb, const ConstIterator &ite, const double h) const |
void | selfDisplay (std::ostream &out) const |
bool | isValid () const |
Aim: a simple model of CGlobalCurveEstimator that compute the length of a curve using the l_1 metric (just add 1/h for every step).
Description of template class 'L1LengthEstimator'
Model of CGlobalCurveGeometricEstimator
TConstIterator | a model of CConstIteratorOnArrows. |
Definition at line 67 of file L1LengthEstimator.h.
typedef TConstIterator DGtal::L1LengthEstimator< TConstIterator >::ConstIterator |
Definition at line 74 of file L1LengthEstimator.h.
typedef double DGtal::L1LengthEstimator< TConstIterator >::Quantity |
Definition at line 76 of file L1LengthEstimator.h.
|
default |
Default Constructor.
|
default |
Destructor.
|
delete |
Copy constructor.
other | the object to clone. Forbidden by default. |
Quantity DGtal::L1LengthEstimator< TConstIterator >::eval | ( | const ConstIterator & | itb, |
const ConstIterator & | ite, | ||
const double | h | ||
) | 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::L1LengthEstimator< TConstIterator >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
|
delete |
Assignment.
other | the object to copy. |
void DGtal::L1LengthEstimator< TConstIterator >::selfDisplay | ( | std::ostream & | out | ) | const |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |