![]() |
Orfeo Toolbox
3.16
|
This class encapsulate the finite difference equation which drives a curvature flow denoising algorithm. More...
#include <itkCurvatureFlowFunction.h>
Inheritance diagram for itk::CurvatureFlowFunction< TImage >:
Collaboration diagram for itk::CurvatureFlowFunction< TImage >:Public Types | |
| typedef SmartPointer< const Self > | ConstPointer |
| typedef ZeroFluxNeumannBoundaryCondition < ImageType > | DefaultBoundaryConditionType |
| typedef Superclass::FloatOffsetType | FloatOffsetType |
| typedef Superclass::ImageType | ImageType |
| typedef Superclass::NeighborhoodScalesType | NeighborhoodScalesType |
| typedef Superclass::NeighborhoodType | NeighborhoodType |
| typedef Superclass::PixelRealType | PixelRealType |
| typedef Superclass::PixelType | PixelType |
| typedef SmartPointer< Self > | Pointer |
| typedef Superclass::RadiusType | RadiusType |
| typedef PixelType | ScalarValueType |
| typedef CurvatureFlowFunction | Self |
| typedef FiniteDifferenceFunction < TImage > | Superclass |
| typedef Superclass::TimeStepType | TimeStepType |
Public Member Functions | |
| virtual TimeStepType | ComputeGlobalTimeStep (void *GlobalData) const |
| const NeighborhoodScalesType | ComputeNeighborhoodScales () const |
| virtual PixelType | ComputeUpdate (const NeighborhoodType &neighborhood, void *globalData, const FloatOffsetType &offset=FloatOffsetType(0.0)) |
| virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
| virtual void | Delete () |
| virtual void * | GetGlobalDataPointer () const |
| virtual const char * | GetNameOfClass () const |
| const RadiusType & | GetRadius () const |
| virtual int | GetReferenceCount () const |
| const TimeStepType & | GetTimeStep () const |
| virtual void | InitializeIteration () |
| void | Print (std::ostream &os, Indent indent=0) const |
| virtual void | Register () const |
| virtual void | ReleaseGlobalDataPointer (void *GlobalData) const |
| void | SetRadius (const RadiusType &r) |
| virtual void | SetReferenceCount (int) |
| void | SetScaleCoefficients (PixelRealType vals[ImageDimension]) |
| void | SetTimeStep (const TimeStepType &t) |
| virtual void | UnRegister () const |
Static Public Member Functions | |
| static void | BreakOnError () |
| static Pointer | New () |
Static Public Attributes | |
| static const unsigned int | ImageDimension = Superclass::ImageDimension |
Protected Types | |
| typedef int | InternalReferenceCountType |
Protected Member Functions | |
| CurvatureFlowFunction () | |
| ~CurvatureFlowFunction () | |
| virtual void | PrintHeader (std::ostream &os, Indent indent) const |
| void | PrintSelf (std::ostream &os, Indent indent) const |
| virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
Protected Attributes | |
| RadiusType | m_Radius |
| InternalReferenceCountType | m_ReferenceCount |
| SimpleFastMutexLock | m_ReferenceCountLock |
| PixelRealType | m_ScaleCoefficients [ImageDimension] |
Private Member Functions | |
| CurvatureFlowFunction (const Self &) | |
| void | operator= (const Self &) |
Private Attributes | |
| TimeStepType | m_TimeStep |
This class encapsulate the finite difference equation which drives a curvature flow denoising algorithm.
This class uses a zero flux Neumann boundary condition when computing derivatives near the data boundary.
This class operates as part of the finite difference solver hierarchy.
Definition at line 41 of file itkCurvatureFlowFunction.h.
| typedef SmartPointer<const Self> itk::CurvatureFlowFunction< TImage >::ConstPointer |
Definition at line 49 of file itkCurvatureFlowFunction.h.
|
inherited |
The default boundary condition for finite difference functions that is used unless overridden in the Evaluate() method.
Definition at line 91 of file itkFiniteDifferenceFunction.h.
| typedef Superclass::FloatOffsetType itk::CurvatureFlowFunction< TImage >::FloatOffsetType |
Definition at line 66 of file itkCurvatureFlowFunction.h.
| typedef Superclass::ImageType itk::CurvatureFlowFunction< TImage >::ImageType |
Inherit some parameters from the superclass type.
Definition at line 56 of file itkCurvatureFlowFunction.h.
|
protectedinherited |
Define the type of the reference count according to the target. This allows the use of atomic operations
Definition at line 137 of file itkLightObject.h.
| typedef Superclass::NeighborhoodScalesType itk::CurvatureFlowFunction< TImage >::NeighborhoodScalesType |
Definition at line 65 of file itkCurvatureFlowFunction.h.
| typedef Superclass::NeighborhoodType itk::CurvatureFlowFunction< TImage >::NeighborhoodType |
Definition at line 64 of file itkCurvatureFlowFunction.h.
| typedef Superclass::PixelRealType itk::CurvatureFlowFunction< TImage >::PixelRealType |
Definition at line 63 of file itkCurvatureFlowFunction.h.
| typedef Superclass::PixelType itk::CurvatureFlowFunction< TImage >::PixelType |
Definition at line 60 of file itkCurvatureFlowFunction.h.
| typedef SmartPointer<Self> itk::CurvatureFlowFunction< TImage >::Pointer |
Definition at line 48 of file itkCurvatureFlowFunction.h.
| typedef Superclass::RadiusType itk::CurvatureFlowFunction< TImage >::RadiusType |
Definition at line 61 of file itkCurvatureFlowFunction.h.
| typedef PixelType itk::CurvatureFlowFunction< TImage >::ScalarValueType |
Definition at line 62 of file itkCurvatureFlowFunction.h.
| typedef CurvatureFlowFunction itk::CurvatureFlowFunction< TImage >::Self |
Standard class typedefs.
Definition at line 46 of file itkCurvatureFlowFunction.h.
| typedef FiniteDifferenceFunction<TImage> itk::CurvatureFlowFunction< TImage >::Superclass |
Definition at line 47 of file itkCurvatureFlowFunction.h.
| typedef Superclass::TimeStepType itk::CurvatureFlowFunction< TImage >::TimeStepType |
Definition at line 67 of file itkCurvatureFlowFunction.h.
|
protected |
A global data type for this class of equations. Used to store values that are needed in calculating the time step.
Constructor
Definition at line 30 of file itkCurvatureFlowFunction.txx.
|
inlineprotected |
Definition at line 136 of file itkCurvatureFlowFunction.h.
|
private |
|
staticinherited |
This method is called when itkExceptionMacro executes. It allows the debugger to break on error.
Definition at line 149 of file itkLightObject.cxx.
|
virtual |
Computes the time step for an update given a global data structure. The data used in the computation may take different forms depending on the nature of the equations. This global data cannot be kept in the instance of the equation object itself since the equation object must remain stateless for thread safety. The global data is therefore managed for each thread by the finite difference solver filters.
Currently, this function returns the user specified constant time step.
Compute the global time step
Implements itk::FiniteDifferenceFunction< TImage >.
Definition at line 53 of file itkCurvatureFlowFunction.txx.
|
inherited |
Compute the scales that weight the neighborhood during difference operations to properly account for spacing and neighborhood radius
|
virtual |
This method computes the solution update for each pixel that does not lie on a the data set boundary.
Update the solution at pixels which lies on the data boundary.
Implements itk::FiniteDifferenceFunction< TImage >.
Reimplemented in itk::MinMaxCurvatureFlowFunction< TImage >, and itk::BinaryMinMaxCurvatureFlowFunction< TImage >.
Definition at line 84 of file itkCurvatureFlowFunction.txx.
References itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::GetPixel(), itk::Neighborhood< TPixel, VDimension, TAllocator >::GetStride(), and itk::Neighborhood< TPixel, VDimension, TAllocator >::Size().
|
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.
Reimplemented in itk::MinMaxCurvatureFlowFunction< TImage >.
|
virtualinherited |
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.
Delete a 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.
Definition at line 88 of file itkLightObject.cxx.
|
inlinevirtual |
Returns a pointer to a global data structure that is passed to this object from the solver at each calculation. The idea is that the solver holds the state of any global values needed to calculate the time step, while the equation object performs the actual calculations. The global data should also be initialized in this method.
Implements itk::FiniteDifferenceFunction< TImage >.
Definition at line 89 of file itkCurvatureFlowFunction.h.
|
virtual |
Run-time type information (and related methods)
Reimplemented from itk::FiniteDifferenceFunction< TImage >.
Reimplemented in itk::BinaryMinMaxCurvatureFlowFunction< TImage >, and itk::MinMaxCurvatureFlowFunction< TImage >.
|
inlineinherited |
Returns the radius of the neighborhood this FiniteDifferenceFunction needs to perform its calculations.
Definition at line 145 of file itkFiniteDifferenceFunction.h.
|
inlinevirtualinherited |
Gets the reference count on this object.
Definition at line 105 of file itkLightObject.h.
|
inline |
Get the time step parameter
Definition at line 108 of file itkCurvatureFlowFunction.h.
|
inlinevirtualinherited |
This method allows the function to set its state before each iteration of the finite difference solver (image filter) that uses it. This is a thread-safe time to manipulate the object's state.
An example of how this can be used: the Anisotropic diffusion class of FiniteDifferenceFunctions use this method to pre-calculate an average gradient magnitude across the entire image region. This value is set in the function object and used by the ComputeUpdate methods that are called at each pixel as a constant.
Reimplemented in itk::CurvatureNDAnisotropicDiffusionFunction< TImage >, itk::GradientNDAnisotropicDiffusionFunction< TImage >, itk::VectorGradientNDAnisotropicDiffusionFunction< TImage >, and itk::VectorCurvatureNDAnisotropicDiffusionFunction< TImage >.
Definition at line 117 of file itkFiniteDifferenceFunction.h.
Referenced by itk::AnisotropicDiffusionImageFilter< TInputImage, TOutputImage >::InitializeIteration().
|
static |
Method for creation through the object factory.
|
private |
|
inherited |
Cause the object to print itself out.
Avoid DLL boundary problems. This function will be common to all itk objects. It just calls the header/self/trailer virtual print methods, which can be overriden by subclasses (any itk object).
Definition at line 135 of file itkLightObject.cxx.
References itk::Indent::GetNextIndent().
Referenced by itk::operator<<().
|
protectedvirtualinherited |
Define a default print header for all objects.
Definition at line 320 of file itkLightObject.cxx.
|
protectedvirtualinherited |
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.
Chaining method to print an object's instance variables, as well as its superclasses.
Reimplemented from itk::LightObject.
|
protectedvirtualinherited |
Define a default print trailer for all objects.
Definition at line 331 of file itkLightObject.cxx.
|
virtualinherited |
Increase the reference count (mark as used by another object).
Reimplemented in itk::ExceptionObject::ReferenceCountedExceptionData, and itk::Object.
Definition at line 160 of file itkLightObject.cxx.
Referenced by itk::ExceptionObject::ReferenceCountedExceptionData::Register().
|
inlinevirtual |
When the finite difference solver filter has finished using a global data pointer, it passes it to this method, which frees the memory. The solver cannot free the memory because it does not know the type to which the pointer points.
Implements itk::FiniteDifferenceFunction< TImage >.
Definition at line 100 of file itkCurvatureFlowFunction.h.
|
inlineinherited |
Sets the radius of the neighborhood this FiniteDifferenceFunction needs to perform its calculations.
Definition at line 140 of file itkFiniteDifferenceFunction.h.
|
virtualinherited |
Sets the reference count on this object. This is a dangerous method, use it with care.
Sets the reference count (use with care)
Reimplemented in itk::Object.
Definition at line 244 of file itkLightObject.cxx.
|
inlineinherited |
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 151 of file itkFiniteDifferenceFunction.h.
|
inline |
Set the time step parameter
Definition at line 104 of file itkCurvatureFlowFunction.h.
Referenced by itk::CurvatureFlowImageFilter< TInputImage, TOutputImage >::InitializeIteration().
|
virtualinherited |
Decrease the reference count (release by another object).
Reimplemented in itk::ExceptionObject::ReferenceCountedExceptionData, and itk::Object.
Definition at line 192 of file itkLightObject.cxx.
Referenced by itk::LightObject::New(), and itk::ExceptionObject::ReferenceCountedExceptionData::UnRegister().
|
static |
Extract superclass dimension.
Definition at line 70 of file itkCurvatureFlowFunction.h.
|
protectedinherited |
Definition at line 201 of file itkFiniteDifferenceFunction.h.
|
mutableprotectedinherited |
Number of uses of this object by other objects.
Definition at line 141 of file itkLightObject.h.
|
mutableprotectedinherited |
Mutex lock to protect modification to the reference count
Definition at line 144 of file itkLightObject.h.
|
protectedinherited |
Definition at line 202 of file itkFiniteDifferenceFunction.h.
|
private |
Definition at line 142 of file itkCurvatureFlowFunction.h.