DGtal
0.9.3
|
#include <DGtal/geometry/curves/estimation/DSSLengthEstimator.h>
Public Types | |
typedef TConstIterator | ConstIterator |
typedef double | Quantity |
typedef ArithmeticalDSSComputer< ConstIterator, int, 4 > | DSSComputer |
typedef DSSComputer::Point | Point |
typedef DSSComputer::Vector | Vector |
Public Member Functions | |
DSSLengthEstimator () | |
~DSSLengthEstimator () | |
void | init (const double h, const ConstIterator &itb, const ConstIterator &ite) |
Quantity | eval () const |
void | selfDisplay (std::ostream &out) const |
bool | isValid () const |
Private Member Functions | |
DSSLengthEstimator (const DSSLengthEstimator &other) | |
DSSLengthEstimator & | operator= (const DSSLengthEstimator &other) |
Point | lastPoint (const ConstIterator &ite) |
Point | lastPoint (const ConstIterator &c, CirculatorType) |
Point | lastPoint (const ConstIterator &ite, IteratorType) |
Private Attributes | |
double | myH |
std::vector< Point > | myRep |
bool | myIsInitBefore |
Aim: a model of CGlobalCurveEstimator that segments the digital curve into DSS and computes the length of the resulting (not uniquely defined) polygon.
Description of template class 'DSSLengthEstimator'
Model of CGlobalCurveGeometricEstimator
TConstIterator | a model of CConstIteratorOnPoints. |
Definition at line 76 of file DSSLengthEstimator.h.
typedef TConstIterator DGtal::DSSLengthEstimator< TConstIterator >::ConstIterator |
Definition at line 83 of file DSSLengthEstimator.h.
typedef ArithmeticalDSSComputer<ConstIterator,int,4> DGtal::DSSLengthEstimator< TConstIterator >::DSSComputer |
Definition at line 87 of file DSSLengthEstimator.h.
typedef DSSComputer::Point DGtal::DSSLengthEstimator< TConstIterator >::Point |
Definition at line 88 of file DSSLengthEstimator.h.
typedef double DGtal::DSSLengthEstimator< TConstIterator >::Quantity |
Definition at line 85 of file DSSLengthEstimator.h.
typedef DSSComputer::Vector DGtal::DSSLengthEstimator< TConstIterator >::Vector |
Definition at line 89 of file DSSLengthEstimator.h.
DGtal::DSSLengthEstimator< TConstIterator >::DSSLengthEstimator | ( | ) |
Default Constructor.
DGtal::DSSLengthEstimator< TConstIterator >::~DSSLengthEstimator | ( | ) |
Destructor.
|
private |
Copy constructor.
other | the object to clone. Forbidden by default. |
Quantity DGtal::DSSLengthEstimator< TConstIterator >::eval | ( | ) | const |
Computation of the l1 length of the curve. Complexity: O(|Range|)
Referenced by testL1LengthEstimator().
void DGtal::DSSLengthEstimator< TConstIterator >::init | ( | const double | h, |
const ConstIterator & | itb, | ||
const ConstIterator & | ite | ||
) |
Initialize the measure computation.
h | grid size (must be >0). |
itb | begin iterator |
ite | end iterator |
Referenced by testL1LengthEstimator().
bool DGtal::DSSLengthEstimator< TConstIterator >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
|
private |
|
private |
|
private |
|
private |
Assignment.
other | the object to copy. |
void DGtal::DSSLengthEstimator< 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 142 of file DSSLengthEstimator.h.
|
private |
Boolean to make sure that init() has been called before eval().
Definition at line 148 of file DSSLengthEstimator.h.
|
private |
polygonal representation of the input
Definition at line 145 of file DSSLengthEstimator.h.