DGtal  1.0.0
Public Types | Public Member Functions | Private Attributes
DGtal::functors::IICurvatureFunctor< TSpace > Struct Template Reference

Aim: A functor Real -> Real that returns the 2d curvature by transforming the given volume. This functor is valid only in 2D space. More...

#include <DGtal/geometry/surfaces/estimation/IIGeometricFunctors.h>

Public Types

typedef IICurvatureFunctor< TSpace > Self
 
typedef TSpace Space
 
typedef Space::RealVector RealVector
 
typedef RealVector::Component Component
 
typedef Component Argument
 
typedef Component Quantity
 
typedef Quantity Value
 

Public Member Functions

 BOOST_CONCEPT_ASSERT ((concepts::CSpace< TSpace >))
 
 BOOST_STATIC_ASSERT ((Space::dimension==2))
 
Value operator() (const Argument &arg) const
 
void init (Component h, Component r)
 

Private Attributes

Quantity dh2
 
Quantity d3_r
 
Quantity dPI_2
 
Quantity d1_r2
 

Detailed Description

template<typename TSpace>
struct DGtal::functors::IICurvatureFunctor< TSpace >

Aim: A functor Real -> Real that returns the 2d curvature by transforming the given volume. This functor is valid only in 2D space.

Description of template class 'IICurvatureFunctor'

Template Parameters
TSpacea model of CSpace, for instance SpaceND.
See also
IntegralInvariantVolumeEstimator

Definition at line 451 of file IIGeometricFunctors.h.

Member Typedef Documentation

◆ Argument

template<typename TSpace >
typedef Component DGtal::functors::IICurvatureFunctor< TSpace >::Argument

Definition at line 459 of file IIGeometricFunctors.h.

◆ Component

template<typename TSpace >
typedef RealVector::Component DGtal::functors::IICurvatureFunctor< TSpace >::Component

Definition at line 458 of file IIGeometricFunctors.h.

◆ Quantity

template<typename TSpace >
typedef Component DGtal::functors::IICurvatureFunctor< TSpace >::Quantity

Definition at line 460 of file IIGeometricFunctors.h.

◆ RealVector

template<typename TSpace >
typedef Space::RealVector DGtal::functors::IICurvatureFunctor< TSpace >::RealVector

Definition at line 457 of file IIGeometricFunctors.h.

◆ Self

template<typename TSpace >
typedef IICurvatureFunctor<TSpace> DGtal::functors::IICurvatureFunctor< TSpace >::Self

Definition at line 455 of file IIGeometricFunctors.h.

◆ Space

template<typename TSpace >
typedef TSpace DGtal::functors::IICurvatureFunctor< TSpace >::Space

Definition at line 456 of file IIGeometricFunctors.h.

◆ Value

template<typename TSpace >
typedef Quantity DGtal::functors::IICurvatureFunctor< TSpace >::Value

Definition at line 461 of file IIGeometricFunctors.h.

Member Function Documentation

◆ BOOST_CONCEPT_ASSERT()

template<typename TSpace >
DGtal::functors::IICurvatureFunctor< TSpace >::BOOST_CONCEPT_ASSERT ( (concepts::CSpace< TSpace >)  )

◆ BOOST_STATIC_ASSERT()

template<typename TSpace >
DGtal::functors::IICurvatureFunctor< TSpace >::BOOST_STATIC_ASSERT ( (Space::dimension==2)  )

◆ init()

template<typename TSpace >
void DGtal::functors::IICurvatureFunctor< TSpace >::init ( Component  h,
Component  r 
)
inline

Initializes the functor with the gridstep and the ball Euclidean radius.

Parameters
hthe gridstep
rthe ball radius

Definition at line 485 of file IIGeometricFunctors.h.

486  {
487  d1_r2 = 1.0 / ( r * r );
488  dPI_2 = M_PI / 2.0;
489  d3_r = 3.0 / r;
490  dh2 = h * h;
491  }

References DGtal::functors::IICurvatureFunctor< TSpace >::d1_r2, DGtal::functors::IICurvatureFunctor< TSpace >::d3_r, DGtal::functors::IICurvatureFunctor< TSpace >::dh2, and DGtal::functors::IICurvatureFunctor< TSpace >::dPI_2.

◆ operator()()

template<typename TSpace >
Value DGtal::functors::IICurvatureFunctor< TSpace >::operator() ( const Argument arg) const
inline

Apply operator.

Parameters
argany symmetric positive matrix (covariance matrix
Returns
the curvature associated with the II area measurement.

Definition at line 472 of file IIGeometricFunctors.h.

473  {
474  Quantity cp_quantity = arg;
475  cp_quantity *= dh2;
476  return d3_r * ( dPI_2 - d1_r2 * cp_quantity );
477  }

References DGtal::functors::IICurvatureFunctor< TSpace >::d1_r2, DGtal::functors::IICurvatureFunctor< TSpace >::d3_r, DGtal::functors::IICurvatureFunctor< TSpace >::dh2, and DGtal::functors::IICurvatureFunctor< TSpace >::dPI_2.

Field Documentation

◆ d1_r2

template<typename TSpace >
Quantity DGtal::functors::IICurvatureFunctor< TSpace >::d1_r2
private

◆ d3_r

template<typename TSpace >
Quantity DGtal::functors::IICurvatureFunctor< TSpace >::d3_r
private

◆ dh2

template<typename TSpace >
Quantity DGtal::functors::IICurvatureFunctor< TSpace >::dh2
private

◆ dPI_2

template<typename TSpace >
Quantity DGtal::functors::IICurvatureFunctor< TSpace >::dPI_2
private

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