|
DGtal 1.4.2
|
Aim: a model of CGlobalCurveEstimator that computes the length of a digital curve using its FP (faithful polygon) More...
#include <DGtal/geometry/curves/estimation/FPLengthEstimator.h>
Public Types | |
| typedef TConstIterator | ConstIterator |
| typedef double | Quantity |
| typedef FP< ConstIterator, int, 4 > | FaithfulPolygon |
| typedef FaithfulPolygon::Point | Point |
| typedef FaithfulPolygon::Vector | Vector |
Public Member Functions | |
| FPLengthEstimator ()=default | |
| ~FPLengthEstimator ()=default | |
| FPLengthEstimator (const FPLengthEstimator &other)=delete | |
| FPLengthEstimator & | operator= (const FPLengthEstimator &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 FP (faithful polygon)
Description of template class 'FPLengthEstimator'
Model of CGlobalCurveGeometricEstimator
| TConstIterator | a model of CConstIteratorOnPoints. |
Definition at line 69 of file FPLengthEstimator.h.
| TConstIterator DGtal::FPLengthEstimator< TConstIterator >::ConstIterator |
Definition at line 76 of file FPLengthEstimator.h.
| FP<ConstIterator,int,4> DGtal::FPLengthEstimator< TConstIterator >::FaithfulPolygon |
Definition at line 80 of file FPLengthEstimator.h.
| FaithfulPolygon::Point DGtal::FPLengthEstimator< TConstIterator >::Point |
Definition at line 81 of file FPLengthEstimator.h.
| double DGtal::FPLengthEstimator< TConstIterator >::Quantity |
Definition at line 78 of file FPLengthEstimator.h.
| FaithfulPolygon::Vector DGtal::FPLengthEstimator< TConstIterator >::Vector |
Definition at line 82 of file FPLengthEstimator.h.
|
default |
Default Constructor.
|
default |
Destructor.
|
delete |
Copy constructor.
| other | the object to clone. Forbidden by default. |
| Quantity DGtal::FPLengthEstimator< 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::FPLengthEstimator< TConstIterator >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
|
delete |
Assignment.
| other | the object to copy. |
| void DGtal::FPLengthEstimator< TConstIterator >::selfDisplay | ( | std::ostream & | out | ) | const |
Writes/Displays the object on an output stream.
| out | the output stream where the object is written. |