DGtal  1.0.beta
Public Types | Public Member Functions | Private Member Functions
DGtal::RosenProffittLocalLengthEstimator< TConstIterator > Class Template Reference

#include <DGtal/geometry/curves/estimation/RosenProffittLocalLengthEstimator.h>

Inheritance diagram for DGtal::RosenProffittLocalLengthEstimator< TConstIterator >:
[legend]
Collaboration diagram for DGtal::RosenProffittLocalLengthEstimator< TConstIterator >:
[legend]

Public Types

typedef TConstIterator ConstIterator
 
typedef double Quantity
 
- Public Types inherited from DGtal::TwoStepLocalLengthEstimator< TConstIterator >
typedef TConstIterator ConstIterator
 
typedef double Quantity
 

Public Member Functions

 RosenProffittLocalLengthEstimator ()
 
void selfDisplay (std::ostream &out) const
 
- Public Member Functions inherited from DGtal::TwoStepLocalLengthEstimator< TConstIterator >
 TwoStepLocalLengthEstimator (const double wdirect, const double wdiag)
 
 ~TwoStepLocalLengthEstimator ()
 
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

 RosenProffittLocalLengthEstimator (const RosenProffittLocalLengthEstimator &other)
 
RosenProffittLocalLengthEstimatoroperator= (const RosenProffittLocalLengthEstimator &other)
 

Detailed Description

template<typename TConstIterator>
class DGtal::RosenProffittLocalLengthEstimator< TConstIterator >

Aim: Rosen-Proffitt Length Estimator.

Description of template class 'RosenProffittLocalLengthEstimator'

Note
T. J. Ellis and D. Proffitt and D. Rosen and W. Rutkowski Measurement of the lengths of digitized curved lines Computer Graphics and Image Processing, Vol. 10, pp. 333-347, August 1979

Model of CGlobalCurveGeometricEstimator

Template Parameters
TConstIteratora model of CConstIteratorOnArrows.

Definition at line 69 of file RosenProffittLocalLengthEstimator.h.

Member Typedef Documentation

template<typename TConstIterator>
typedef TConstIterator DGtal::RosenProffittLocalLengthEstimator< TConstIterator >::ConstIterator
Todo:
CONCEPT CHECK sur ConstIterator

Definition at line 76 of file RosenProffittLocalLengthEstimator.h.

template<typename TConstIterator>
typedef double DGtal::RosenProffittLocalLengthEstimator< TConstIterator >::Quantity

Definition at line 77 of file RosenProffittLocalLengthEstimator.h.

Constructor & Destructor Documentation

template<typename TConstIterator>
DGtal::RosenProffittLocalLengthEstimator< TConstIterator >::RosenProffittLocalLengthEstimator ( )
inline

Default Constructor.

Definition at line 83 of file RosenProffittLocalLengthEstimator.h.

83  :
84  TwoStepLocalLengthEstimator<TConstIterator>(M_PI*(sqrt(2.0f)+1.0)/8.0,
85  M_PI*(sqrt(2.0f)+2.0)/16.0)
86  {}
template<typename TConstIterator>
DGtal::RosenProffittLocalLengthEstimator< TConstIterator >::RosenProffittLocalLengthEstimator ( const RosenProffittLocalLengthEstimator< TConstIterator > &  other)
private

Copy constructor.

Parameters
otherthe object to clone. Forbidden by default.

Member Function Documentation

template<typename TConstIterator>
RosenProffittLocalLengthEstimator& DGtal::RosenProffittLocalLengthEstimator< TConstIterator >::operator= ( const RosenProffittLocalLengthEstimator< TConstIterator > &  other)
private

Assignment.

Parameters
otherthe object to copy.
Returns
a reference on 'this'. Forbidden by default.
template<typename TConstIterator>
void DGtal::RosenProffittLocalLengthEstimator< TConstIterator >::selfDisplay ( std::ostream &  out) const
inline

Writes/Displays the object on an output stream.

Parameters
outthe output stream where the object is written.

Definition at line 97 of file RosenProffittLocalLengthEstimator.h.

References DGtal::TwoStepLocalLengthEstimator< TConstIterator >::myH, and DGtal::TwoStepLocalLengthEstimator< TConstIterator >::myIsInitBefore.

98  {
99  out << "[RosenProffittLocalLengthEstimator]";
100  if (this->myIsInitBefore)
101  out <<" myH="<< this->myH;
102  else
103  out<< " not initialized";
104  }
bool myIsInitBefore
Boolean to make sure that init() has been called before eval().

The documentation for this class was generated from the following file: