ITK
4.2.0
Insight Segmentation and Registration Toolkit
|
#include <itkGaussianOperator.h>
Public Types | |
typedef GaussianOperator | Self |
typedef NeighborhoodOperator < TPixel, VDimension, TAllocator > | Superclass |
Public Types inherited from itk::NeighborhoodOperator< TPixel, VDimension, TAllocator > | |
typedef NumericTraits< TPixel > ::RealType | PixelRealType |
typedef TPixel | PixelType |
typedef Superclass::SizeType | SizeType |
typedef SliceIterator< TPixel, Self > | SliceIteratorType |
Public Types inherited from itk::Neighborhood< TPixel, VDimension, TAllocator > | |
typedef TAllocator | AllocatorType |
typedef AllocatorType::const_iterator | ConstIterator |
typedef unsigned int | DimensionValueType |
typedef AllocatorType::iterator | Iterator |
typedef SizeValueType | NeighborIndexType |
typedef Offset< VDimension > | OffsetType |
typedef SizeType::SizeValueType | SizeValueType |
Protected Types | |
typedef Superclass::CoefficientVector | CoefficientVector |
Protected Types inherited from itk::NeighborhoodOperator< TPixel, VDimension, TAllocator > |
Protected Member Functions | |
void | Fill (const CoefficientVector &coeff) |
CoefficientVector | GenerateCoefficients () |
Protected Member Functions inherited from itk::NeighborhoodOperator< TPixel, VDimension, TAllocator > | |
virtual void | FillCenteredDirectional (const CoefficientVector &) |
void | InitializeToZero () |
Protected Member Functions inherited from itk::Neighborhood< TPixel, VDimension, TAllocator > | |
virtual void | Allocate (NeighborIndexType i) |
virtual void | ComputeNeighborhoodOffsetTable () |
virtual void | ComputeNeighborhoodStrideTable () |
void | SetSize () |
Private Member Functions | |
const char * | GetNameOfClass () |
Private Attributes | |
double | m_MaximumError |
unsigned int | m_MaximumKernelWidth |
double | m_Variance |
A NeighborhoodOperator whose coefficients are a one dimensional, discrete Gaussian kernel.
GaussianOperator can be used to perform Gaussian blurring by taking its inner product with to a Neighborhood (NeighborhooIterator) that is swept across an image region. It is a directional operator. N successive applications oriented along each dimensional direction will effect separable, efficient, N-D Gaussian blurring of an image region.
GaussianOperator takes two parameters:
(1) The floating-point variance of the desired Gaussian function.
(2) The "maximum error" allowed in the discrete Gaussian function. "Maximum errror" is defined as the difference between the area under the discrete Gaussian curve and the area under the continuous Gaussian. Maximum error affects the Gaussian operator size. Care should be taken not to make this value too small relative to the variance lest the operator size become unreasonably large.
References: The Gaussian kernel contained in this operator was described by Tony Lindeberg (Discrete Scale-Space Theory and the Scale-Space Primal Sketch. Dissertation. Royal Institute of Technology, Stockholm, Sweden. May 1991.).
Definition at line 67 of file itkGaussianOperator.h.
|
protected |
Typedef support for coefficient vector type. Necessary to fix bug in the microsoft VC++ compiler.
Reimplemented from itk::NeighborhoodOperator< TPixel, VDimension, TAllocator >.
Definition at line 154 of file itkGaussianOperator.h.
typedef GaussianOperator itk::GaussianOperator< TPixel, VDimension, TAllocator >::Self |
Standard class typedefs.
Reimplemented from itk::NeighborhoodOperator< TPixel, VDimension, TAllocator >.
Definition at line 73 of file itkGaussianOperator.h.
typedef NeighborhoodOperator< TPixel, VDimension, TAllocator > itk::GaussianOperator< TPixel, VDimension, TAllocator >::Superclass |
Reimplemented from itk::NeighborhoodOperator< TPixel, VDimension, TAllocator >.
Definition at line 74 of file itkGaussianOperator.h.
|
inline |
Constructor.
Definition at line 77 of file itkGaussianOperator.h.
|
inline |
Copy constructor
Definition at line 80 of file itkGaussianOperator.h.
|
inlineprotectedvirtual |
Arranges coefficients spatially in the memory buffer.
Implements itk::NeighborhoodOperator< TPixel, VDimension, TAllocator >.
Definition at line 174 of file itkGaussianOperator.h.
|
protectedvirtual |
Calculates operator coefficients.
Implements itk::NeighborhoodOperator< TPixel, VDimension, TAllocator >.
|
inline |
Returns the maximum error of the gaussian approximation. Maximum error is the difference between the area under the discrete Gaussian curve and the area under the continuous Gaussian. Maximum error affects the Gaussian operator size.
Definition at line 128 of file itkGaussianOperator.h.
|
inline |
Returns the maximum allowed kernel width.
Definition at line 139 of file itkGaussianOperator.h.
|
inlineprivate |
For compatibility with itkWarningMacro
Definition at line 191 of file itkGaussianOperator.h.
|
inline |
Returns the variance of the Gaussian (scale) for the operator.
Definition at line 121 of file itkGaussianOperator.h.
double itk::GaussianOperator< TPixel, VDimension, TAllocator >::ModifiedBesselI | ( | int | , |
double | |||
) |
Returns the value of the modified Bessel function Ik(x) at a point x>=0, where k>=2.
double itk::GaussianOperator< TPixel, VDimension, TAllocator >::ModifiedBesselI0 | ( | double | ) |
Returns the value of the modified Bessel function I0(x) at a point x >= 0.
double itk::GaussianOperator< TPixel, VDimension, TAllocator >::ModifiedBesselI1 | ( | double | ) |
Returns the value of the modified Bessel function I1(x) at a point x, x real.
|
inline |
Assignment operator
Definition at line 90 of file itkGaussianOperator.h.
|
inlinevirtual |
Prints some debugging information.
Reimplemented from itk::NeighborhoodOperator< TPixel, VDimension, TAllocator >.
Definition at line 143 of file itkGaussianOperator.h.
|
inline |
Sets the desired maximum error of the gaussian approximation. Maximum error is the difference between the area under the discrete Gaussian curve and the area under the continuous Gaussian. Maximum error affects the Gaussian operator size. The value must be between 0.0 and 1.0.
Definition at line 110 of file itkGaussianOperator.h.
|
inline |
Sets a limit for growth of the kernel. Small maximum error values with large variances will yield very large kernel sizes. This value can be used to truncate a kernel in such instances. A warning will be given on truncation of the kernel.
Definition at line 135 of file itkGaussianOperator.h.
|
inline |
Sets the desired variance of the Gaussian kernel.
Definition at line 101 of file itkGaussianOperator.h.
|
private |
Difference between the areas under the curves of the continuous and discrete Gaussian functions.
Definition at line 183 of file itkGaussianOperator.h.
Referenced by itk::GaussianOperator< ScalarType, Superclass::Dimension >::GaussianOperator(), and itk::GaussianOperator< ScalarType, Superclass::Dimension >::operator=().
|
private |
Maximum kernel size allowed. This value is used to truncate a kernel that has grown too large. A warning is given when the specified maximum error causes the kernel to exceed this size.
Definition at line 188 of file itkGaussianOperator.h.
Referenced by itk::GaussianOperator< ScalarType, Superclass::Dimension >::GaussianOperator(), and itk::GaussianOperator< ScalarType, Superclass::Dimension >::operator=().
|
private |
Desired variance of the discrete Gaussian function.
Definition at line 179 of file itkGaussianOperator.h.
Referenced by itk::GaussianOperator< ScalarType, Superclass::Dimension >::GaussianOperator(), and itk::GaussianOperator< ScalarType, Superclass::Dimension >::operator=().