Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::GradientNDAnisotropicDiffusionFunction< TImage > Class Template Reference
[Finite Difference FunctionsImage Enhancement Filters]

#include <itkGradientNDAnisotropicDiffusionFunction.h>

Inheritance diagram for itk::GradientNDAnisotropicDiffusionFunction< TImage >:

Inheritance graph
[legend]
Collaboration diagram for itk::GradientNDAnisotropicDiffusionFunction< TImage >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef GradientNDAnisotropicDiffusionFunction Self
typedef ScalarAnisotropicDiffusionFunction<
TImage
Superclass
typedef SmartPointer< SelfPointer
typedef SmartPointer< const
Self
ConstPointer
typedef Superclass::ImageType ImageType
typedef Superclass::PixelType PixelType
typedef Superclass::TimeStepType TimeStepType
typedef Superclass::RadiusType RadiusType
typedef Superclass::NeighborhoodType NeighborhoodType
typedef Superclass::FloatOffsetType FloatOffsetType

Public Member Functions

virtual const char * GetNameOfClass () const
 itkStaticConstMacro (ImageDimension, unsigned int, Superclass::ImageDimension)
virtual PixelType ComputeUpdate (const NeighborhoodType &neighborhood, void *globalData, const FloatOffsetType &offset=FloatOffsetType(0.0))
virtual void InitializeIteration ()

Static Public Member Functions

Pointer New ()

Protected Member Functions

 GradientNDAnisotropicDiffusionFunction ()
 ~GradientNDAnisotropicDiffusionFunction ()
void PrintSelf (std::ostream &os, Indent indent) const

Protected Attributes

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

Static Protected Attributes

double m_MIN_NORM

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 59 of file itkGradientNDAnisotropicDiffusionFunction.h.


Member Typedef Documentation

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

Reimplemented from itk::ScalarAnisotropicDiffusionFunction< TImage >.

Definition at line 67 of file itkGradientNDAnisotropicDiffusionFunction.h.

template<class TImage>
typedef Superclass::FloatOffsetType itk::GradientNDAnisotropicDiffusionFunction< TImage >::FloatOffsetType
 

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 82 of file itkGradientNDAnisotropicDiffusionFunction.h.

template<class TImage>
typedef Superclass::ImageType itk::GradientNDAnisotropicDiffusionFunction< TImage >::ImageType
 

Inherit some parameters from the superclass type.

Reimplemented from itk::ScalarAnisotropicDiffusionFunction< TImage >.

Definition at line 77 of file itkGradientNDAnisotropicDiffusionFunction.h.

template<class TImage>
typedef Superclass::NeighborhoodType itk::GradientNDAnisotropicDiffusionFunction< TImage >::NeighborhoodType
 

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 81 of file itkGradientNDAnisotropicDiffusionFunction.h.

template<class TImage>
typedef Superclass::PixelType itk::GradientNDAnisotropicDiffusionFunction< TImage >::PixelType
 

Reimplemented from itk::ScalarAnisotropicDiffusionFunction< TImage >.

Definition at line 78 of file itkGradientNDAnisotropicDiffusionFunction.h.

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

Reimplemented from itk::ScalarAnisotropicDiffusionFunction< TImage >.

Definition at line 66 of file itkGradientNDAnisotropicDiffusionFunction.h.

template<class TImage>
typedef Superclass::RadiusType itk::GradientNDAnisotropicDiffusionFunction< TImage >::RadiusType
 

Neighborhood radius type

Reimplemented from itk::ScalarAnisotropicDiffusionFunction< TImage >.

Definition at line 80 of file itkGradientNDAnisotropicDiffusionFunction.h.

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

Standard class typedefs.

Reimplemented from itk::ScalarAnisotropicDiffusionFunction< TImage >.

Definition at line 64 of file itkGradientNDAnisotropicDiffusionFunction.h.

template<class TImage>
typedef ScalarAnisotropicDiffusionFunction<TImage> itk::GradientNDAnisotropicDiffusionFunction< TImage >::Superclass
 

Reimplemented from itk::ScalarAnisotropicDiffusionFunction< TImage >.

Definition at line 65 of file itkGradientNDAnisotropicDiffusionFunction.h.

template<class TImage>
typedef Superclass::TimeStepType itk::GradientNDAnisotropicDiffusionFunction< TImage >::TimeStepType
 

Define the TimeStepType to always be double.

Reimplemented from itk::ScalarAnisotropicDiffusionFunction< TImage >.

Definition at line 79 of file itkGradientNDAnisotropicDiffusionFunction.h.


Constructor & Destructor Documentation

template<class TImage>
itk::GradientNDAnisotropicDiffusionFunction< TImage >::GradientNDAnisotropicDiffusionFunction  )  [protected]
 

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

Definition at line 102 of file itkGradientNDAnisotropicDiffusionFunction.h.


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 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 94 of file itkGradientNDAnisotropicDiffusionFunction.h.

template<class TImage>
itk::GradientNDAnisotropicDiffusionFunction< TImage >::itkStaticConstMacro ImageDimension  ,
unsigned  int,
Superclass::ImageDimension 
 

Inherit some parameters from the superclass type.

Reimplemented from itk::ScalarAnisotropicDiffusionFunction< TImage >.

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

Method for creation through the object factory.

Reimplemented from itk::LightObject.

template<class TImage>
void itk::GradientNDAnisotropicDiffusionFunction< TImage >::PrintSelf std::ostream &  os,
Indent  indent
const [inline, protected, virtual]
 

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::ScalarAnisotropicDiffusionFunction< TImage >.

Definition at line 104 of file itkGradientNDAnisotropicDiffusionFunction.h.


Member Data Documentation

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

Derivative operator.

Definition at line 116 of file itkGradientNDAnisotropicDiffusionFunction.h.

template<class TImage>
unsigned long itk::GradientNDAnisotropicDiffusionFunction< TImage >::m_Center [protected]
 

Definition at line 121 of file itkGradientNDAnisotropicDiffusionFunction.h.

template<class TImage>
NeighborhoodInnerProduct<ImageType> itk::GradientNDAnisotropicDiffusionFunction< TImage >::m_InnerProduct [protected]
 

Inner product function.

Definition at line 108 of file itkGradientNDAnisotropicDiffusionFunction.h.

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

Modified global average gradient magnitude term.

Definition at line 119 of file itkGradientNDAnisotropicDiffusionFunction.h.

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

Definition at line 124 of file itkGradientNDAnisotropicDiffusionFunction.h.

template<class TImage>
unsigned long itk::GradientNDAnisotropicDiffusionFunction< TImage >::m_Stride[ImageDimension] [protected]
 

Definition at line 122 of file itkGradientNDAnisotropicDiffusionFunction.h.

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

Slices for the ND neighborhood.

Definition at line 111 of file itkGradientNDAnisotropicDiffusionFunction.h.

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

Definition at line 112 of file itkGradientNDAnisotropicDiffusionFunction.h.

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

Definition at line 113 of file itkGradientNDAnisotropicDiffusionFunction.h.


The documentation for this class was generated from the following file:
Generated at Thu May 25 01:03:34 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000