ITK
6.0.0
Insight 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 \(U(\mathbf{x})\) in a higher dimensional function of derived images, \(U(\mathbf{x}, t)\). This higher dimensional function represents the solution of the heat diffusion equation,
\[\frac{d U(\mathbf{x})}{d t} = \nabla \cdot c \nabla U(\mathbf{x})\]
\[\frac{d U(\mathbf{x})}{d t} = C(\mathbf{x})\Delta U(\mathbf{x}) + \nabla C(\mathbf{x}) \nabla U(\mathbf{x})\]
\[C(\mathbf{x}) = e^{-(\frac{\parallel \nabla U(\mathbf{x}) \parallel}{K})^2}\]
.Definition at line 139 of file itkAnisotropicDiffusionFunction.h.
Public Member Functions | |
virtual void | CalculateAverageGradientMagnitudeSquared (ImageType *)=0 |
TimeStepType | ComputeGlobalTimeStep (void *) const override |
const double & | GetAverageGradientMagnitudeSquared () const |
const double & | GetConductanceParameter () const |
void * | GetGlobalDataPointer () const override |
const char * | GetNameOfClass () const override |
const TimeStepType & | GetTimeStep () const |
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 > | |
virtual TimeStepType | ComputeGlobalTimeStep (void *GlobalData) const=0 |
const NeighborhoodScalesType | ComputeNeighborhoodScales () const |
virtual PixelType | ComputeUpdate (const NeighborhoodType &neighborhood, void *globalData, const FloatOffsetType &offset=FloatOffsetType(0.0))=0 |
virtual void * | GetGlobalDataPointer () const=0 |
const char * | GetNameOfClass () const override |
const RadiusType & | GetRadius () const |
void | GetScaleCoefficients (PixelRealType vals[ImageDimension]) const |
virtual void | InitializeIteration () |
virtual void | ReleaseGlobalDataPointer (void *GlobalData) const=0 |
void | SetRadius (const RadiusType &r) |
void | SetScaleCoefficients (const PixelRealType vals[ImageDimension]) |
Public Member Functions inherited from itk::LightObject | |
Pointer | Clone () const |
virtual Pointer | CreateAnother () const |
virtual void | Delete () |
virtual const char * | GetNameOfClass () const |
virtual int | GetReferenceCount () const |
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 constexpr unsigned int | ImageDimension = Superclass::ImageDimension |
Static Public Attributes inherited from itk::FiniteDifferenceFunction< TImage > | |
static constexpr unsigned int | ImageDimension |
Protected Member Functions | |
AnisotropicDiffusionFunction () | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
~AnisotropicDiffusionFunction () override=default | |
Protected Member Functions inherited from itk::FiniteDifferenceFunction< TImage > | |
FiniteDifferenceFunction () | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
~FiniteDifferenceFunction () override=default | |
Protected Member Functions inherited from itk::LightObject | |
virtual LightObject::Pointer | InternalClone () const |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintSelf (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 | |
std::atomic< int > | m_ReferenceCount {} |
using itk::AnisotropicDiffusionFunction< TImage >::ConstPointer = SmartPointer<const Self> |
Definition at line 149 of file itkAnisotropicDiffusionFunction.h.
using itk::AnisotropicDiffusionFunction< TImage >::PixelrealType = typename Superclass::PixelRealType |
Definition at line 157 of file itkAnisotropicDiffusionFunction.h.
using itk::AnisotropicDiffusionFunction< TImage >::Pointer = SmartPointer<Self> |
Definition at line 148 of file itkAnisotropicDiffusionFunction.h.
using itk::AnisotropicDiffusionFunction< TImage >::Self = AnisotropicDiffusionFunction |
Standard class type aliases.
Definition at line 146 of file itkAnisotropicDiffusionFunction.h.
using itk::AnisotropicDiffusionFunction< TImage >::Superclass = FiniteDifferenceFunction<TImage> |
Definition at line 147 of file itkAnisotropicDiffusionFunction.h.
|
inlineprotected |
Definition at line 239 of file itkAnisotropicDiffusionFunction.h.
|
overrideprotecteddefault |
|
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::ScalarAnisotropicDiffusionFunction< TImage >, and itk::VectorAnisotropicDiffusionFunction< 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 218 of file itkAnisotropicDiffusionFunction.h.
|
inline |
Set/Get the average gradient magnitude squared.
Definition at line 204 of file itkAnisotropicDiffusionFunction.h.
|
inline |
Definition at line 197 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 226 of file itkAnisotropicDiffusionFunction.h.
|
overridevirtual |
Reimplemented from itk::LightObject.
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 184 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::LightObject.
Reimplemented in itk::VectorAnisotropicDiffusionFunction< TImage >, and itk::VectorCurvatureNDAnisotropicDiffusionFunction< TImage >.
Definition at line 249 of file itkAnisotropicDiffusionFunction.h.
|
inlineoverridevirtual |
Does nothing. No global data is used in this class of equations.
Implements itk::FiniteDifferenceFunction< TImage >.
Definition at line 233 of file itkAnisotropicDiffusionFunction.h.
|
inline |
Definition at line 210 of file itkAnisotropicDiffusionFunction.h.
|
inline |
Set/Get the conductance parameter. The conductance parameter.
Definition at line 191 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 178 of file itkAnisotropicDiffusionFunction.h.
|
staticconstexpr |
Inherit some parameters from the superclass type
Definition at line 164 of file itkAnisotropicDiffusionFunction.h.
|
private |
Definition at line 257 of file itkAnisotropicDiffusionFunction.h.
|
private |
Definition at line 258 of file itkAnisotropicDiffusionFunction.h.
|
private |
Definition at line 259 of file itkAnisotropicDiffusionFunction.h.