DGtal
0.6.devel
|
#include <DSSLengthEstimator.h>
Public Types | |
typedef TConstIterator | ConstIterator |
typedef double | Quantity |
typedef ArithmeticalDSS < 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, const bool &isClosed) |
Quantity | eval () const |
void | selfDisplay (std::ostream &out) const |
bool | isValid () const |
Private Member Functions | |
DSSLengthEstimator (const DSSLengthEstimator &other) | |
DSSLengthEstimator & | operator= (const DSSLengthEstimator &other) |
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 75 of file DSSLengthEstimator.h.
typedef TConstIterator DGtal::DSSLengthEstimator< TConstIterator >::ConstIterator |
Definition at line 82 of file DSSLengthEstimator.h.
typedef ArithmeticalDSS<ConstIterator,int,4> DGtal::DSSLengthEstimator< TConstIterator >::DSSComputer |
Definition at line 86 of file DSSLengthEstimator.h.
typedef DSSComputer::Point DGtal::DSSLengthEstimator< TConstIterator >::Point |
Definition at line 87 of file DSSLengthEstimator.h.
typedef double DGtal::DSSLengthEstimator< TConstIterator >::Quantity |
Definition at line 84 of file DSSLengthEstimator.h.
typedef DSSComputer::Vector DGtal::DSSLengthEstimator< TConstIterator >::Vector |
Definition at line 88 of file DSSLengthEstimator.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 97 of file DSSLengthEstimator.ih.
|
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 DSSLengthEstimator.ih.
References DGtal::deprecated::GreedyDecomposition< TSegment >::begin(), DGtal::deprecated::GreedyDecomposition< TSegment >::end(), DGtal::deprecated::GreedyDecomposition< TSegment >::SegmentIterator::getBack(), and DGtal::deprecated::GreedyDecomposition< TSegment >::SegmentIterator::getFront().
|
inline |
Checks the validity/consistency of the object.
Definition at line 146 of file DSSLengthEstimator.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 130 of file DSSLengthEstimator.ih.
|
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.