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

itk::BinaryMinMaxCurvatureFlowFunction< TImage > Class Template Reference
[Finite Difference Functions]

#include <itkBinaryMinMaxCurvatureFlowFunction.h>

Inheritance diagram for itk::BinaryMinMaxCurvatureFlowFunction< TImage >:

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

Collaboration graph
[legend]

List of all members.

Public Types

typedef SmartPointer< const SelfConstPointer
typedef
ZeroFluxNeumannBoundaryCondition
< ImageType
DefaultBoundaryConditionType
typedef Superclass::FloatOffsetType FloatOffsetType
typedef Superclass::ImageType ImageType
typedef
Superclass::NeighborhoodScalesType 
NeighborhoodScalesType
typedef
Superclass::NeighborhoodType 
NeighborhoodType
typedef Superclass::PixelRealType PixelRealType
typedef Superclass::PixelType PixelType
typedef SmartPointer< SelfPointer
typedef Superclass::RadiusType RadiusType
typedef RadiusType::SizeValueType RadiusValueType
typedef PixelType ScalarValueType
typedef
BinaryMinMaxCurvatureFlowFunction 
Self
typedef
MinMaxCurvatureFlowFunction
< TImage > 
Superclass
typedef Superclass::TimeStepType TimeStepType

Public Member Functions

virtual TimeStepType ComputeGlobalTimeStep (void *GlobalData) const
const NeighborhoodScalesType ComputeNeighborhoodScales () const
virtual PixelType ComputeUpdate (const NeighborhoodType &neighborhood, void *globalData, const FloatOffsetType &offset=FloatOffsetType(0.0))
virtual Pointer CreateAnother () const
virtual void Delete ()
virtual const char * GetNameOfClass () const
const RadiusTypeGetRadius () const
virtual int GetReferenceCount () const
const TimeStepTypeGetTimeStep () const
virtual void InitializeIteration ()
 itkStaticConstMacro (ImageDimension, unsigned int, ImageType::ImageDimension)
 itkStaticConstMacro (ImageDimension, unsigned int, Superclass::ImageDimension)
void Print (std::ostream &os, Indent indent=0) const
virtual void Register () const
virtual void ReleaseGlobalDataPointer (void *GlobalData) const
void SetRadius (const RadiusType &r)
virtual void SetReferenceCount (int)
void SetTimeStep (const TimeStepType &t)
virtual void UnRegister () const
virtual void * GetGlobalDataPointer () const
const RadiusValueTypeGetRadiusValueType () const
void SetStencilRadius (const RadiusValueType radius)
const double & GetThreshold () const
void SetThreshold (const double thresh)
void SetScaleCoefficients (PixelRealType vals[ImageDimension])

Static Public Member Functions

static void BreakOnError ()
static Pointer New ()

Protected Types

typedef Neighborhood
< PixelType,
itkGetStaticConstMacro(ImageDimension)> 
StencilOperatorType
typedef int InternalReferenceCountType

Protected Member Functions

 BinaryMinMaxCurvatureFlowFunction ()
void InitializeStencilOperator ()
void PrintSelf (std::ostream &os, Indent indent) const
 ~BinaryMinMaxCurvatureFlowFunction ()
virtual void PrintHeader (std::ostream &os, Indent indent) const
virtual void PrintTrailer (std::ostream &os, Indent indent) const

Protected Attributes

RadiusType m_Radius
InternalReferenceCountType m_ReferenceCount
SimpleFastMutexLock m_ReferenceCountLock
PixelRealType m_ScaleCoefficients [ImageDimension]
StencilOperatorType m_StencilOperator


Detailed Description

template<class TImage>
class itk::BinaryMinMaxCurvatureFlowFunction< TImage >

This class encapsulate the finite difference equation which drives a min/max curvature flow algorithm for denoising binary images.

This class uses a zero flux Neumann boundary condition when computing derivatives near the data boundary.

This class operates as part of the finite difference solver hierarchy.

See also:
BinaryMinMaxCurvatureFlowImageFilter

ZeroFluxNeumannBoundaryCondition

