ITK  4.0.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions
itk::GradientNDAnisotropicDiffusionFunction< TImage > Class Template Reference

#include <itkGradientNDAnisotropicDiffusionFunction.h>

Inheritance diagram for itk::GradientNDAnisotropicDiffusionFunction< TImage >:
Collaboration diagram for itk::GradientNDAnisotropicDiffusionFunction< TImage >:

List of all members.

Public Types

typedef SmartPointer< const SelfConstPointer
typedef Superclass::FloatOffsetType FloatOffsetType
typedef Superclass::ImageType ImageType
typedef SizeValueType NeighborhoodSizeValueType
typedef
Superclass::NeighborhoodType 
NeighborhoodType
typedef Superclass::PixelRealType PixelRealType
typedef Superclass::PixelType PixelType
typedef SmartPointer< SelfPointer
typedef Superclass::RadiusType RadiusType
typedef
GradientNDAnisotropicDiffusionFunction 
Self
typedef
ScalarAnisotropicDiffusionFunction
< TImage > 
Superclass
typedef Superclass::TimeStepType TimeStepType

Public Member Functions

virtual PixelType ComputeUpdate (const NeighborhoodType &neighborhood, void *globalData, const FloatOffsetType &offset=FloatOffsetType(0.0))
virtual ::itk::LightObject::Pointer CreateAnother (void) const
virtual const char * GetNameOfClass () const
virtual void InitializeIteration ()

Static Public Member Functions

static Pointer New ()

Static Public Attributes

static const unsigned int ImageDimension = Superclass::ImageDimension

Protected Member Functions

 GradientNDAnisotropicDiffusionFunction ()
 ~GradientNDAnisotropicDiffusionFunction ()

Protected Attributes

DerivativeOperator< PixelType,
itkGetStaticConstMacro(ImageDimension) > 
dx_op
NeighborhoodSizeValueType m_Center
NeighborhoodInnerProduct
< ImageType
m_InnerProduct
PixelType m_K
NeighborhoodSizeValueType m_Stride [ImageDimension]
std::slice x_slice [ImageDimension]
std::slice xa_slice [ImageDimension][ImageDimension]
std::slice xd_slice [ImageDimension][ImageDimension]

Static Protected Attributes

static double m_MIN_NORM

Private Member Functions

 GradientNDAnisotropicDiffusionFunction (const Self &)
void operator= (const Self &)

Detailed Description

template<class TImage>
class itk::GradientNDAnisotropicDiffusionFunction< TImage >

This class implements an N-dimensional version of the classic Perona-Malik anisotropic diffusion equation for scalar-valued images. See itkAnisotropicDiffusionFunction for an overview of the anisotropic diffusion framework and equation.

The conductance term for this implementation is chosen as a function of the gradient magnitude of the image at each point, reducing the strength of diffusion at edge pixels.

\[C(\mathbf{x}) = e^{-(\frac{\parallel \nabla U(\mathbf{x}) \parallel}{K})^2}\]

.

The numerical implementation of this equation is similar to that described in the Perona-Malik paper below, but uses a more robust technique for gradient magnitude estimation and has been generalized to N-dimensions.
References
Pietro Perona and Jalhandra Malik, ``Scale-space and edge detection using anisotropic diffusion,'' IEEE Transactions on Pattern Analysis Machine Intelligence, vol. 12, pp. 629-639, 1990.
See also:
AnisotropicDiffusionFunction
VectorAnisotropicDiffusionFunction
VectorGradientAnisotropicDiffusionFunction
CurvatureNDAnisotropicDiffusionFunction

Definition at line 61 of file itkGradientNDAnisotropicDiffusionFunction.h.


Member Typedef Documentation

template<class TImage>
typedef SmartPointer< const Self > itk::GradientNDAnisotropicDiffusionFunction< TImage >::ConstPointer

A floating point offset from an image grid location. Used for interpolation among grid values in a neighborhood.

Reimplemented from itk::AnisotropicDiffusionFunction< TImage >.

Definition at line 85 of file itkGradientNDAnisotropicDiffusionFunction.h.

Inherit some parameters from the superclass type.

Reimplemented from itk::ScalarAnisotropicDiffusionFunction< TImage >.

Definition at line 76 of file itkGradientNDAnisotropicDiffusionFunction.h.

Definition at line 87 of file itkGradientNDAnisotropicDiffusionFunction.h.

The type of data structure that is passed to this function object to evaluate at a pixel that does not lie on a data set boundary.

Reimplemented from itk::ScalarAnisotropicDiffusionFunction< TImage >.

Definition at line 84 of file itkGradientNDAnisotropicDiffusionFunction.h.

template<class TImage>
typedef SmartPointer< Self > itk::GradientNDAnisotropicDiffusionFunction< TImage >::Pointer

