ITK
4.13.0
Insight Segmentation and Registration Toolkit
|
#include <itkAnisotropicDiffusionFunction.h>
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 139 of file itkAnisotropicDiffusionFunction.h.
Public Member Functions | |
virtual void | CalculateAverageGradientMagnitudeSquared (ImageType *)=0 |
virtual TimeStepType | ComputeGlobalTimeStep (void *) const override |
const double & | GetAverageGradientMagnitudeSquared () const |
const double & | GetConductanceParameter () const |
virtual void * | GetGlobalDataPointer () const override |
virtual const char * | GetNameOfClass () const |
const TimeStepType & | GetTimeStep () const |
virtual void | ReleaseGlobalDataPointer (void *) const override |
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 |
void | GetScaleCoefficients (PixelRealType vals[ImageDimension]) 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 noexcept |
Static Public Attributes | |
static const unsigned int | ImageDimension = Superclass::ImageDimension |
Static Public Attributes inherited from itk::FiniteDifferenceFunction< TImage > | |
static const unsigned int | ImageDimension |
Protected Member Functions | |
AnisotropicDiffusionFunction () | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
~AnisotropicDiffusionFunction () override | |
Protected Member Functions inherited from itk::FiniteDifferenceFunction< TImage > | |
FiniteDifferenceFunction () | |
~FiniteDifferenceFunction () override | |
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 Attributes | |
double | m_AverageGradientMagnitudeSquared |
double | m_ConductanceParameter |
TimeStepType | m_TimeStep |
Additional Inherited Members | |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Protected Attributes inherited from itk::FiniteDifferenceFunction< TImage > | |
RadiusType | m_Radius |
PixelRealType | m_ScaleCoefficients [ImageDimension] |
Protected Attributes inherited from itk::LightObject | |
AtomicInt< int > | m_ReferenceCount |
typedef SmartPointer< const Self > itk::AnisotropicDiffusionFunction< TImage >::ConstPointer |
Definition at line 148 of file itkAnisotropicDiffusionFunction.h.
typedef Superclass::FloatOffsetType itk::AnisotropicDiffusionFunction< TImage >::FloatOffsetType |
Definition at line 160 of file itkAnisotropicDiffusionFunction.h.
typedef Superclass::ImageType itk::AnisotropicDiffusionFunction< TImage >::ImageType |
Inherit some parameters from the superclass type
Definition at line 151 of file itkAnisotropicDiffusionFunction.h.
typedef Superclass::NeighborhoodType itk::AnisotropicDiffusionFunction< TImage >::NeighborhoodType |
Definition at line 158 of file itkAnisotropicDiffusionFunction.h.
typedef Superclass::PixelRealType itk::AnisotropicDiffusionFunction< TImage >::PixelrealType |
Definition at line 156 of file itkAnisotropicDiffusionFunction.h.
typedef Superclass::PixelType itk::AnisotropicDiffusionFunction< TImage >::PixelType |
Definition at line 155 of file itkAnisotropicDiffusionFunction.h.
typedef SmartPointer< Self > itk::AnisotropicDiffusionFunction< TImage >::Pointer |
Definition at line 147 of file itkAnisotropicDiffusionFunction.h.
typedef Superclass::RadiusType itk::AnisotropicDiffusionFunction< TImage >::RadiusType |
Definition at line 157 of file itkAnisotropicDiffusionFunction.h.
typedef AnisotropicDiffusionFunction itk::AnisotropicDiffusionFunction< TImage >::Self |
Standard class typedefs.
Definition at line 145 of file itkAnisotropicDiffusionFunction.h.
typedef FiniteDifferenceFunction< TImage > itk::AnisotropicDiffusionFunction< TImage >::Superclass |
Definition at line 146 of file itkAnisotropicDiffusionFunction.h.
typedef Superclass::TimeStepType itk::AnisotropicDiffusionFunction< TImage >::TimeStepType |
Definition at line 159 of file itkAnisotropicDiffusionFunction.h.
|
inlineprotected |
Definition at line 228 of file itkAnisotropicDiffusionFunction.h.
|
inlineoverrideprotected |
Definition at line 235 of file itkAnisotropicDiffusionFunction.h.
|
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 >.
|
inlineoverridevirtual |
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 209 of file itkAnisotropicDiffusionFunction.h.
|
inline |
Set/Get the average gradient magnitude squared.
Definition at line 197 of file itkAnisotropicDiffusionFunction.h.
|
inline |
Definition at line 191 of file itkAnisotropicDiffusionFunction.h.
|
inlineoverridevirtual |
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 216 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 180 of file itkAnisotropicDiffusionFunction.h.
|
inlineoverrideprotectedvirtual |
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 237 of file itkAnisotropicDiffusionFunction.h.
|
inlineoverridevirtual |
Does nothing. No global data is used in this class of equations.
Implements itk::FiniteDifferenceFunction< TImage >.
Definition at line 222 of file itkAnisotropicDiffusionFunction.h.
|
inline |
Definition at line 202 of file itkAnisotropicDiffusionFunction.h.
|
inline |
Set/Get the conductance parameter. The conductance parameter.
Definition at line 186 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 175 of file itkAnisotropicDiffusionFunction.h.
|
static |
Inherit some parameters from the superclass type
Definition at line 163 of file itkAnisotropicDiffusionFunction.h.
|
private |
Definition at line 246 of file itkAnisotropicDiffusionFunction.h.
|
private |
Definition at line 249 of file itkAnisotropicDiffusionFunction.h.
|
private |
Definition at line 250 of file itkAnisotropicDiffusionFunction.h.