DGtal  0.9.3beta
Public Types | Public Member Functions | Data Fields
DGtal::deprecated::GaussianConvolutionWeights< TDistance > Class Template Reference

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

Public Types

typedef TDistance Distance
 

Public Member Functions

 GaussianConvolutionWeights (const double sigma)
 
double operator() (const Distance &aDisplacment) const
 

Data Fields

double mySigma
 
double myCoef
 
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
moved to deprecated since 0.7. Please consider using LocalEstimatorFromFunctorAdapter.
Template Parameters
TDistancetype for topological distances.

Definition at line 99 of file BasicConvolutionWeights.h.

Member Typedef Documentation

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

Inner type for the topological distance.

Definition at line 105 of file BasicConvolutionWeights.h.

Constructor & Destructor Documentation

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

Member Function Documentation

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
aDisplacmentdistance to the center
Returns
the weight

Definition at line 126 of file BasicConvolutionWeights.h.

References DGtal::deprecated::GaussianConvolutionWeights< TDistance >::myCoef, and DGtal::deprecated::GaussianConvolutionWeights< TDistance >::myCoef2.

127  {
128  return myCoef*exp(-NumberTraits<Distance>::castToDouble(aDisplacment)*
129  NumberTraits<Distance>::castToDouble(aDisplacment)*myCoef2);
130  }

Field Documentation

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

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