ITK
4.2.0
Insight Segmentation and Registration Toolkit
|
#include <itkDiscreteGradientMagnitudeGaussianImageFunction.h>
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual OutputType | Evaluate (const PointType &point) const |
virtual OutputType | EvaluateAtContinuousIndex (const ContinuousIndexType &index) const |
virtual OutputType | EvaluateAtIndex (const IndexType &index) const |
virtual const char * | GetNameOfClass () const |
virtual void | Initialize () |
virtual void | SetInputImage (const InputImageType *ptr) |
void | SetSigma (const double sigma) |
virtual void | SetVariance (VarianceArrayType _arg) |
virtual const VarianceArrayType | GetVariance () const |
virtual void | SetVariance (double data[]) |
virtual void | SetVariance (double variance) |
virtual void | SetMaximumError (double _arg) |
virtual double | GetMaximumError () const |
virtual void | SetNormalizeAcrossScale (bool _arg) |
virtual bool | GetNormalizeAcrossScale () const |
virtual void | NormalizeAcrossScaleOn () |
virtual void | NormalizeAcrossScaleOff () |
virtual void | SetUseImageSpacing (bool _arg) |
virtual bool | GetUseImageSpacing () const |
virtual void | UseImageSpacingOn () |
virtual void | UseImageSpacingOff () |
virtual void | SetMaximumKernelWidth (unsigned int _arg) |
virtual unsigned int | GetMaximumKernelWidth () const |
virtual void | SetInterpolationMode (InterpolationModeType _arg) |
virtual InterpolationModeType | GetInterpolationMode () const |
Public Member Functions inherited from itk::ImageFunction< TInputImage, TOutput, TOutput > | |
void | ConvertContinuousIndexToNearestIndex (const ContinuousIndexType &cindex, IndexType &index) const |
void | ConvertPointToContinuousIndex (const PointType &point, ContinuousIndexType &cindex) const |
void | ConvertPointToNearestIndex (const PointType &point, IndexType &index) const |
virtual TOutput | Evaluate (const PointType &point) const =0 |
virtual TOutput | EvaluateAtContinuousIndex (const ContinuousIndexType &index) const =0 |
virtual TOutput | EvaluateAtIndex (const IndexType &index) const =0 |
virtual const ContinuousIndexType & | GetEndContinuousIndex () |
virtual const IndexType & | GetEndIndex () |
const InputImageType * | GetInputImage () const |
virtual const ContinuousIndexType & | GetStartContinuousIndex () |
virtual const IndexType & | GetStartIndex () |
virtual void | SetInputImage (const InputImageType *ptr) |
virtual bool | IsInsideBuffer (const IndexType &index) const |
virtual bool | IsInsideBuffer (const ContinuousIndexType &index) const |
virtual bool | IsInsideBuffer (const PointType &point) const |
Static Public Member Functions | |
static Pointer | New () |
Static Public Attributes | |
static const unsigned int | ImageDimension2 = InputImageType::ImageDimension |
Static Public Attributes inherited from itk::ImageFunction< TInputImage, TOutput, TOutput > | |
static const unsigned int | ImageDimension |
Additional Inherited Members | |
Protected Attributes inherited from itk::ImageFunction< TInputImage, TOutput, TOutput > | |
ContinuousIndexType | m_EndContinuousIndex |
IndexType | m_EndIndex |
InputImageConstPointer | m_Image |
ContinuousIndexType | m_StartContinuousIndex |
IndexType | m_StartIndex |
Compute the discrete gradient magnitude gaussian of an the image at a specific location in space, i.e. point, index or continuous index. This class computes a single derivative given the order in each direction (by default zero). This class is templated over the input image type.
The Initialize() method must be called after setting the parameters and before evaluating the function.
This implementation was taken from the Insight Journal paper: http://hdl.handle.net/1926/1290
Definition at line 47 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
typedef SmartPointer< const Self > itk::DiscreteGradientMagnitudeGaussianImageFunction< TInputImage, TOutput >::ConstPointer |
Reimplemented from itk::ImageFunction< TInputImage, TOutput, TOutput >.
Definition at line 60 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
typedef Superclass::ContinuousIndexType itk::DiscreteGradientMagnitudeGaussianImageFunction< TInputImage, TOutput >::ContinuousIndexType |
ContinuousIndex Type.
Reimplemented from itk::ImageFunction< TInputImage, TOutput, TOutput >.
Definition at line 73 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
typedef FixedArray< GaussianDerivativeOperatorType, 2 *itkGetStaticConstMacro(ImageDimension2) > itk::DiscreteGradientMagnitudeGaussianImageFunction< TInputImage, TOutput >::GaussianDerivativeOperatorArrayType |
Array to store gaussian derivative operators one for each dimension
Definition at line 93 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
typedef itk::GaussianDerivativeOperator< TOutput, itkGetStaticConstMacro(ImageDimension2) > itk::DiscreteGradientMagnitudeGaussianImageFunction< TInputImage, TOutput >::GaussianDerivativeOperatorType |
Definition at line 89 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
typedef Superclass::IndexType itk::DiscreteGradientMagnitudeGaussianImageFunction< TInputImage, TOutput >::IndexType |
Index Type.
Reimplemented from itk::ImageFunction< TInputImage, TOutput, TOutput >.
Definition at line 71 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
typedef Superclass::IndexValueType itk::DiscreteGradientMagnitudeGaussianImageFunction< TInputImage, TOutput >::IndexValueType |
Reimplemented from itk::ImageFunction< TInputImage, TOutput, TOutput >.
Definition at line 72 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
typedef Superclass::InputImageType itk::DiscreteGradientMagnitudeGaussianImageFunction< TInputImage, TOutput >::InputImageType |
Image dependent types
Reimplemented from itk::ImageFunction< TInputImage, TOutput, TOutput >.
Definition at line 66 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
typedef Superclass::InputPixelType itk::DiscreteGradientMagnitudeGaussianImageFunction< TInputImage, TOutput >::InputPixelType |
InputPixel typedef support
Reimplemented from itk::ImageFunction< TInputImage, TOutput, TOutput >.
Definition at line 70 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
typedef FixedArray< KernelType, itkGetStaticConstMacro(ImageDimension2) > itk::DiscreteGradientMagnitudeGaussianImageFunction< TInputImage, TOutput >::KernelArrayType |
Array to store precomputed N-dimensional kernels for the gradient components
Definition at line 100 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
typedef Neighborhood< TOutput, itkGetStaticConstMacro(ImageDimension2) > itk::DiscreteGradientMagnitudeGaussianImageFunction< TInputImage, TOutput >::KernelType |
Precomputed N-dimensional derivative kernel
Definition at line 96 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
typedef OperatorImageFunctionType::Pointer itk::DiscreteGradientMagnitudeGaussianImageFunction< TInputImage, TOutput >::OperatorImageFunctionPointer |
Definition at line 105 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
typedef NeighborhoodOperatorImageFunction< InputImageType, TOutput > itk::DiscreteGradientMagnitudeGaussianImageFunction< TInputImage, TOutput >::OperatorImageFunctionType |
Image function that performs convolution with the neighborhood operator
Definition at line 104 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
typedef FixedArray< unsigned int, itkGetStaticConstMacro(ImageDimension2) > itk::DiscreteGradientMagnitudeGaussianImageFunction< TInputImage, TOutput >::OrderArrayType |
Arrays for native types
Definition at line 85 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
typedef Superclass::OutputType itk::DiscreteGradientMagnitudeGaussianImageFunction< TInputImage, TOutput >::OutputType |
Output type
Reimplemented from itk::ImageFunction< TInputImage, TOutput, TOutput >.
Definition at line 81 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
typedef SmartPointer< Self > itk::DiscreteGradientMagnitudeGaussianImageFunction< TInputImage, TOutput >::Pointer |
Smart pointer typedef support
Reimplemented from itk::ImageFunction< TInputImage, TOutput, TOutput >.
Definition at line 59 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
typedef Superclass::PointType itk::DiscreteGradientMagnitudeGaussianImageFunction< TInputImage, TOutput >::PointType |
Point Type.
Reimplemented from itk::ImageFunction< TInputImage, TOutput, TOutput >.
Definition at line 74 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
typedef DiscreteGradientMagnitudeGaussianImageFunction itk::DiscreteGradientMagnitudeGaussianImageFunction< TInputImage, TOutput >::Self |
Standard "Self" typedef
Reimplemented from itk::ImageFunction< TInputImage, TOutput, TOutput >.
Definition at line 53 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
typedef ImageFunction< TInputImage, TOutput, TOutput > itk::DiscreteGradientMagnitudeGaussianImageFunction< TInputImage, TOutput >::Superclass |
Standard "Superclass" typedef
Reimplemented from itk::ImageFunction< TInputImage, TOutput, TOutput >.
Definition at line 56 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
typedef FixedArray< double, itkGetStaticConstMacro(ImageDimension2) > itk::DiscreteGradientMagnitudeGaussianImageFunction< TInputImage, TOutput >::VarianceArrayType |
Arrays for native types
Definition at line 84 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
enum itk::DiscreteGradientMagnitudeGaussianImageFunction::InterpolationModeType |
Interpolation modes
Definition at line 108 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
|
protected |
|
inlineprotected |
Definition at line 193 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
|
inlineprotected |
Definition at line 195 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
|
virtual |
Evalutate the in the given dimension at specified point
|
virtual |
Evaluate the function at specified ContinousIndex position
|
virtual |
Evaluate the function at specified Index position
|
virtual |
Set/Get the interpolation mode.
|
virtual |
Set/Get 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 is clamped between 0.00001 and 0.99999.
|
virtual |
Set/Get 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.
|
virtual |
Run-time type information (and related methods)
Reimplemented from itk::ImageFunction< TInputImage, TOutput, TOutput >.
|
virtual |
Set/Get the flag for calculating scale-space normalized derivatives. Normalized derivatives are obtained multiplying by the scale parameter t.
|
virtual |
Set/Get the flag for using image spacing when calculating derivatives.
|
virtual |
Set/Get the variance for the discrete Gaussian kernel. Sets the variance for individual dimensions. The default is 0.0 in each dimension. If UseImageSpacing is true, the units are the physical units of your image. If UseImageSpacing is false then the units are pixels
|
inlinevirtual |
Initialize the Gaussian kernel. Call this method before evaluating the function. This method MUST be called after any changes to function parameters.
Definition at line 189 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
|
static |
Method for creation through the object factory
Reimplemented from itk::Object.
|
virtual |
Set/Get the flag for calculating scale-space normalized derivatives. Normalized derivatives are obtained multiplying by the scale parameter t.
|
virtual |
Set/Get the flag for calculating scale-space normalized derivatives. Normalized derivatives are obtained multiplying by the scale parameter t.
|
inlineprotected |
Mutex lock to protect modification to the reference count
Reimplemented from itk::ImageFunction< TInputImage, TOutput, TOutput >.
Definition at line 197 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
|
protectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::ImageFunction< TInputImage, TOutput, TOutput >.
|
protected |
|
virtual |
Set the input image.
|
virtual |
Set/Get the interpolation mode.
|
virtual |
Set/Get 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 is clamped between 0.00001 and 0.99999.
|
virtual |
Set/Get 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.
|
virtual |
Set/Get the flag for calculating scale-space normalized derivatives. Normalized derivatives are obtained multiplying by the scale parameter t.
|
inline |
Convenience method for setting the variance through the standard deviation
Definition at line 140 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
|
virtual |
Set/Get the flag for using image spacing when calculating derivatives.
|
virtual |
Set/Get the variance for the discrete Gaussian kernel. Sets the variance for individual dimensions. The default is 0.0 in each dimension. If UseImageSpacing is true, the units are the physical units of your image. If UseImageSpacing is false then the units are pixels
|
virtual |
Set/Get the variance for the discrete Gaussian kernel. Sets the variance for individual dimensions. The default is 0.0 in each dimension. If UseImageSpacing is true, the units are the physical units of your image. If UseImageSpacing is false then the units are pixels
|
inlinevirtual |
Convenience method for setting the variance for all dimensions
Definition at line 131 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
|
virtual |
Set/Get the flag for using image spacing when calculating derivatives.
|
virtual |
Set/Get the flag for using image spacing when calculating derivatives.
|
static |
Dimension of the underlying image
Definition at line 78 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
|
private |
Interpolation mode
Definition at line 236 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
|
private |
Array of N-dimensional kernels used to calculate gradient components
Definition at line 224 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
|
private |
Difference between the areas under the curves of the continuous and discrete Gaussian functions
Definition at line 211 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
|
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 216 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
|
private |
Flag for scale-space normalization of derivatives
Definition at line 230 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
|
private |
Array of derivative operators, one for each dimension and order. First N zero-rder operators are stored, then N first-order making 2*N operators altogether where N=ImageDimension
Definition at line 221 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
|
private |
OperatorImageFunction
Definition at line 227 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
|
private |
Flag to indicate whether to use image spacing
Definition at line 233 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.
|
private |
Desired variance of the discrete Gaussian function
Definition at line 207 of file itkDiscreteGradientMagnitudeGaussianImageFunction.h.