Utility class for generating Gaussian kernels. More...
#include <cmtkGaussianKernel.h>
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. | |
Utility class for generating Gaussian kernels.
Definition at line 50 of file cmtkGaussianKernel.h.
| typedef GaussianKernel<TFloat> cmtk::GaussianKernel< TFloat >::Self |
This class.
Definition at line 54 of file cmtkGaussianKernel.h.
| 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.
| sigma | Sigma parameter (standard deviation) of the kernel |
| maxError | Maximum 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().
| 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().
| static std::vector<TFloat> cmtk::GaussianKernel< TFloat >::GetSymmetricKernel | ( | const Units::GaussianSigma & | sigma, |
| const TFloat | maxError = 1e-5 |
||
| ) | [inline, static] |
Create symmetric kernel.
| sigma | Sigma parameter (standard deviation) of the kernel |
| maxError | Maximum 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().
1.7.2