Definition at line 41 of file itkBinaryMinMaxCurvatureFlowFunction.h.


Member Typedef Documentation

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

The default boundary condition for finite difference functions that is used unless overridden in the Evaluate() method.

Definition at line 92 of file itkFiniteDifferenceFunction.h.

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

Reimplemented from itk::MinMaxCurvatureFlowFunction< TImage >.

Definition at line 62 of file itkBinaryMinMaxCurvatureFlowFunction.h.

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

Inherit some parameters from the superclass type.

Reimplemented from itk::MinMaxCurvatureFlowFunction< TImage >.

Definition at line 63 of file itkBinaryMinMaxCurvatureFlowFunction.h.

typedef int itk::LightObject::InternalReferenceCountType [protected, inherited]

Define the type of the reference count according to the target. This allows the use of atomic operations

Definition at line 139 of file itkLightObject.h.

The type of data structure that holds the scales with which the neighborhood is weighted to properly account for spacing and neighborhood radius.

Reimplemented from itk::FiniteDifferenceFunction< TImage >.

Definition at line 65 of file itkCurvatureFlowFunction.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::MinMaxCurvatureFlowFunction< TImage >.

Definition at line 61 of file itkBinaryMinMaxCurvatureFlowFunction.h.

Reimplemented from itk::FiniteDifferenceFunction< TImage >.

Definition at line 63 of file itkCurvatureFlowFunction.h.

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

Inherit some parameters from the superclass type.

Reimplemented from itk::MinMaxCurvatureFlowFunction< TImage >.

Definition at line 56 of file itkBinaryMinMaxCurvatureFlowFunction.h.

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

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

Neighborhood radius type

Reimplemented from itk::MinMaxCurvatureFlowFunction< TImage >.

Definition at line 60 of file itkBinaryMinMaxCurvatureFlowFunction.h.

typedef RadiusType::SizeValueType itk::MinMaxCurvatureFlowFunction< TImage >::RadiusValueType [inherited]

Typedef support for the stencil radius.

Definition at line 70 of file itkMinMaxCurvatureFlowFunction.h.

typedef PixelType itk::CurvatureFlowFunction< TImage >::ScalarValueType [inherited]

Definition at line 62 of file itkCurvatureFlowFunction.h.

Standard class typedefs.

Reimplemented from itk::MinMaxCurvatureFlowFunction< TImage >.

Definition at line 46 of file itkBinaryMinMaxCurvatureFlowFunction.h.

typedef Neighborhood<PixelType,itkGetStaticConstMacro(ImageDimension)> itk::MinMaxCurvatureFlowFunction< TImage >::StencilOperatorType [protected, inherited]

Definition at line 89 of file itkMinMaxCurvatureFlowFunction.h.

template<class TImage >
typedef MinMaxCurvatureFlowFunction<TImage> itk::BinaryMinMaxCurvatureFlowFunction< TImage >::Superclass

Define the TimeStepType to always be double.

Reimplemented from itk::FiniteDifferenceFunction< TImage >.

Definition at line 67 of file itkCurvatureFlowFunction.h.


Constructor & Destructor Documentation

template<class TImage >
itk::BinaryMinMaxCurvatureFlowFunction< TImage >::BinaryMinMaxCurvatureFlowFunction (  )  [protected]

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

Definition at line 84 of file itkBinaryMinMaxCurvatureFlowFunction.h.


Member Function Documentation

static void itk::LightObject::BreakOnError (  )  [static, inherited]

This method is called when itkExceptionMacro executes. It allows the debugger to break on error.

virtual TimeStepType itk::CurvatureFlowFunction< TImage >::ComputeGlobalTimeStep ( void *  GlobalData  )  const [virtual, inherited]

Computes the time step for an update given a global data structure. The data used in the computation may take different forms depending on the nature of the equations. This global data cannot be kept in the instance of the equation object itself since the equation object must remain stateless for thread safety. The global data is therefore managed for each thread by the finite difference solver filters.

Currently, this function returns the user specified constant time step.

Todo:
compute timestep based on CFL condition.

Implements itk::FiniteDifferenceFunction< TImage >.

