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

#include <itkCurvatureNDAnisotropicDiffusionFunction.h>

+ Inheritance diagram for itk::CurvatureNDAnisotropicDiffusionFunction< TImage >:
+ Collaboration diagram for itk::CurvatureNDAnisotropicDiffusionFunction< TImage >:

List of all members.

Public Types

typedef SmartPointer< const SelfConstPointer
typedef Superclass::FloatOffsetType FloatOffsetType
typedef Superclass::ImageType ImageType
typedef
NeighborhoodType::SizeValueType 
NeighborhoodSizeValueType
typedef
Superclass::NeighborhoodType 
NeighborhoodType
typedef Superclass::PixelType PixelType
typedef SmartPointer< SelfPointer
typedef Superclass::RadiusType RadiusType
typedef
CurvatureNDAnisotropicDiffusionFunction 
Self
typedef
ScalarAnisotropicDiffusionFunction
< TImage > 
Superclass
typedef Superclass::TimeStepType TimeStepType
- Public Types inherited from itk::ScalarAnisotropicDiffusionFunction< TImage >
typedef Superclass::PixelRealType PixelRealType
- Public Types inherited from itk::AnisotropicDiffusionFunction< TImage >
typedef Superclass::PixelRealType PixelrealType
- Public Types inherited from itk::FiniteDifferenceFunction< TImage >
typedef
ZeroFluxNeumannBoundaryCondition
< ImageType
DefaultBoundaryConditionType
typedef Vector< PixelRealType,
itkGetStaticConstMacro(ImageDimension) > 
NeighborhoodScalesType
- Public Types inherited from itk::LightObject

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 ()
- Public Member Functions inherited from itk::ScalarAnisotropicDiffusionFunction< TImage >
virtual void CalculateAverageGradientMagnitudeSquared (TImage *)
- Public Member Functions inherited from itk::AnisotropicDiffusionFunction< TImage >
virtual TimeStepType ComputeGlobalTimeStep (void *) const
const double & GetAverageGradientMagnitudeSquared () const
const double & GetConductanceParameter () const
virtual void * GetGlobalDataPointer () const
const TimeStepTypeGetTimeStep () const
virtual void ReleaseGlobalDataPointer (void *) const
void SetAverageGradientMagnitudeSquared (const double &c)
void SetConductanceParameter (const double &c)
void SetTimeStep (const TimeStepType &t)
- Public Member Functions inherited from itk::FiniteDifferenceFunction< TImage >
const NeighborhoodScalesType ComputeNeighborhoodScales () const
const RadiusTypeGetRadius () const
void SetRadius (const RadiusType &r)
void SetScaleCoefficients (PixelRealType vals[ImageDimension])
- 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
virtual void Register () const
virtual void SetReferenceCount (int)
virtual void UnRegister () const

Static Public Member Functions

static Pointer New ()

Static Public Attributes

static const unsigned int ImageDimension = Superclass::ImageDimension
- Static Public Attributes inherited from itk::ScalarAnisotropicDiffusionFunction< TImage >
- Static Public Attributes inherited from itk::AnisotropicDiffusionFunction< TImage >
- Static Public Attributes inherited from itk::FiniteDifferenceFunction< TImage >

Protected Member Functions

 CurvatureNDAnisotropicDiffusionFunction ()
 ~CurvatureNDAnisotropicDiffusionFunction ()
- Protected Member Functions inherited from itk::ScalarAnisotropicDiffusionFunction< TImage >
 ScalarAnisotropicDiffusionFunction ()
 ~ScalarAnisotropicDiffusionFunction ()
- Protected Member Functions inherited from itk::AnisotropicDiffusionFunction< TImage >
 AnisotropicDiffusionFunction ()
void PrintSelf (std::ostream &os, Indent indent) const
 ~AnisotropicDiffusionFunction ()
- Protected Member Functions inherited from itk::FiniteDifferenceFunction< TImage >
 FiniteDifferenceFunction ()
 ~FiniteDifferenceFunction ()
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 LightObject ()
virtual void PrintHeader (std::ostream &os, Indent indent) const
virtual void PrintTrailer (std::ostream &os, Indent indent) const
virtual ~LightObject ()

Private Member Functions

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

Private 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 Private Attributes

static double m_MIN_NORM

Detailed Description

template<class TImage>
class itk::CurvatureNDAnisotropicDiffusionFunction< TImage >

This class implements a variation on the classic, Perona-Malik anisotropic image diffusion equation as described in itkGradientNDAnisotropicDiffusionFunction. This object is a level-set analog of that equation and will be referred to below as the modified curvature diffusion equation (MCDE). MCDE does not exhibit the edge enhancing properties of classic anisotropic diffusion, which can under certain conditions undergo a ``negative'' diffusion,which enhances the contrast of edges. Equations of the form of MCDE always undergo positive diffusion, with the conductance term only varying the strength of that diffusion.

