ITK
4.2.0
Insight Segmentation and Registration Toolkit
|
#include <itkAnisotropicDiffusionFunction.h>
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::FloatOffsetType | FloatOffsetType |
typedef Superclass::ImageType | ImageType |
typedef Superclass::NeighborhoodType | NeighborhoodType |
typedef Superclass::PixelRealType | PixelrealType |
typedef Superclass::PixelType | PixelType |
typedef SmartPointer< Self > | Pointer |
typedef Superclass::RadiusType | RadiusType |
typedef AnisotropicDiffusionFunction | Self |
typedef FiniteDifferenceFunction < TImage > | Superclass |
typedef Superclass::TimeStepType | TimeStepType |
Public Types inherited from itk::FiniteDifferenceFunction< TImage > | |
typedef ZeroFluxNeumannBoundaryCondition < ImageType > | DefaultBoundaryConditionType |
typedef Vector< PixelRealType, itkGetStaticConstMacro(ImageDimension) > | NeighborhoodScalesType |
typedef double | PixelRealType |
Public Types inherited from itk::LightObject |
Public Member Functions | |
virtual void | CalculateAverageGradientMagnitudeSquared (ImageType *)=0 |
virtual TimeStepType | ComputeGlobalTimeStep (void *) const |
const double & | GetAverageGradientMagnitudeSquared () const |
const double & | GetConductanceParameter () const |
virtual void * | GetGlobalDataPointer () const |
virtual const char * | GetNameOfClass () const |
const TimeStepType & | GetTimeStep () 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 |
virtual PixelType | ComputeUpdate (const NeighborhoodType &neighborhood, void *globalData, const FloatOffsetType &offset=FloatOffsetType(0.0))=0 |
const RadiusType & | GetRadius () const |
virtual void | InitializeIteration () |
void | SetRadius (const RadiusType &r) |
void | SetScaleCoefficients (PixelRealType vals[ImageDimension]) |
Public Member Functions inherited from itk::LightObject | |
virtual Pointer | CreateAnother () const |
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 Attributes | |
static const unsigned int | ImageDimension = Superclass::ImageDimension |
Static Public Attributes inherited from itk::FiniteDifferenceFunction< TImage > |
Protected Member Functions | |
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 | |
AnisotropicDiffusionFunction (const Self &) | |
void | operator= (const Self &) |
Private Attributes | |
double | m_AverageGradientMagnitudeSquared |
double | m_ConductanceParameter |
TimeStepType | m_TimeStep |
Additional Inherited Members | |
Protected Attributes inherited from itk::FiniteDifferenceFunction< TImage > | |
RadiusType | m_Radius |
PixelRealType | m_ScaleCoefficients [ImageDimension] |
Protected Attributes inherited from itk::LightObject | |
InternalReferenceCountType | m_ReferenceCount |
SimpleFastMutexLock | m_ReferenceCountLock |
This class is a virtual base for anisotropic diffusion function objects. It is a component object in the finite difference solver hierarchy (see itkFiniteDifferenceImageFilter for an overview). AnisotropicDiffusionFunction objects are used by AnisotropicDiffusionImageFilter objects to perform non-linear diffusion on itk::Images.
Anisotropic diffusion methods are formulated to reduce noise (or unwanted detail) in images while preserving specific image features. For many applications, there is an assumption that light-dark transitions (edges) are interesting. Standard isotropic diffusion methods move and blur light-dark boundaries. Anisotropic diffusion methods are formulated to specifically preserve edges.
Anisotropic diffusion methods can be thought of as tools for calculating multi-scale descriptions of images. Embed an image in a higher dimensional function of derived images, . This higher dimensional function represents the solution of the heat diffusion equation,
.
Definition at line 138 of file itkAnisotropicDiffusionFunction.h.
typedef SmartPointer< const Self > itk::AnisotropicDiffusionFunction< TImage >::ConstPointer |
Reimplemented from itk::FiniteDifferenceFunction< TImage >.
Reimplemented in itk::CurvatureNDAnisotropicDiffusionFunction< TImage >, itk::GradientNDAnisotropicDiffusionFunction< TImage >, itk::VectorAnisotropicDiffusionFunction< TImage >, itk::VectorCurvatureNDAnisotropicDiffusionFunction< TImage >, itk::VectorGradientNDAnisotropicDiffusionFunction< TImage >, and itk::ScalarAnisotropicDiffusionFunction< TImage >.
Definition at line 147 of file itkAnisotropicDiffusionFunction.h.
typedef Superclass::FloatOffsetType itk::AnisotropicDiffusionFunction< TImage >::FloatOffsetType |
A floating point offset from an image grid location. Used for interpolation among grid values in a neighborhood.
Reimplemented from itk::FiniteDifferenceFunction< TImage >.
Reimplemented in itk::CurvatureNDAnisotropicDiffusionFunction< TImage >, itk::GradientNDAnisotropicDiffusionFunction< TImage >, itk::VectorCurvatureNDAnisotropicDiffusionFunction< TImage >, and itk::VectorGradientNDAnisotropicDiffusionFunction< TImage >.
Definition at line 159 of file itkAnisotropicDiffusionFunction.h.
typedef Superclass::ImageType itk::AnisotropicDiffusionFunction< TImage >::ImageType |
Inherit some parameters from the superclass type
Reimplemented from itk::FiniteDifferenceFunction< TImage >.
Reimplemented in itk::CurvatureNDAnisotropicDiffusionFunction< TImage >, itk::GradientNDAnisotropicDiffusionFunction< TImage >, itk::VectorAnisotropicDiffusionFunction< TImage >, itk::VectorCurvatureNDAnisotropicDiffusionFunction< TImage >, itk::VectorGradientNDAnisotropicDiffusionFunction< TImage >, and itk::ScalarAnisotropicDiffusionFunction< TImage >.
Definition at line 150 of file itkAnisotropicDiffusionFunction.h.
typedef Superclass::NeighborhoodType itk::AnisotropicDiffusionFunction< 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::FiniteDifferenceFunction< TImage >.
Reimplemented in itk::CurvatureNDAnisotropicDiffusionFunction< TImage >, itk::GradientNDAnisotropicDiffusionFunction< TImage >, itk::VectorAnisotropicDiffusionFunction< TImage >, itk::VectorCurvatureNDAnisotropicDiffusionFunction< TImage >, itk::VectorGradientNDAnisotropicDiffusionFunction< TImage >, and itk::ScalarAnisotropicDiffusionFunction< TImage >.
Definition at line 157 of file itkAnisotropicDiffusionFunction.h.
typedef Superclass::PixelRealType itk::AnisotropicDiffusionFunction< TImage >::PixelrealType |
Definition at line 155 of file itkAnisotropicDiffusionFunction.h.
typedef Superclass::PixelType itk::AnisotropicDiffusionFunction< TImage >::PixelType |
Reimplemented from itk::FiniteDifferenceFunction< TImage >.
Reimplemented in itk::CurvatureNDAnisotropicDiffusionFunction< TImage >, itk::GradientNDAnisotropicDiffusionFunction< TImage >, itk::VectorAnisotropicDiffusionFunction< TImage >, itk::VectorCurvatureNDAnisotropicDiffusionFunction< TImage >, itk::VectorGradientNDAnisotropicDiffusionFunction< TImage >, and itk::ScalarAnisotropicDiffusionFunction< TImage >.
Definition at line 154 of file itkAnisotropicDiffusionFunction.h.
typedef SmartPointer< Self > itk::AnisotropicDiffusionFunction< TImage >::Pointer |
Reimplemented from itk::FiniteDifferenceFunction< TImage >.
Reimplemented in itk::CurvatureNDAnisotropicDiffusionFunction< TImage >, itk::GradientNDAnisotropicDiffusionFunction< TImage >, itk::VectorAnisotropicDiffusionFunction< TImage >, itk::VectorCurvatureNDAnisotropicDiffusionFunction< TImage >, itk::VectorGradientNDAnisotropicDiffusionFunction< TImage >, and itk::ScalarAnisotropicDiffusionFunction< TImage >.
Definition at line 146 of file itkAnisotropicDiffusionFunction.h.
typedef Superclass::RadiusType itk::AnisotropicDiffusionFunction< TImage >::RadiusType |
Neighborhood radius type
Reimplemented from itk::FiniteDifferenceFunction< TImage >.
Reimplemented in itk::CurvatureNDAnisotropicDiffusionFunction< TImage >, itk::GradientNDAnisotropicDiffusionFunction< TImage >, itk::VectorAnisotropicDiffusionFunction< TImage >, itk::VectorCurvatureNDAnisotropicDiffusionFunction< TImage >, itk::VectorGradientNDAnisotropicDiffusionFunction< TImage >, and itk::ScalarAnisotropicDiffusionFunction< TImage >.
Definition at line 156 of file itkAnisotropicDiffusionFunction.h.
typedef AnisotropicDiffusionFunction itk::AnisotropicDiffusionFunction< TImage >::Self |
Standard class typedefs.
Reimplemented from itk::FiniteDifferenceFunction< TImage >.
Reimplemented in itk::CurvatureNDAnisotropicDiffusionFunction< TImage >, itk::GradientNDAnisotropicDiffusionFunction< TImage >, itk::VectorAnisotropicDiffusionFunction< TImage >, itk::VectorCurvatureNDAnisotropicDiffusionFunction< TImage >, itk::VectorGradientNDAnisotropicDiffusionFunction< TImage >, and itk::ScalarAnisotropicDiffusionFunction< TImage >.
Definition at line 144 of file itkAnisotropicDiffusionFunction.h.
typedef FiniteDifferenceFunction< TImage > itk::AnisotropicDiffusionFunction< TImage >::Superclass |
Reimplemented from itk::FiniteDifferenceFunction< TImage >.
Reimplemented in itk::CurvatureNDAnisotropicDiffusionFunction< TImage >, itk::GradientNDAnisotropicDiffusionFunction< TImage >, itk::VectorAnisotropicDiffusionFunction< TImage >, itk::VectorCurvatureNDAnisotropicDiffusionFunction< TImage >, itk::VectorGradientNDAnisotropicDiffusionFunction< TImage >, and itk::ScalarAnisotropicDiffusionFunction< TImage >.
Definition at line 145 of file itkAnisotropicDiffusionFunction.h.
typedef Superclass::TimeStepType itk::AnisotropicDiffusionFunction< TImage >::TimeStepType |
Define the TimeStepType to always be double.
Reimplemented from itk::FiniteDifferenceFunction< TImage >.
Reimplemented in itk::CurvatureNDAnisotropicDiffusionFunction< TImage >, itk::GradientNDAnisotropicDiffusionFunction< TImage >, itk::VectorAnisotropicDiffusionFunction< TImage >, itk::VectorCurvatureNDAnisotropicDiffusionFunction< TImage >, itk::VectorGradientNDAnisotropicDiffusionFunction< TImage >, and itk::ScalarAnisotropicDiffusionFunction< TImage >.
Definition at line 158 of file itkAnisotropicDiffusionFunction.h.
|
inlineprotected |
Definition at line 227 of file itkAnisotropicDiffusionFunction.h.
|
inlineprotected |
Definition at line 234 of file itkAnisotropicDiffusionFunction.h.
|
private |
|
pure virtual |
This method is called before each iteration. It calculates a scalar value that is the average of the gradient magnitude squared at each pixel in the output image (intermediate solution). The average gradient magnitude value is typically used in the anisotropic diffusion equations to calibrate the conductance term.
Implemented in itk::VectorAnisotropicDiffusionFunction< TImage >, and itk::ScalarAnisotropicDiffusionFunction< TImage >.
|
inlinevirtual |
Returns the time step supplied by the user. We don't need to use the global data supplied since we are returning a fixed value.
Implements itk::FiniteDifferenceFunction< TImage >.
Definition at line 208 of file itkAnisotropicDiffusionFunction.h.
|
inline |
Set/Get the average gradient magnitude squared.
Definition at line 196 of file itkAnisotropicDiffusionFunction.h.
|
inline |
Definition at line 190 of file itkAnisotropicDiffusionFunction.h.
|
inlinevirtual |
The anisotropic diffusion classes don't use this particular parameter so it's safe to return a null value.
Implements itk::FiniteDifferenceFunction< TImage >.
Definition at line 215 of file itkAnisotropicDiffusionFunction.h.
|
virtual |
Run-time type information (and related methods)
Reimplemented from itk::FiniteDifferenceFunction< TImage >.
Reimplemented in itk::CurvatureNDAnisotropicDiffusionFunction< TImage >, itk::GradientNDAnisotropicDiffusionFunction< TImage >, itk::ScalarAnisotropicDiffusionFunction< TImage >, itk::VectorAnisotropicDiffusionFunction< TImage >, itk::VectorCurvatureNDAnisotropicDiffusionFunction< TImage >, and itk::VectorGradientNDAnisotropicDiffusionFunction< TImage >.
|
inline |
Definition at line 179 of file itkAnisotropicDiffusionFunction.h.
|
private |
Mutex lock to protect modification to the reference count
Reimplemented from itk::FiniteDifferenceFunction< TImage >.
Reimplemented in itk::GradientNDAnisotropicDiffusionFunction< TImage >, itk::CurvatureNDAnisotropicDiffusionFunction< TImage >, itk::VectorCurvatureNDAnisotropicDiffusionFunction< TImage >, itk::VectorGradientNDAnisotropicDiffusionFunction< TImage >, itk::VectorAnisotropicDiffusionFunction< TImage >, and itk::ScalarAnisotropicDiffusionFunction< TImage >.
|
inlineprotectedvirtual |
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::FiniteDifferenceFunction< TImage >.
Reimplemented in itk::VectorCurvatureNDAnisotropicDiffusionFunction< TImage >, and itk::VectorAnisotropicDiffusionFunction< TImage >.
Definition at line 236 of file itkAnisotropicDiffusionFunction.h.
|
inlinevirtual |
Does nothing. No global data is used in this class of equations.
Implements itk::FiniteDifferenceFunction< TImage >.
Definition at line 221 of file itkAnisotropicDiffusionFunction.h.
|
inline |
Definition at line 201 of file itkAnisotropicDiffusionFunction.h.
|
inline |
Set/Get the conductance parameter. The conductance parameter.
Definition at line 185 of file itkAnisotropicDiffusionFunction.h.
|
inline |
Set/Get the time step. For this class of anisotropic diffusion filters, the time-step is supplied by the user and remains fixed for all updates.
Definition at line 174 of file itkAnisotropicDiffusionFunction.h.
|
static |
Inherit some parameters from the superclass type
Reimplemented from itk::FiniteDifferenceFunction< TImage >.
Reimplemented in itk::CurvatureNDAnisotropicDiffusionFunction< TImage >, itk::GradientNDAnisotropicDiffusionFunction< TImage >, itk::VectorAnisotropicDiffusionFunction< TImage >, itk::VectorCurvatureNDAnisotropicDiffusionFunction< TImage >, itk::VectorGradientNDAnisotropicDiffusionFunction< TImage >, and itk::ScalarAnisotropicDiffusionFunction< TImage >.
Definition at line 162 of file itkAnisotropicDiffusionFunction.h.
|
private |
Definition at line 248 of file itkAnisotropicDiffusionFunction.h.
|
private |
Definition at line 249 of file itkAnisotropicDiffusionFunction.h.
|
private |
Definition at line 250 of file itkAnisotropicDiffusionFunction.h.