const NeighborhoodScalesType itk::FiniteDifferenceFunction< TImage >::ComputeNeighborhoodScales (  )  const [inherited]

Compute the scales that weight the neighborhood during difference operations to properly account for spacing and neighborhood radius

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

This method computes the solution update for each pixel that does not lie on a the data set boundary.

Reimplemented from itk::MinMaxCurvatureFlowFunction< TImage >.

virtual Pointer itk::LightObject::CreateAnother (  )  const [virtual, inherited]

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 in itk::Object.

virtual void itk::LightObject::Delete (  )  [virtual, inherited]

Delete an itk object. This method should always be used to delete an object when the new operator was used to create it. Using the C delete method will not work with reference counting.

virtual void* itk::CurvatureFlowFunction< TImage >::GetGlobalDataPointer (  )  const [inline, virtual, inherited]

Returns a pointer to a global data structure that is passed to this object from the solver at each calculation. The idea is that the solver holds the state of any global values needed to calculate the time step, while the equation object performs the actual calculations. The global data should also be initialized in this method.

Implements itk::FiniteDifferenceFunction< TImage >.

Definition at line 89 of file itkCurvatureFlowFunction.h.

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

Run-time type information (and related methods)

Reimplemented from itk::MinMaxCurvatureFlowFunction< TImage >.

const RadiusType& itk::FiniteDifferenceFunction< TImage >::GetRadius ( void   )  const [inline, inherited]

Returns the radius of the neighborhood this FiniteDifferenceFunction needs to perform its calculations.

Definition at line 146 of file itkFiniteDifferenceFunction.h.

const RadiusValueType& itk::MinMaxCurvatureFlowFunction< TImage >::GetRadiusValueType (  )  const [inline, inherited]

Set/Get the stencil radius.

Definition at line 74 of file itkMinMaxCurvatureFlowFunction.h.

virtual int itk::LightObject::GetReferenceCount (  )  const [inline, virtual, inherited]

Gets the reference count on this object.

Definition at line 106 of file itkLightObject.h.

template<class TImage >
const double& itk::BinaryMinMaxCurvatureFlowFunction< TImage >::GetThreshold (  )  const [inline]

Set/Get the threshold value.

Definition at line 71 of file itkBinaryMinMaxCurvatureFlowFunction.h.

const TimeStepType& itk::CurvatureFlowFunction< TImage >::GetTimeStep (  )  const [inline, inherited]

Get the time step parameter

Definition at line 109 of file itkCurvatureFlowFunction.h.

virtual void itk::FiniteDifferenceFunction< TImage >::InitializeIteration (  )  [inline, virtual, inherited]

This method allows the function to set its state before each iteration of the finite difference solver (image filter) that uses it. This is a thread-safe time to manipulate the object's state.

An example of how this can be used: the Anisotropic diffusion class of FiniteDifferenceFunctions use this method to pre-calculate an average gradient magnitude across the entire image region. This value is set in the function object and used by the ComputeUpdate methods that are called at each pixel as a constant.

Reimplemented in itk::CurvatureNDAnisotropicDiffusionFunction< TImage >, itk::GradientNDAnisotropicDiffusionFunction< TImage >, itk::VectorCurvatureNDAnisotropicDiffusionFunction< TImage >, and itk::VectorGradientNDAnisotropicDiffusionFunction< TImage >.

Definition at line 118 of file itkFiniteDifferenceFunction.h.

void itk::MinMaxCurvatureFlowFunction< TImage >::InitializeStencilOperator (  )  [protected, inherited]

Initialize the stencil opearator to be an N-Dimensional sphere of radius m_StencilRadius.

itk::FiniteDifferenceFunction< TImage >::itkStaticConstMacro ( ImageDimension  ,
unsigned  int,
ImageType::ImageDimension   
) [inherited]

Save image dimension.

template<class TImage >
itk::BinaryMinMaxCurvatureFlowFunction< TImage >::itkStaticConstMacro ( ImageDimension  ,
unsigned  int,
Superclass::ImageDimension   
)

Extract superclass dimension.