Qualitatively, MCDE compares well with other non-linear diffusion techniques. It is less sensitive to contrast than classic Perona-Malik style diffusion, and preserves finer detailed structures in images. There is a potential speed trade-off for using this function in place of itkGradientNDAnisotropicDiffusionFunction. Each iteration of the solution takes roughly twice as long. Fewer iterations, however, may be required to reach an acceptable solution.
The MCDE equation is given as:

\[ f_t = \mid \nabla f \mid \nabla \cdot c( \mid \nabla f \mid ) \frac{ \nabla f }{ \mid \nabla f \mid } \]

,

where the conductance modified curvature term is

\[ \nabla \cdot \frac{\nabla f}{\mid \nabla f \mid} \]

.

References
R. Whitaker and X. Xue. Variable-Conductance, Level-Set Curvature for Image Denoising, International Conference on Image Processing, 2001 pp. 142-145, Vol.3.
See also:
AnisotropicDiffusionFunction
Todo:
References

Definition at line 75 of file itkCurvatureNDAnisotropicDiffusionFunction.h.


Member Typedef Documentation

template<class TImage>
typedef SmartPointer< const Self > itk::CurvatureNDAnisotropicDiffusionFunction< 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 99 of file itkCurvatureNDAnisotropicDiffusionFunction.h.

Inherit some parameters from the superclass type.

Reimplemented from itk::ScalarAnisotropicDiffusionFunction< TImage >.

Definition at line 91 of file itkCurvatureNDAnisotropicDiffusionFunction.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 98 of file itkCurvatureNDAnisotropicDiffusionFunction.h.

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

Standard class typedefs.

Reimplemented from itk::ScalarAnisotropicDiffusionFunction< TImage >.

Definition at line 81 of file itkCurvatureNDAnisotropicDiffusionFunction.h.

Define the TimeStepType to always be double.

Reimplemented from itk::ScalarAnisotropicDiffusionFunction< TImage >.

Definition at line 96 of file itkCurvatureNDAnisotropicDiffusionFunction.h.


Constructor & Destructor Documentation

template<class TImage>
itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::~CurvatureNDAnisotropicDiffusionFunction ( )
inlineprotected
template<class TImage>
itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::CurvatureNDAnisotropicDiffusionFunction ( const Self )
private

Member Function Documentation

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

Compute incremental update.

Implements itk::FiniteDifferenceFunction< TImage >.

template<class TImage>
virtual::itk::LightObject::Pointer itk::CurvatureNDAnisotropicDiffusionFunction< 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::CurvatureNDAnisotropicDiffusionFunction< TImage >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods)

Reimplemented from itk::ScalarAnisotropicDiffusionFunction< TImage >.

template<class TImage>
virtual void itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::InitializeIteration ( )
inlinevirtual

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

Reimplemented from itk::FiniteDifferenceFunction< TImage >.

Definition at line 113 of file itkCurvatureNDAnisotropicDiffusionFunction.h.

template<class TImage>
static Pointer itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::New ( )
static

Method for creation through the object factory.

Reimplemented from itk::LightObject.

template<class TImage>
void itk::CurvatureNDAnisotropicDiffusionFunction< 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::CurvatureNDAnisotropicDiffusionFunction< TImage >::dx_op
private

Derivative operator

Definition at line 139 of file itkCurvatureNDAnisotropicDiffusionFunction.h.

template<class TImage>
const unsigned int itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::ImageDimension = Superclass::ImageDimension
static

Inherit some parameters from the superclass type.

Reimplemented from itk::ScalarAnisotropicDiffusionFunction< TImage >.

Definition at line 104 of file itkCurvatureNDAnisotropicDiffusionFunction.h.

template<class TImage>
NeighborhoodSizeValueType itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::m_Center
private
template<class TImage>
NeighborhoodInnerProduct< ImageType > itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::m_InnerProduct
private

Inner product function.

Definition at line 131 of file itkCurvatureNDAnisotropicDiffusionFunction.h.

template<class TImage>
PixelType itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::m_K
private

Modified global average gradient magnitude term.

Definition at line 142 of file itkCurvatureNDAnisotropicDiffusionFunction.h.

template<class TImage>
double itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::m_MIN_NORM
staticprivate
template<class TImage>
NeighborhoodSizeValueType itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::m_Stride[ImageDimension]
private
template<class TImage>
std::slice itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::x_slice[ImageDimension]
private

Slices for the ND neighborhood.

Definition at line 134 of file itkCurvatureNDAnisotropicDiffusionFunction.h.

template<class TImage>
std::slice itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::xa_slice[ImageDimension][ImageDimension]
private
template<class TImage>
std::slice itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::xd_slice[ImageDimension][ImageDimension]
private

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