DGtal 1.4.0
|
Aim: a model of CGlobalCurveEstimator that segments the digital curve into DSS and computes the length of the resulting (not uniquely defined) polygon. More...
#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 ()=default | |
~DSSLengthEstimator ()=default | |
DSSLengthEstimator (const DSSLengthEstimator &other)=delete | |
DSSLengthEstimator & | operator= (const DSSLengthEstimator &other)=delete |
Quantity | eval (const ConstIterator &itb, const ConstIterator &ite, const double h=1.) const |
void | selfDisplay (std::ostream &out) const |
bool | isValid () const |
Private Member Functions | |
BOOST_CONCEPT_ASSERT ((boost_concepts::ReadableIteratorConcept< TConstIterator >)) | |
BOOST_CONCEPT_ASSERT ((boost_concepts::ForwardTraversalConcept< TConstIterator >)) | |
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 86 of file DSSLengthEstimator.h.
typedef ArithmeticalDSSComputer<ConstIterator,int,4> DGtal::DSSLengthEstimator< TConstIterator >::DSSComputer |
Definition at line 90 of file DSSLengthEstimator.h.
typedef DSSComputer::Point DGtal::DSSLengthEstimator< TConstIterator >::Point |
Definition at line 91 of file DSSLengthEstimator.h.
typedef double DGtal::DSSLengthEstimator< TConstIterator >::Quantity |
Definition at line 88 of file DSSLengthEstimator.h.
typedef DSSComputer::Vector DGtal::DSSLengthEstimator< TConstIterator >::Vector |
Definition at line 92 of file DSSLengthEstimator.h.
|
default |
Default Constructor.
|
default |
Destructor.
|
delete |
Copy constructor.
other | the object to clone. Forbidden by default. |
|
private |
|
private |
Quantity DGtal::DSSLengthEstimator< TConstIterator >::eval | ( | const ConstIterator & | itb, |
const ConstIterator & | ite, | ||
const double | h = 1. ) const |
Computation of the l1 length of the curve. Complexity: O(|Range|)
itb | begin iterator |
ite | end iterator |
h | grid size (must be > 0). |
Referenced by testL1LengthEstimator().
bool DGtal::DSSLengthEstimator< TConstIterator >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
|
delete |
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. |