Reimplemented from itk::MinMaxCurvatureFlowFunction< TImage >.

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

Method for creation through the object factory.

Reimplemented from itk::MinMaxCurvatureFlowFunction< TImage >.

void itk::LightObject::Print ( std::ostream &  os,
Indent  indent = 0 
) const [inherited]

Cause the object to print itself out.

Referenced by itk::WeakPointer< ProcessObject >::Print().

virtual void itk::LightObject::PrintHeader ( std::ostream &  os,
Indent  indent 
) const [protected, virtual, inherited]

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.

void itk::FiniteDifferenceFunction< TImage >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const [protected, virtual, inherited]

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::LightObject.

Reimplemented in itk::AnisotropicDiffusionFunction< TImage >, itk::VectorAnisotropicDiffusionFunction< TImage >, itk::VectorCurvatureNDAnisotropicDiffusionFunction< TImage >, itk::AnisotropicDiffusionFunction< TImage >, and itk::VectorAnisotropicDiffusionFunction< TImage >.

virtual void itk::LightObject::PrintTrailer ( std::ostream &  os,
Indent  indent 
) const [protected, virtual, inherited]

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.

virtual void itk::LightObject::Register (  )  const [virtual, inherited]

Increase the reference count (mark as used by another object).

Reimplemented in itk::Object.

virtual void itk::CurvatureFlowFunction< TImage >::ReleaseGlobalDataPointer ( void *  GlobalData  )  const [inline, virtual, inherited]

When the finite difference solver filter has finished using a global data pointer, it passes it to this method, which frees the memory. The solver cannot free the memory because it does not know the type to which the pointer points.

Implements itk::FiniteDifferenceFunction< TImage >.

Definition at line 101 of file itkCurvatureFlowFunction.h.

void itk::FiniteDifferenceFunction< TImage >::SetRadius ( const RadiusType &  r  )  [inline, inherited]

Sets the radius of the neighborhood this FiniteDifferenceFunction needs to perform its calculations.

Definition at line 141 of file itkFiniteDifferenceFunction.h.

virtual void itk::LightObject::SetReferenceCount ( int   )  [virtual, inherited]

Sets the reference count on this object. This is a dangerous method, use it with care.

Reimplemented in itk::Object.

void itk::FiniteDifferenceFunction< TImage >::SetScaleCoefficients ( PixelRealType  vals[ImageDimension]  )  [inline, inherited]

Set the ScaleCoefficients for the difference operators. The defaults a 1.0. These can be set to take the image spacing into account.

Definition at line 152 of file itkFiniteDifferenceFunction.h.

void itk::MinMaxCurvatureFlowFunction< TImage >::SetStencilRadius ( const RadiusValueType  radius  )  [inherited]

Set/Get the stencil radius.

template<class TImage >
void itk::BinaryMinMaxCurvatureFlowFunction< TImage >::SetThreshold ( const double  thresh  )  [inline]

Set/Get the threshold value.

Definition at line 69 of file itkBinaryMinMaxCurvatureFlowFunction.h.

void itk::CurvatureFlowFunction< TImage >::SetTimeStep ( const TimeStepType &  t  )  [inline, inherited]

Set the time step parameter

Definition at line 105 of file itkCurvatureFlowFunction.h.

virtual void itk::LightObject::UnRegister (  )  const [virtual, inherited]

Decrease the reference count (release by another object).

Reimplemented in itk::Object.


Member Data Documentation

RadiusType itk::FiniteDifferenceFunction< TImage >::m_Radius [protected, inherited]

Definition at line 203 of file itkFiniteDifferenceFunction.h.

Number of uses of this object by other objects.

Definition at line 144 of file itkLightObject.h.

Mutex lock to protect modification to the reference count

Definition at line 147 of file itkLightObject.h.

PixelRealType itk::FiniteDifferenceFunction< TImage >::m_ScaleCoefficients[ImageDimension] [protected, inherited]

Definition at line 204 of file itkFiniteDifferenceFunction.h.

Definition at line 90 of file itkMinMaxCurvatureFlowFunction.h.


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

Generated at Tue Sep 15 06:18:33 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000