DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | Private Member Functions
DGtal::RosenProffittLocalLengthEstimator< TConstIterator > Class Template Reference

#include <RosenProffittLocalLengthEstimator.h>

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

Public Types

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

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
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

Reimplemented from DGtal::TwoStepLocalLengthEstimator< TConstIterator >.

Definition at line 76 of file RosenProffittLocalLengthEstimator.h.

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

Constructor & Destructor Documentation

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

Default Constructor.

Definition at line 83 of file RosenProffittLocalLengthEstimator.h.

References M_PI.

:
M_PI*(sqrt(2.0f)+2.0)/16.0)
{}
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.

Reimplemented from DGtal::TwoStepLocalLengthEstimator< TConstIterator >.

Definition at line 97 of file RosenProffittLocalLengthEstimator.h.

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

{
out << "[RosenProffittLocalLengthEstimator]";
if (this->myIsInitBefore)
out <<" myH="<< this->myH;
else
out<< " not initialized";
}

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