#include <itkCurvatureNDAnisotropicDiffusionFunction.h>
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.
,
.
Definition at line 72 of file itkCurvatureNDAnisotropicDiffusionFunction.h.
typedef SmartPointer<const Self> itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::ConstPointer |
Reimplemented from itk::ScalarAnisotropicDiffusionFunction< TImage >.
Definition at line 81 of file itkCurvatureNDAnisotropicDiffusionFunction.h.
typedef ZeroFluxNeumannBoundaryCondition<ImageType> itk::FiniteDifferenceFunction< TImage >::DefaultBoundaryConditionType [inherited] |
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.
typedef Superclass::FloatOffsetType itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::FloatOffsetType |
A floating point offset from an image grid location. Used for interpolation among grid values in a neighborhood.
Reimplemented from itk::AnisotropicDiffusionFunction< TImage >.
Definition at line 96 of file itkCurvatureNDAnisotropicDiffusionFunction.h.
typedef Superclass::ImageType itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::ImageType |
Inherit some parameters from the superclass type.
Reimplemented from itk::ScalarAnisotropicDiffusionFunction< TImage >.
Definition at line 88 of file itkCurvatureNDAnisotropicDiffusionFunction.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.
typedef Vector<PixelRealType,itkGetStaticConstMacro(ImageDimension)> itk::FiniteDifferenceFunction< TImage >::NeighborhoodScalesType [inherited] |
The type of data structure that holds the scales with which the neighborhood is weighted to properly account for spacing and neighborhood radius.
Reimplemented in itk::CurvatureFlowFunction< TImage >.
Definition at line 103 of file itkFiniteDifferenceFunction.h.
typedef Superclass::NeighborhoodType itk::CurvatureNDAnisotropicDiffusionFunction< 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::ScalarAnisotropicDiffusionFunction< TImage >.
Definition at line 95 of file itkCurvatureNDAnisotropicDiffusionFunction.h.
typedef Superclass::PixelRealType itk::ScalarAnisotropicDiffusionFunction< TImage >::PixelRealType [inherited] |
Reimplemented from itk::FiniteDifferenceFunction< TImage >.
Reimplemented in itk::GradientNDAnisotropicDiffusionFunction< TImage >.
Definition at line 57 of file itkScalarAnisotropicDiffusionFunction.h.
typedef Superclass::PixelRealType itk::AnisotropicDiffusionFunction< TImage >::PixelrealType [inherited] |
Definition at line 152 of file itkAnisotropicDiffusionFunction.h.
typedef Superclass::PixelType itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::PixelType |
Reimplemented from itk::ScalarAnisotropicDiffusionFunction< TImage >.
Definition at line 92 of file itkCurvatureNDAnisotropicDiffusionFunction.h.
typedef SmartPointer<Self> itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::Pointer |
Reimplemented from itk::ScalarAnisotropicDiffusionFunction< TImage >.
Definition at line 80 of file itkCurvatureNDAnisotropicDiffusionFunction.h.
typedef Superclass::RadiusType itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::RadiusType |
Neighborhood radius type
Reimplemented from itk::ScalarAnisotropicDiffusionFunction< TImage >.
Definition at line 94 of file itkCurvatureNDAnisotropicDiffusionFunction.h.
typedef CurvatureNDAnisotropicDiffusionFunction itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::Self |
Standard class typedefs.
Reimplemented from itk::ScalarAnisotropicDiffusionFunction< TImage >.
Definition at line 78 of file itkCurvatureNDAnisotropicDiffusionFunction.h.
typedef ScalarAnisotropicDiffusionFunction<TImage> itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::Superclass |
Reimplemented from itk::ScalarAnisotropicDiffusionFunction< TImage >.
Definition at line 79 of file itkCurvatureNDAnisotropicDiffusionFunction.h.
typedef Superclass::TimeStepType itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::TimeStepType |
Define the TimeStepType to always be double.
Reimplemented from itk::ScalarAnisotropicDiffusionFunction< TImage >.
Definition at line 93 of file itkCurvatureNDAnisotropicDiffusionFunction.h.
itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::CurvatureNDAnisotropicDiffusionFunction | ( | ) | [protected] |
itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::~CurvatureNDAnisotropicDiffusionFunction | ( | ) | [inline, protected] |
Definition at line 117 of file itkCurvatureNDAnisotropicDiffusionFunction.h.
static void itk::LightObject::BreakOnError | ( | ) | [static, inherited] |
This method is called when itkExceptionMacro executes. It allows the debugger to break on error.
virtual void itk::ScalarAnisotropicDiffusionFunction< TImage >::CalculateAverageGradientMagnitudeSquared | ( | TImage * | ) | [virtual, inherited] |
virtual void itk::AnisotropicDiffusionFunction< TImage >::CalculateAverageGradientMagnitudeSquared | ( | ImageType * | ) | [pure virtual, inherited] |
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.
virtual TimeStepType itk::AnisotropicDiffusionFunction< TImage >::ComputeGlobalTimeStep | ( | void * | ) | const [inline, virtual, inherited] |
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 205 of file itkAnisotropicDiffusionFunction.h.
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
virtual PixelType itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::ComputeUpdate | ( | const NeighborhoodType & | neighborhood, | |
void * | globalData, | |||
const FloatOffsetType & | offset = FloatOffsetType(0.0) | |||
) | [virtual] |
Compute incremental update.
Implements itk::FiniteDifferenceFunction< 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::BSplineDeformableTransform< TScalarType, NDimensions, VSplineOrder >, itk::CreateObjectFunction< T >, itk::MetaDataObject< MetaDataObjectType >, itk::Object, itk::TransformFactoryBase, itk::AnalyzeImageIOFactory, itk::BioRadImageIOFactory, itk::BMPImageIOFactory, itk::Brains2MaskImageIOFactory, itk::DICOMImageIO2Factory, itk::DicomImageIOFactory, itk::GDCMImageIOFactory, itk::GE4ImageIOFactory, itk::GE5ImageIOFactory, itk::GEAdwImageIOFactory, itk::GiplImageIOFactory, itk::JPEGImageIOFactory, itk::LSMImageIOFactory, itk::MetaImageIOFactory, itk::NiftiImageIOFactory, itk::NrrdImageIOFactory, itk::PNGImageIOFactory, itk::RawImageIOFactory< TPixel, VImageDimension >, itk::SiemensVisionImageIOFactory, itk::StimulateImageIOFactory, itk::TIFFImageIOFactory, itk::VTKImageIOFactory, itk::Bruker2DSEQImageIOFactory, itk::MatlabTransformIOFactory, itk::MINC2ImageIOFactory, itk::MRCImageIOFactory, itk::PhilipsRECImageIOFactory, itk::TxtTransformIOFactory, itk::VoxBoCUBImageIOFactory, itk::VTKImageIO2Factory, and itk::SpatialObjectFactoryBase.
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.
const double& itk::AnisotropicDiffusionFunction< TImage >::GetAverageGradientMagnitudeSquared | ( | ) | const [inline, inherited] |
Set/Get the average gradient magnitude squared.
Definition at line 193 of file itkAnisotropicDiffusionFunction.h.
const double& itk::AnisotropicDiffusionFunction< TImage >::GetConductanceParameter | ( | ) | const [inline, inherited] |
Set/Get the conductance parameter. The conductance parameter.
Definition at line 186 of file itkAnisotropicDiffusionFunction.h.
virtual void* itk::AnisotropicDiffusionFunction< TImage >::GetGlobalDataPointer | ( | ) | const [inline, virtual, inherited] |
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 212 of file itkAnisotropicDiffusionFunction.h.
virtual const char* itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods)
Reimplemented from itk::ScalarAnisotropicDiffusionFunction< 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.
virtual int itk::LightObject::GetReferenceCount | ( | ) | const [inline, virtual, inherited] |
Gets the reference count on this object.
Definition at line 106 of file itkLightObject.h.
const TimeStepType& itk::AnisotropicDiffusionFunction< TImage >::GetTimeStep | ( | ) | const [inline, inherited] |
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.
virtual void itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::InitializeIteration | ( | ) | [inline, virtual] |
This method is called prior to each iteration of the solver.
Reimplemented from itk::FiniteDifferenceFunction< TImage >.
Definition at line 108 of file itkCurvatureNDAnisotropicDiffusionFunction.h.
static Pointer itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::New | ( | ) | [static] |
Method for creation through the object factory.
Reimplemented from itk::LightObject.
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] |
void itk::AnisotropicDiffusionFunction< TImage >::PrintSelf | ( | std::ostream & | os, | |
Indent | indent | |||
) | const [inline, 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::FiniteDifferenceFunction< TImage >.
Reimplemented in itk::VectorAnisotropicDiffusionFunction< TImage >, and itk::VectorCurvatureNDAnisotropicDiffusionFunction< TImage >.
Definition at line 232 of file itkAnisotropicDiffusionFunction.h.
References HardConnectedComponentImageFilter::PrintSelf().
virtual void itk::LightObject::PrintTrailer | ( | std::ostream & | os, | |
Indent | indent | |||
) | const [protected, virtual, inherited] |
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::AnisotropicDiffusionFunction< TImage >::ReleaseGlobalDataPointer | ( | void * | ) | const [inline, virtual, inherited] |
Does nothing. No global data is used in this class of equations.
Implements itk::FiniteDifferenceFunction< TImage >.
Definition at line 218 of file itkAnisotropicDiffusionFunction.h.
void itk::AnisotropicDiffusionFunction< TImage >::SetAverageGradientMagnitudeSquared | ( | const double & | c | ) | [inline, inherited] |
Set/Get the average gradient magnitude squared.
Definition at line 197 of file itkAnisotropicDiffusionFunction.h.
void itk::AnisotropicDiffusionFunction< TImage >::SetConductanceParameter | ( | const double & | c | ) | [inline, inherited] |
Set/Get the conductance parameter. The conductance parameter.
Definition at line 182 of file itkAnisotropicDiffusionFunction.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::AnisotropicDiffusionFunction< TImage >::SetTimeStep | ( | const TimeStepType & | t | ) | [inline, inherited] |
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 171 of file itkAnisotropicDiffusionFunction.h.
virtual void itk::LightObject::UnRegister | ( | ) | const [virtual, inherited] |
Decrease the reference count (release by another object).
Reimplemented in itk::Object.
const unsigned int itk::CurvatureNDAnisotropicDiffusionFunction< TImage >::ImageDimension = Superclass::ImageDimension [static] |
Inherit some parameters from the superclass type.
Reimplemented from itk::ScalarAnisotropicDiffusionFunction< TImage >.
Definition at line 99 of file itkCurvatureNDAnisotropicDiffusionFunction.h.
RadiusType itk::FiniteDifferenceFunction< TImage >::m_Radius [protected, inherited] |
Definition at line 203 of file itkFiniteDifferenceFunction.h.
InternalReferenceCountType itk::LightObject::m_ReferenceCount [mutable, protected, inherited] |
Number of uses of this object by other objects.
Definition at line 144 of file itkLightObject.h.
SimpleFastMutexLock itk::LightObject::m_ReferenceCountLock [mutable, protected, inherited] |
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.