Standard class typedefs.

Reimplemented from itk::ScalarAnisotropicDiffusionFunction< TImage >.

Definition at line 66 of file itkGradientNDAnisotropicDiffusionFunction.h.

Define the TimeStepType to always be double.

Reimplemented from itk::ScalarAnisotropicDiffusionFunction< TImage >.

Definition at line 82 of file itkGradientNDAnisotropicDiffusionFunction.h.


Constructor & Destructor Documentation

template<class TImage>
itk::GradientNDAnisotropicDiffusionFunction< TImage >::~GradientNDAnisotropicDiffusionFunction ( ) [inline, protected]

Definition at line 107 of file itkGradientNDAnisotropicDiffusionFunction.h.

template<class TImage>
itk::GradientNDAnisotropicDiffusionFunction< TImage >::GradientNDAnisotropicDiffusionFunction ( const Self ) [private]

Member Function Documentation

template<class TImage>
virtual PixelType itk::GradientNDAnisotropicDiffusionFunction< TImage >::ComputeUpdate ( const NeighborhoodType neighborhood,
void *  globalData,
const FloatOffsetType offset = FloatOffsetType(0.0) 
) [virtual]

Compute the equation value.

Implements itk::FiniteDifferenceFunction< TImage >.

template<class TImage>
virtual::itk::LightObject::Pointer itk::GradientNDAnisotropicDiffusionFunction< TImage >::CreateAnother ( void  ) const [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::LightObject.

template<class TImage>
virtual const char* itk::GradientNDAnisotropicDiffusionFunction< TImage >::GetNameOfClass ( ) const [virtual]

Run-time type information (and related methods)

Reimplemented from itk::ScalarAnisotropicDiffusionFunction< TImage >.

template<class TImage>
virtual void itk::GradientNDAnisotropicDiffusionFunction< TImage >::InitializeIteration ( ) [inline, virtual]

This method is called prior to each iteration of the solver.

Reimplemented from itk::FiniteDifferenceFunction< TImage >.

Definition at line 99 of file itkGradientNDAnisotropicDiffusionFunction.h.

template<class TImage>
static Pointer itk::GradientNDAnisotropicDiffusionFunction< TImage >::New ( ) [static]

Method for creation through the object factory.

Reimplemented from itk::LightObject.

template<class TImage>
void itk::GradientNDAnisotropicDiffusionFunction< TImage >::operator= ( const Self ) [private]

Mutex lock to protect modification to the reference count

Reimplemented from itk::ScalarAnisotropicDiffusionFunction< TImage >.


Member Data Documentation

template<class TImage>
DerivativeOperator< PixelType, itkGetStaticConstMacro(ImageDimension) > itk::GradientNDAnisotropicDiffusionFunction< TImage >::dx_op [protected]

Derivative operator.

Definition at line 118 of file itkGradientNDAnisotropicDiffusionFunction.h.

template<class TImage>
const unsigned int itk::GradientNDAnisotropicDiffusionFunction< TImage >::ImageDimension = Superclass::ImageDimension [static]

Inherit some parameters from the superclass type.

Reimplemented from itk::ScalarAnisotropicDiffusionFunction< TImage >.

Definition at line 90 of file itkGradientNDAnisotropicDiffusionFunction.h.

Definition at line 123 of file itkGradientNDAnisotropicDiffusionFunction.h.

Inner product function.

Definition at line 110 of file itkGradientNDAnisotropicDiffusionFunction.h.

template<class TImage>
PixelType itk::GradientNDAnisotropicDiffusionFunction< TImage >::m_K [protected]

Modified global average gradient magnitude term.

Definition at line 121 of file itkGradientNDAnisotropicDiffusionFunction.h.

template<class TImage>
double itk::GradientNDAnisotropicDiffusionFunction< TImage >::m_MIN_NORM [static, protected]

Definition at line 126 of file itkGradientNDAnisotropicDiffusionFunction.h.

Definition at line 124 of file itkGradientNDAnisotropicDiffusionFunction.h.

template<class TImage>
std::slice itk::GradientNDAnisotropicDiffusionFunction< TImage >::x_slice[ImageDimension] [protected]

Slices for the ND neighborhood.

Definition at line 113 of file itkGradientNDAnisotropicDiffusionFunction.h.

template<class TImage>
std::slice itk::GradientNDAnisotropicDiffusionFunction< TImage >::xa_slice[ImageDimension][ImageDimension] [protected]

Definition at line 114 of file itkGradientNDAnisotropicDiffusionFunction.h.

template<class TImage>
std::slice itk::GradientNDAnisotropicDiffusionFunction< TImage >::xd_slice[ImageDimension][ImageDimension] [protected]

Definition at line 115 of file itkGradientNDAnisotropicDiffusionFunction.h.


The documentation for this class was generated from the following file: