DGtal 1.3.0
|
Aim: a simple model of CGlobalCurveEstimator that compute the length of a curve using the l_1 metric (just add 1/h for every step). More...
#include <DGtal/geometry/curves/estimation/TwoStepLocalLengthEstimator.h>
Public Types | |
typedef TConstIterator | ConstIterator |
typedef double | Quantity |
Public Member Functions | |
TwoStepLocalLengthEstimator ()=delete | |
TwoStepLocalLengthEstimator (const double wdirect, const double wdiag) | |
~TwoStepLocalLengthEstimator ()=default | |
TwoStepLocalLengthEstimator (const TwoStepLocalLengthEstimator &other)=delete | |
TwoStepLocalLengthEstimator & | operator= (const TwoStepLocalLengthEstimator &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 Attributes | |
double | myWeightDirect |
Weights. More... | |
double | myWeightDiagonal |
Aim: a simple model of CGlobalCurveEstimator that compute the length of a curve using the l_1 metric (just add 1/h for every step).
Description of template class 'TwoStepLocalLengthEstimator'
Model of CGlobalCurveGeometricEstimator
TConstIterator | a model of CConstIteratorOnArrows. |
Definition at line 65 of file TwoStepLocalLengthEstimator.h.
typedef TConstIterator DGtal::TwoStepLocalLengthEstimator< TConstIterator >::ConstIterator |
Definition at line 72 of file TwoStepLocalLengthEstimator.h.
typedef double DGtal::TwoStepLocalLengthEstimator< TConstIterator >::Quantity |
Definition at line 74 of file TwoStepLocalLengthEstimator.h.
|
delete |
Default Constructor.
DGtal::TwoStepLocalLengthEstimator< TConstIterator >::TwoStepLocalLengthEstimator | ( | const double | wdirect, |
const double | wdiag | ||
) |
Constructor with direct and diagonal weights.
wdirect | direct weight |
wdiag | diagonal weight |
|
default |
Destructor.
|
delete |
Copy constructor.
other | the object to clone. Forbidden by default. |
Quantity DGtal::TwoStepLocalLengthEstimator< TConstIterator >::eval | ( | const ConstIterator & | itb, |
const ConstIterator & | ite, | ||
const double | h = 1. |
||
) | const |
Computation of the l1 length of the curve. Iterated structure must contain pairs. The direct or diagonal case is resolved using the dot function on the second element of pairs. Complexity: O(|Range|)
itb | begin iterator |
ite | end iterator |
h | grid size (must be > 0). |
bool DGtal::TwoStepLocalLengthEstimator< TConstIterator >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
Referenced by DGtal::BLUELocalLengthEstimator< TConstIterator >::selfDisplay(), and DGtal::RosenProffittLocalLengthEstimator< TConstIterator >::selfDisplay().
|
delete |
Assignment.
other | the object to copy. |
void DGtal::TwoStepLocalLengthEstimator< TConstIterator >::selfDisplay | ( | std::ostream & | out | ) | const |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
|
private |
Definition at line 143 of file TwoStepLocalLengthEstimator.h.
|
private |
Weights.
Definition at line 142 of file TwoStepLocalLengthEstimator.h.