DGtal
0.6.devel
|
#include <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 () | |
~MLPLengthEstimator () | |
void | init (const double h, const ConstIterator &itb, const ConstIterator &ite, const bool &isClosed) |
Quantity | eval () const |
void | selfDisplay (std::ostream &out) const |
bool | isValid () const |
Private Member Functions | |
MLPLengthEstimator (const MLPLengthEstimator &other) | |
MLPLengthEstimator & | operator= (const MLPLengthEstimator &other) |
Private Attributes | |
double | myH |
std::vector< Point > | myRep |
bool | myIsInitBefore |
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.
|
inline |
|
inline |
|
private |
Copy constructor.
other | the object to clone. Forbidden by default. |
|
inline |
Computation of the l1 length of the curve. Complexity: O(|Range|)
Definition at line 91 of file MLPLengthEstimator.ih.
References DGtal::PointVector< dim, TEuclideanRing >::norm().
|
inline |
Initialize the measure computation.
h | grid size (must be >0). |
itb | begin iterator |
ite | end iterator |
closed | true if the input range is closed. |
Definition at line 73 of file MLPLengthEstimator.ih.
References DGtal::FP< TIterator, TInteger, connectivity >::copyMLP(), and DGtal::FP< TIterator, TInteger, connectivity >::size().
|
inline |
Checks the validity/consistency of the object.
Definition at line 140 of file MLPLengthEstimator.ih.
|
private |
Assignment.
other | the object to copy. |
|
inline |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
Definition at line 124 of file MLPLengthEstimator.ih.
|
private |
Grid size.
Definition at line 136 of file MLPLengthEstimator.h.
|
private |
Boolean to make sure that init() has been called before eval().
Definition at line 142 of file MLPLengthEstimator.h.
|
private |
polygonal representation of the input
Definition at line 139 of file MLPLengthEstimator.h.