DGtal
0.6.devel
|
#include <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.
|
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 92 of file FPLengthEstimator.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 FPLengthEstimator.ih.
References DGtal::FP< TIterator, TInteger, connectivity >::copyFP(), and DGtal::FP< TIterator, TInteger, connectivity >::size().
|
inline |
Checks the validity/consistency of the object.
Definition at line 141 of file FPLengthEstimator.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 125 of file FPLengthEstimator.ih.
|
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.