DGtal
1.0.beta
|
#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 () | |
~FPLengthEstimator () | |
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 | |
FPLengthEstimator (const FPLengthEstimator &other) | |
FPLengthEstimator & | operator= (const FPLengthEstimator &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 FP (faithful polygon)
Description of template class 'FPLengthEstimator'
Model of CGlobalCurveGeometricEstimator
TConstIterator | a model of CConstIteratorOnPoints. |
Definition at line 69 of file FPLengthEstimator.h.
typedef TConstIterator DGtal::FPLengthEstimator< TConstIterator >::ConstIterator |
Definition at line 76 of file FPLengthEstimator.h.
typedef FP<ConstIterator,int,4> DGtal::FPLengthEstimator< TConstIterator >::FaithfulPolygon |
Definition at line 80 of file FPLengthEstimator.h.
typedef FaithfulPolygon::Point DGtal::FPLengthEstimator< TConstIterator >::Point |
Definition at line 81 of file FPLengthEstimator.h.
typedef double DGtal::FPLengthEstimator< TConstIterator >::Quantity |
Definition at line 78 of file FPLengthEstimator.h.
typedef FaithfulPolygon::Vector DGtal::FPLengthEstimator< TConstIterator >::Vector |
Definition at line 82 of file FPLengthEstimator.h.
DGtal::FPLengthEstimator< TConstIterator >::FPLengthEstimator | ( | ) |
Default Constructor.
DGtal::FPLengthEstimator< TConstIterator >::~FPLengthEstimator | ( | ) |
Destructor.
|
private |
Copy constructor.
other | the object to clone. Forbidden by default. |
Quantity DGtal::FPLengthEstimator< TConstIterator >::eval | ( | ) | const |
Computation of the l1 length of the curve. Complexity: O(|Range|)
void DGtal::FPLengthEstimator< TConstIterator >::init | ( | const double | h, |
const ConstIterator & | itb, | ||
const ConstIterator & | ite, | ||
const bool & | isClosed | ||
) |
Initialize the measure computation.
h | grid size (must be >0). |
itb | begin iterator |
ite | end iterator |
isClosed | true if the input range is closed. |
bool DGtal::FPLengthEstimator< TConstIterator >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
|
private |
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. |
|
private |
Grid size.
Definition at line 136 of file FPLengthEstimator.h.
|
private |
Boolean to make sure that init() has been called before eval().
Definition at line 142 of file FPLengthEstimator.h.
|
private |
polygonal representation of the input
Definition at line 139 of file FPLengthEstimator.h.