DGtal  0.9.4beta
Public Types | Public Member Functions
DGtal::detail::CurvatureFromDCA< false > 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 Value &aH=1.0) const
 

Detailed Description

template<>
struct DGtal::detail::CurvatureFromDCA< false >

Definition at line 812 of file SegmentComputerEstimators.h.

Member Typedef Documentation

typedef double DGtal::detail::CurvatureFromDCA< false >::Value

Definition at line 815 of file SegmentComputerEstimators.h.

Member Function Documentation

template<typename DCA >
Value DGtal::detail::CurvatureFromDCA< false >::operator() ( const DCA &  aDCA,
const Value aH = 1.0 
) const
inline

Definition at line 818 of file SegmentComputerEstimators.h.

819  {
820  if ( aDCA.isStraight() )
821  return 0.0;
822  else
823  return - ( aDCA.getSeparatingCircle().getCurvature() / aH );
824  }

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