ITK
4.4.0
Insight Segmentation and Registration Toolkit
|
#include <itkDiscreteHessianGaussianImageFunction.h>
Compute the Hessian Gaussian of an image at a specific location in space by calculating discrete second-order gaussian derivatives. 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 46 of file itkDiscreteHessianGaussianImageFunction.h.
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::ContinuousIndexType | ContinuousIndexType |
typedef FixedArray < GaussianDerivativeOperatorType, 3 *itkGetStaticConstMacro(ImageDimension2) > | GaussianDerivativeOperatorArrayType |
typedef itk::GaussianDerivativeOperator < TOutput, itkGetStaticConstMacro(ImageDimension2) > | GaussianDerivativeOperatorType |
typedef Superclass::IndexType | IndexType |
typedef Superclass::IndexValueType | IndexValueType |
typedef Superclass::InputImageType | InputImageType |
typedef Superclass::InputPixelType | InputPixelType |
enum | InterpolationModeType { NearestNeighbourInterpolation, LinearInterpolation } |
typedef FixedArray< KernelType, itkGetStaticConstMacro(ImageDimension2)*(itkGetStaticConstMacro(ImageDimension2)+1)/2 > | KernelArrayType |
typedef Neighborhood< TOutput, itkGetStaticConstMacro(ImageDimension2) > | KernelType |
typedef OperatorImageFunctionType::Pointer | OperatorImageFunctionPointer |
typedef NeighborhoodOperatorImageFunction < InputImageType, TOutput > | OperatorImageFunctionType |
typedef Superclass::OutputType | OutputType |
typedef SmartPointer< Self > | Pointer |
typedef Superclass::PointType | PointType |
typedef DiscreteHessianGaussianImageFunction | Self |
typedef ImageFunction < TInputImage, SymmetricSecondRankTensor < TOutput, TInputImage::ImageDimension > , TOutput > | Superclass |
typedef SymmetricSecondRankTensor < TOutput, TInputImage::ImageDimension > | TensorType |
typedef FixedArray< double, itkGetStaticConstMacro(ImageDimension2) > | VarianceArrayType |
Public Types inherited from itk::ImageFunction< TInputImage, SymmetricSecondRankTensor< TOutput, TInputImage::ImageDimension >, TOutput > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef ContinuousIndex < TOutput, itkGetStaticConstMacro(ImageDimension) > | ContinuousIndexType |
typedef TOutput | CoordRepType |
typedef InputImageType::IndexType | IndexType |
typedef InputImageType::IndexValueType | IndexValueType |
typedef InputImageType::ConstPointer | InputImageConstPointer |
typedef TInputImage | InputImageType |
typedef InputImageType::PixelType | InputPixelType |
typedef SymmetricSecondRankTensor < TOutput, TInputImage::ImageDimension > | OutputType |
typedef SmartPointer< Self > | Pointer |
typedef Point< TOutput, itkGetStaticConstMacro(ImageDimension) > | PointType |
typedef ImageFunction | Self |
typedef FunctionBase< Point < TOutput, itkGetStaticConstMacro(ImageDimension) > , SymmetricSecondRankTensor < TOutput, TInputImage::ImageDimension > > | Superclass |
Public Types inherited from itk::FunctionBase< Point< TOutput, TInputImage::ImageDimension >, SymmetricSecondRankTensor< TOutput, TInputImage::ImageDimension > > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Point< TOutput, TInputImage::ImageDimension > | InputType |
typedef SymmetricSecondRankTensor < TOutput, TInputImage::ImageDimension > | OutputType |
typedef SmartPointer< Self > | Pointer |
typedef FunctionBase | Self |
typedef Object | Superclass |
Public Types inherited from itk::Object | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef Object | Self |
typedef LightObject | Superclass |
Public Types inherited from itk::LightObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef LightObject | Self |
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, SymmetricSecondRankTensor< TOutput, TInputImage::ImageDimension >, 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 SymmetricSecondRankTensor < TOutput, TInputImage::ImageDimension > | Evaluate (const PointType &point) const =0 |
virtual SymmetricSecondRankTensor < TOutput, TInputImage::ImageDimension > | EvaluateAtContinuousIndex (const ContinuousIndexType &index) const =0 |
virtual SymmetricSecondRankTensor < TOutput, TInputImage::ImageDimension > | 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 |
Public Member Functions inherited from itk::FunctionBase< Point< TOutput, TInputImage::ImageDimension >, SymmetricSecondRankTensor< TOutput, TInputImage::ImageDimension > > | |
virtual OutputType | Evaluate (const InputType &input) const =0 |
Public Member Functions inherited from itk::Object | |
unsigned long | AddObserver (const EventObject &event, Command *) |
unsigned long | AddObserver (const EventObject &event, Command *) const |
virtual void | DebugOff () const |
virtual void | DebugOn () const |
Command * | GetCommand (unsigned long tag) |
bool | GetDebug () const |
MetaDataDictionary & | GetMetaDataDictionary (void) |
const MetaDataDictionary & | GetMetaDataDictionary (void) const |
virtual ModifiedTimeType | GetMTime () const |
virtual const TimeStamp & | GetTimeStamp () const |
bool | HasObserver (const EventObject &event) const |
void | InvokeEvent (const EventObject &) |
void | InvokeEvent (const EventObject &) const |
virtual void | Modified () const |
virtual void | Register () const |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) |
void | SetDebug (bool debugFlag) const |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
virtual void | SetReferenceCount (int) |
virtual void | UnRegister () const |
Public Member Functions inherited from itk::LightObject | |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
itkCloneMacro (Self) | |
void | Print (std::ostream &os, Indent indent=0) 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, SymmetricSecondRankTensor< TOutput, TInputImage::ImageDimension >, TOutput > | |
static const unsigned int | ImageDimension |
Additional Inherited Members | |
Protected Types inherited from itk::LightObject | |
typedef int | InternalReferenceCountType |
Protected Attributes inherited from itk::ImageFunction< TInputImage, SymmetricSecondRankTensor< TOutput, TInputImage::ImageDimension >, TOutput > | |
ContinuousIndexType | m_EndContinuousIndex |
IndexType | m_EndIndex |
InputImageConstPointer | m_Image |
ContinuousIndexType | m_StartContinuousIndex |
IndexType | m_StartIndex |
typedef SmartPointer< const Self > itk::DiscreteHessianGaussianImageFunction< TInputImage, TOutput >::ConstPointer |
Definition at line 63 of file itkDiscreteHessianGaussianImageFunction.h.
typedef Superclass::ContinuousIndexType itk::DiscreteHessianGaussianImageFunction< TInputImage, TOutput >::ContinuousIndexType |
Definition at line 76 of file itkDiscreteHessianGaussianImageFunction.h.
typedef FixedArray< GaussianDerivativeOperatorType, 3 *itkGetStaticConstMacro(ImageDimension2) > itk::DiscreteHessianGaussianImageFunction< TInputImage, TOutput >::GaussianDerivativeOperatorArrayType |
Array to store gaussian derivative operators from zero to second order (3*ImageDimension operators)
Definition at line 98 of file itkDiscreteHessianGaussianImageFunction.h.
typedef itk::GaussianDerivativeOperator< TOutput, itkGetStaticConstMacro(ImageDimension2) > itk::DiscreteHessianGaussianImageFunction< TInputImage, TOutput >::GaussianDerivativeOperatorType |
Definition at line 93 of file itkDiscreteHessianGaussianImageFunction.h.
typedef Superclass::IndexType itk::DiscreteHessianGaussianImageFunction< TInputImage, TOutput >::IndexType |
Definition at line 74 of file itkDiscreteHessianGaussianImageFunction.h.
typedef Superclass::IndexValueType itk::DiscreteHessianGaussianImageFunction< TInputImage, TOutput >::IndexValueType |
Definition at line 75 of file itkDiscreteHessianGaussianImageFunction.h.
typedef Superclass::InputImageType itk::DiscreteHessianGaussianImageFunction< TInputImage, TOutput >::InputImageType |
Image dependent types
Definition at line 69 of file itkDiscreteHessianGaussianImageFunction.h.
typedef Superclass::InputPixelType itk::DiscreteHessianGaussianImageFunction< TInputImage, TOutput >::InputPixelType |
Definition at line 73 of file itkDiscreteHessianGaussianImageFunction.h.
typedef FixedArray< KernelType, itkGetStaticConstMacro(ImageDimension2) * ( itkGetStaticConstMacro(ImageDimension2) + 1 ) / 2 > itk::DiscreteHessianGaussianImageFunction< TInputImage, TOutput >::KernelArrayType |
Array to store precomputed N-dimensional kernels for the hessian components
Definition at line 105 of file itkDiscreteHessianGaussianImageFunction.h.
typedef Neighborhood< TOutput, itkGetStaticConstMacro(ImageDimension2) > itk::DiscreteHessianGaussianImageFunction< TInputImage, TOutput >::KernelType |
Definition at line 100 of file itkDiscreteHessianGaussianImageFunction.h.
typedef OperatorImageFunctionType::Pointer itk::DiscreteHessianGaussianImageFunction< TInputImage, TOutput >::OperatorImageFunctionPointer |
Definition at line 111 of file itkDiscreteHessianGaussianImageFunction.h.
typedef NeighborhoodOperatorImageFunction< InputImageType, TOutput > itk::DiscreteHessianGaussianImageFunction< TInputImage, TOutput >::OperatorImageFunctionType |
Image function that performs convolution with the neighborhood operator
Definition at line 110 of file itkDiscreteHessianGaussianImageFunction.h.
typedef Superclass::OutputType itk::DiscreteHessianGaussianImageFunction< TInputImage, TOutput >::OutputType |
Definition at line 87 of file itkDiscreteHessianGaussianImageFunction.h.
typedef SmartPointer< Self > itk::DiscreteHessianGaussianImageFunction< TInputImage, TOutput >::Pointer |
Smart pointer typedef support
Definition at line 62 of file itkDiscreteHessianGaussianImageFunction.h.
typedef Superclass::PointType itk::DiscreteHessianGaussianImageFunction< TInputImage, TOutput >::PointType |
Definition at line 77 of file itkDiscreteHessianGaussianImageFunction.h.
typedef DiscreteHessianGaussianImageFunction itk::DiscreteHessianGaussianImageFunction< TInputImage, TOutput >::Self |
Standard "Self" typedef
Definition at line 54 of file itkDiscreteHessianGaussianImageFunction.h.
typedef ImageFunction< TInputImage, SymmetricSecondRankTensor< TOutput, TInputImage::ImageDimension >, TOutput > itk::DiscreteHessianGaussianImageFunction< TInputImage, TOutput >::Superclass |
Standard "Superclass" typedef
Definition at line 59 of file itkDiscreteHessianGaussianImageFunction.h.
typedef SymmetricSecondRankTensor< TOutput, TInputImage::ImageDimension > itk::DiscreteHessianGaussianImageFunction< TInputImage, TOutput >::TensorType |
Output type
Definition at line 86 of file itkDiscreteHessianGaussianImageFunction.h.
typedef FixedArray< double, itkGetStaticConstMacro(ImageDimension2) > itk::DiscreteHessianGaussianImageFunction< TInputImage, TOutput >::VarianceArrayType |
Definition at line 89 of file itkDiscreteHessianGaussianImageFunction.h.
enum itk::DiscreteHessianGaussianImageFunction::InterpolationModeType |
Interpolation modes
Enumerator | |
---|---|
NearestNeighbourInterpolation | |
LinearInterpolation |
Definition at line 114 of file itkDiscreteHessianGaussianImageFunction.h.
|
protected |
|
inlineprotected |
Definition at line 201 of file itkDiscreteHessianGaussianImageFunction.h.
|
inlineprotected |
Definition at line 203 of file itkDiscreteHessianGaussianImageFunction.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, SymmetricSecondRankTensor< TOutput, TInputImage::ImageDimension >, 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 196 of file itkDiscreteHessianGaussianImageFunction.h.
|
static |
Method for creation through the object factory
|
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 |
Definition at line 205 of file itkDiscreteHessianGaussianImageFunction.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::Object.
|
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 147 of file itkDiscreteHessianGaussianImageFunction.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 138 of file itkDiscreteHessianGaussianImageFunction.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 81 of file itkDiscreteHessianGaussianImageFunction.h.
|
private |
Interpolation mode
Definition at line 245 of file itkDiscreteHessianGaussianImageFunction.h.
|
private |
Array of N-dimensional kernels which are the result of convolving the operators for calculating hessian matrix derivatives
Definition at line 233 of file itkDiscreteHessianGaussianImageFunction.h.
|
private |
Difference between the areas under the curves of the continuous and discrete Gaussian functions
Definition at line 217 of file itkDiscreteHessianGaussianImageFunction.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 222 of file itkDiscreteHessianGaussianImageFunction.h.
|
private |
Flag for scale-space normalization of derivatives
Definition at line 239 of file itkDiscreteHessianGaussianImageFunction.h.
|
mutableprivate |
Array of derivative operators, one for each dimension and order. First N zero-order operators are stored, then N first-order and then N second-order making 3*N operators altogether where N=ImageDimension.
Definition at line 228 of file itkDiscreteHessianGaussianImageFunction.h.
|
private |
OperatorImageFunction
Definition at line 236 of file itkDiscreteHessianGaussianImageFunction.h.
|
private |
Flag to indicate whether to use image spacing
Definition at line 242 of file itkDiscreteHessianGaussianImageFunction.h.
|
private |
Desired variance of the discrete Gaussian function
Definition at line 213 of file itkDiscreteHessianGaussianImageFunction.h.