ITK  5.2.0
Insight Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Attributes | Static Private Attributes | List of all members

#include <itkCurvatureNDAnisotropicDiffusionFunction.h>

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

Public Types

using ConstPointer = SmartPointer< const Self >
 
using FloatOffsetType = typename Superclass::FloatOffsetType
 
using ImageType = typename Superclass::ImageType
 
using NeighborhoodSizeValueType = typename NeighborhoodType::SizeValueType
 
using NeighborhoodType = typename Superclass::NeighborhoodType
 
using PixelType = typename Superclass::PixelType
 
using Pointer = SmartPointer< Self >
 
using RadiusType = typename Superclass::RadiusType
 
using Self = CurvatureNDAnisotropicDiffusionFunction
 
using Superclass = ScalarAnisotropicDiffusionFunction< TImage >
 
using TimeStepType = typename Superclass::TimeStepType
 
- Public Types inherited from itk::ScalarAnisotropicDiffusionFunction< TImage >
using ConstPointer = SmartPointer< const Self >
 
using ImageType = typename Superclass::ImageType
 
using NeighborhoodType = typename Superclass::NeighborhoodType
 
using PixelRealType = typename Superclass::PixelRealType
 
using PixelType = typename Superclass::PixelType
 
using Pointer = SmartPointer< Self >
 
using RadiusType = typename Superclass::RadiusType
 
using Self = ScalarAnisotropicDiffusionFunction
 
using Superclass = AnisotropicDiffusionFunction< TImage >
 
using TimeStepType = typename Superclass::TimeStepType
 
- Public Types inherited from itk::AnisotropicDiffusionFunction< TImage >
using ConstPointer = SmartPointer< const Self >
 
using FloatOffsetType = typename Superclass::FloatOffsetType
 
using ImageType = typename Superclass::ImageType
 
using NeighborhoodType = typename Superclass::NeighborhoodType
 
using PixelrealType = typename Superclass::PixelRealType
 
using PixelType = typename Superclass::PixelType
 
using Pointer = SmartPointer< Self >
 
using RadiusType = typename Superclass::RadiusType
 
using Self = AnisotropicDiffusionFunction
 
using Superclass = FiniteDifferenceFunction< TImage >
 
using TimeStepType = typename Superclass::TimeStepType
 
- Public Types inherited from itk::FiniteDifferenceFunction< TImage >
using ConstPointer = SmartPointer< const Self >
 
using DefaultBoundaryConditionType = ZeroFluxNeumannBoundaryCondition< ImageType >
 
using FloatOffsetType = Vector< float, Self::ImageDimension >
 
using ImageType = TImage
 
using NeighborhoodScalesType = Vector< PixelRealType, Self::ImageDimension >
 
using NeighborhoodType = ConstNeighborhoodIterator< TImage, DefaultBoundaryConditionType >
 
using PixelRealType = double
 
using PixelType = typename ImageType::PixelType
 
using Pointer = SmartPointer< Self >
 
using RadiusType = typename ConstNeighborhoodIterator< TImage >::RadiusType
 
using Self = FiniteDifferenceFunction
 
using Superclass = LightObject
 
using TimeStepType = double
 
- Public Types inherited from itk::LightObject
using ConstPointer = SmartPointer< const Self >
 
using Pointer = SmartPointer< Self >
 
using Self = LightObject
 

Public Member Functions

PixelType ComputeUpdate (const NeighborhoodType &it, void *globalData, const FloatOffsetType &offset=FloatOffsetType(0.0)) override
 
virtual ::itk::LightObject::Pointer CreateAnother () const
 
virtual const char * GetNameOfClass () const
 
void InitializeIteration () override
 
- Public Member Functions inherited from itk::ScalarAnisotropicDiffusionFunction< TImage >
void CalculateAverageGradientMagnitudeSquared (TImage *) override
 
- Public Member Functions inherited from itk::AnisotropicDiffusionFunction< TImage >
virtual void CalculateAverageGradientMagnitudeSquared (ImageType *)=0
 
TimeStepType ComputeGlobalTimeStep (void *) const override
 
const double & GetAverageGradientMagnitudeSquared () const
 
const double & GetConductanceParameter () const
 
void * GetGlobalDataPointer () const override
 
const TimeStepTypeGetTimeStep () 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 >
const NeighborhoodScalesType ComputeNeighborhoodScales () const
 
virtual PixelType ComputeUpdate (const NeighborhoodType &neighborhood, void *globalData, const FloatOffsetType &offset=FloatOffsetType(0.0))=0
 
const RadiusTypeGetRadius () const
 
void GetScaleCoefficients (PixelRealType vals[ImageDimension]) const
 
void SetRadius (const RadiusType &r)
 
void SetScaleCoefficients (const PixelRealType vals[ImageDimension])
 
- Public Member Functions inherited from itk::LightObject
Pointer Clone () const
 
virtual void Delete ()
 
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 Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Static Public Attributes

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

Protected Member Functions

 CurvatureNDAnisotropicDiffusionFunction ()
 
 ~CurvatureNDAnisotropicDiffusionFunction () override=default
 
- Protected Member Functions inherited from itk::ScalarAnisotropicDiffusionFunction< TImage >
 ScalarAnisotropicDiffusionFunction ()=default
 
 ~ScalarAnisotropicDiffusionFunction () override=default
 
