Public Types | Static Public Member Functions | Static Private Member Functions

cmtk::GaussianKernel< TFloat > Class Template Reference

Utility class for generating Gaussian kernels. More...

#include <cmtkGaussianKernel.h>

List of all members.

Public Types

typedef GaussianKernel< TFloat > Self
 This class.

Static Public Member Functions

static std::vector< TFloat > GetSymmetricKernel (const Units::GaussianSigma &sigma, const TFloat maxError=1e-5)
 Create symmetric kernel.
static std::vector< TFloat > GetHalfKernel (const Units::GaussianSigma &sigma, const TFloat maxError=1e-5)
 Create half kernel, starting with center element.

Static Private Member Functions

static TFloat GetRadius (const Units::GaussianSigma &sigma, const TFloat normFactor, const TFloat maxError)
 Compute kernel radius based on maximum approximation error and normalization factor.

Detailed Description

template<class TFloat = double>
class cmtk::GaussianKernel< TFloat >

Utility class for generating Gaussian kernels.

Definition at line 50 of file cmtkGaussianKernel.h.


Member Typedef Documentation

template<class TFloat = double>
typedef GaussianKernel<TFloat> cmtk::GaussianKernel< TFloat >::Self

This class.

Definition at line 54 of file cmtkGaussianKernel.h.


Member Function Documentation

template<class TFloat = double>
static std::vector<TFloat> cmtk::GaussianKernel< TFloat >::GetHalfKernel ( const Units::GaussianSigma sigma,
const TFloat  maxError = 1e-5 
) [inline, static]

Create half kernel, starting with center element.

Parameters:
sigmaSigma parameter (standard deviation) of the kernel
maxErrorMaximum approximation error: the kernel radius is computed so that truncated elements are below this value

Definition at line 73 of file cmtkGaussianKernel.h.

References M_PI, and cmtk::Units::UnitBase::Value().

template<class TFloat = double>
static TFloat cmtk::GaussianKernel< TFloat >::GetRadius ( const Units::GaussianSigma sigma,
const TFloat  normFactor,
const TFloat  maxError 
) [inline, static, private]

Compute kernel radius based on maximum approximation error and normalization factor.

Definition at line 90 of file cmtkGaussianKernel.h.

References cmtk::Units::UnitBase::Value().

template<class TFloat = double>
static std::vector<TFloat> cmtk::GaussianKernel< TFloat >::GetSymmetricKernel ( const Units::GaussianSigma sigma,
const TFloat  maxError = 1e-5 
) [inline, static]

Create symmetric kernel.

Parameters:
sigmaSigma parameter (standard deviation) of the kernel
maxErrorMaximum approximation error: the kernel radius is computed so that truncated elements are below this value

Definition at line 57 of file cmtkGaussianKernel.h.

References M_PI, and cmtk::Units::UnitBase::Value().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines