DGtal  1.1.0
DGtal::deprecated::GaussianConvolutionWeights< TDistance > Class Template Reference

Aim: implement a Gaussian centered convolution kernel. More...

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

## Public Types

typedef TDistance Distance
Inner type for the topological distance. More...

## Public Member Functions

GaussianConvolutionWeights (const double sigma)

double operator() (const Distance &aDisplacment) const

## Data Fields

double mySigma
Internal Sigma value;. More...

double myCoef
Precomputed constant coefs. More...

double myCoef2

## Detailed Description

### template<typename TDistance> class DGtal::deprecated::GaussianConvolutionWeights< TDistance >

Aim: implement a Gaussian centered convolution kernel.

Description of template class 'GaussianConvolutionWeights'

Warning
Template Parameters
 TDistance type for topological distances.

Definition at line 99 of file BasicConvolutionWeights.h.

## ◆ Distance

template<typename TDistance >
 typedef TDistance DGtal::deprecated::GaussianConvolutionWeights< TDistance >::Distance

Inner type for the topological distance.

Definition at line 105 of file BasicConvolutionWeights.h.

## ◆ GaussianConvolutionWeights()

template<typename TDistance >
 DGtal::deprecated::GaussianConvolutionWeights< TDistance >::GaussianConvolutionWeights ( const double sigma )
inline

Constructor

Parameters
 sigma Gaussian sigma parameter.

Definition at line 112 of file BasicConvolutionWeights.h.

112  : mySigma(sigma)
113  {
114  myCoef = 1.0/(mySigma * sqrt(2.0*M_PI));
115  myCoef2 = 1.0/(2.0*M_PI);
116  }

## ◆ operator()()

template<typename TDistance >
 double DGtal::deprecated::GaussianConvolutionWeights< TDistance >::operator() ( const Distance & aDisplacment ) const
inline

Return a Gaussian weight from a distance to the gaussian function center.

Parameters
Returns
the weight

Definition at line 126 of file BasicConvolutionWeights.h.

127  {
130  }

## ◆ myCoef

template<typename TDistance >
 double DGtal::deprecated::GaussianConvolutionWeights< TDistance >::myCoef

Precomputed constant coefs.

Definition at line 136 of file BasicConvolutionWeights.h.

## ◆ myCoef2

template<typename TDistance >
 double DGtal::deprecated::GaussianConvolutionWeights< TDistance >::myCoef2

Definition at line 137 of file BasicConvolutionWeights.h.

## ◆ mySigma

template<typename TDistance >
 double DGtal::deprecated::GaussianConvolutionWeights< TDistance >::mySigma

Internal Sigma value;.

Definition at line 133 of file BasicConvolutionWeights.h.

The documentation for this class was generated from the following file:
DGtal::deprecated::GaussianConvolutionWeights::mySigma
double mySigma
Internal Sigma value;.
Definition: BasicConvolutionWeights.h:133
DGtal::deprecated::GaussianConvolutionWeights::myCoef2
double myCoef2
Definition: BasicConvolutionWeights.h:137
DGtal::NumberTraitsImpl< std::decay< T >::type >::castToDouble
static double castToDouble(const std::decay< T >::type &aT)
Cast method to double (for I/O or board export uses only).
Definition: NumberTraits.h:154
DGtal::deprecated::GaussianConvolutionWeights::myCoef
double myCoef
Precomputed constant coefs.
Definition: BasicConvolutionWeights.h:136