- Protected Member Functions inherited from itk::AnisotropicDiffusionFunction< TImage >
 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 PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Private Attributes

NeighborhoodSizeValueType m_Center
 
DerivativeOperator< PixelType, Self::ImageDimensionm_DerivativeOperator
 
NeighborhoodInnerProduct< ImageTypem_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
 

Additional Inherited Members

- 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
 

Detailed Description

template<typename 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

◆ ConstPointer

template<typename TImage>
using itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::ConstPointer = SmartPointer<const Self>

Definition at line 85 of file itkCurvatureNDAnisotropicDiffusionFunction.h.

◆ FloatOffsetType

template<typename TImage>
using itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::FloatOffsetType = typename Superclass::FloatOffsetType

Definition at line 99 of file itkCurvatureNDAnisotropicDiffusionFunction.h.

◆ ImageType

template<typename TImage>
using itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::ImageType = typename Superclass::ImageType

Inherit some parameters from the superclass type.

Definition at line 94 of file itkCurvatureNDAnisotropicDiffusionFunction.h.

◆ NeighborhoodSizeValueType

template<typename TImage>
using itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::NeighborhoodSizeValueType = typename NeighborhoodType::SizeValueType

◆ NeighborhoodType

Definition at line 98 of file itkCurvatureNDAnisotropicDiffusionFunction.h.

◆ PixelType

template<typename TImage>
using itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::PixelType = typename Superclass::PixelType

Definition at line 95 of file itkCurvatureNDAnisotropicDiffusionFunction.h.

◆ Pointer

template<typename TImage>
using itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::Pointer = SmartPointer<Self>

Definition at line 84 of file itkCurvatureNDAnisotropicDiffusionFunction.h.

◆ RadiusType

template<typename TImage>
using itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::RadiusType = typename Superclass::RadiusType

Definition at line 97 of file itkCurvatureNDAnisotropicDiffusionFunction.h.

◆ Self

Standard class type aliases.

Definition at line 82 of file itkCurvatureNDAnisotropicDiffusionFunction.h.

◆ Superclass

Definition at line 83 of file itkCurvatureNDAnisotropicDiffusionFunction.h.

◆ TimeStepType

template<typename TImage>
using itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::TimeStepType = typename Superclass::TimeStepType

Definition at line 96 of file itkCurvatureNDAnisotropicDiffusionFunction.h.

Constructor & Destructor Documentation

◆ CurvatureNDAnisotropicDiffusionFunction()

◆ ~CurvatureNDAnisotropicDiffusionFunction()

template<typename TImage>
itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::~CurvatureNDAnisotropicDiffusionFunction ( )
overrideprotecteddefault

Member Function Documentation

◆ ComputeUpdate()

template<typename TImage>
PixelType itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::ComputeUpdate ( const NeighborhoodType it,
void *  globalData,
const FloatOffsetType offset = FloatOffsetType(0.0) 
)
override

Compute incremental update.

◆ CreateAnother()

template<typename TImage>
virtual::itk::LightObject::Pointer itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::CreateAnother ( ) 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.

◆ GetNameOfClass()

template<typename TImage>
virtual const char* itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods)

Reimplemented from itk::ScalarAnisotropicDiffusionFunction< TImage >.

◆ InitializeIteration()

template<typename TImage>
void itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::InitializeIteration ( )
inlineoverridevirtual

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

Reimplemented from itk::FiniteDifferenceFunction< TImage >.

Definition at line 114 of file itkCurvatureNDAnisotropicDiffusionFunction.h.

◆ New()

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

Member Data Documentation

◆ ImageDimension

template<typename TImage>
constexpr unsigned int itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::ImageDimension = Superclass::ImageDimension
staticconstexpr

Inherit some parameters from the superclass type.

Definition at line 104 of file itkCurvatureNDAnisotropicDiffusionFunction.h.

◆ m_Center

template<typename TImage>
NeighborhoodSizeValueType itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::m_Center
private

◆ m_DerivativeOperator

template<typename TImage>
DerivativeOperator<PixelType, Self::ImageDimension> itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::m_DerivativeOperator
private

Derivative operator

Definition at line 134 of file itkCurvatureNDAnisotropicDiffusionFunction.h.

◆ m_InnerProduct

template<typename TImage>
NeighborhoodInnerProduct<ImageType> itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::m_InnerProduct
private

Inner product function.

Definition at line 126 of file itkCurvatureNDAnisotropicDiffusionFunction.h.

◆ m_K

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

Modified global average gradient magnitude term.

Definition at line 137 of file itkCurvatureNDAnisotropicDiffusionFunction.h.

◆ m_MIN_NORM

template<typename TImage>
double itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::m_MIN_NORM
staticprivate

◆ m_Stride

template<typename TImage>
NeighborhoodSizeValueType itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::m_Stride[ImageDimension]
private

◆ x_slice

template<typename TImage>
std::slice itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::x_slice[ImageDimension]
private

Slices for the ND neighborhood.

Definition at line 129 of file itkCurvatureNDAnisotropicDiffusionFunction.h.

◆ xa_slice

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

◆ xd_slice

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

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