DGtal  0.9.3beta
Public Types | Public Member Functions
DGtal::detail::CurvatureFromDCA< isCCW > Struct Template Reference

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

Public Types

typedef double Value

Public Member Functions

template<typename DCA >
Value operator() (const DCA &aDCA, const double &aH=1.0) const

Detailed Description

template<bool isCCW = true>
struct DGtal::detail::CurvatureFromDCA< isCCW >

Description of class 'CurvatureFromDCA'

Aim: computes the curvature from a geometricDCA at a given grid step.

Template Parameters
isCCWboolean equal to 'true' for a scanning in a counter-clockwise (CCW) orientation, 'false' otherwise. For instance, the estimated curvature of a digital circle, scanned in a CCW (resp. CW) orientation, is positive (resp. negative).

Definition at line 784 of file SegmentComputerEstimators.h.

Member Typedef Documentation

template<bool isCCW = true>
typedef double DGtal::detail::CurvatureFromDCA< isCCW >::Value

Definition at line 787 of file SegmentComputerEstimators.h.

Member Function Documentation

template<bool isCCW = true>
template<typename DCA >
Value DGtal::detail::CurvatureFromDCA< isCCW >::operator() ( const DCA &  aDCA,
const double &  aH = 1.0 
) const


aDCAan instance of segment computer devoted to the DCA recognition.
aHgrid step
Template Parameters
DCAa model of segment computer devoted to the DCA recognition, basically geometricDCA.

Definition at line 803 of file SegmentComputerEstimators.h.

804  {
805  if ( aDCA.isStraight() )
806  return 0.0;
807  else
808  return ( aDCA.getSeparatingCircle().getCurvature() / aH );
809  }

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