#include <itkFiniteDifferenceFunction.h>
Inheritance diagram for itk::FiniteDifferenceFunction< TImageType >:
Public Types | |
typedef FiniteDifferenceFunction | Self |
typedef LightObject | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
typedef TImageType | ImageType |
typedef ImageType::PixelType | PixelType |
typedef double | TimeStepType |
typedef ZeroFluxNeumannBoundaryCondition< ImageType > | DefaultBoundaryConditionType |
typedef ConstNeighborhoodIterator< TImageType >::RadiusType | RadiusType |
typedef ConstNeighborhoodIterator< TImageType, DefaultBoundaryConditionType > | NeighborhoodType |
typedef Vector< float, itkGetStaticConstMacro(ImageDimension) | FloatOffsetType ) |
Public Member Functions | |
virtual const char * | GetClassName () const |
itkStaticConstMacro (ImageDimension, unsigned int, ImageType::ImageDimension) | |
virtual void | InitializeIteration () |
virtual PixelType | ComputeUpdate (const NeighborhoodType &neighborhood, void *globalData, const FloatOffsetType &offset=FloatOffsetType(0.0))=0 |
void | SetRadius (const RadiusType &r) |
const RadiusType & | GetRadius () const |
virtual TimeStepType | ComputeGlobalTimeStep (void *GlobalData) const=0 |
virtual void * | GetGlobalDataPointer () const=0 |
virtual void | ReleaseGlobalDataPointer (void *GlobalData) const=0 |
Protected Member Functions | |
FiniteDifferenceFunction () | |
~FiniteDifferenceFunction () | |
void | PrintSelf (std::ostream &os, Indent indent) const |
Protected Attributes | |
RadiusType | m_Radius |
These functions calculate the incremental change at a pixel in the solution image from one iteration of the p.d.e. solver to the next.
Definition at line 64 of file itkFiniteDifferenceFunction.h.
|
|
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. |
|
|
|
|
|
|
|
|
|
|
Definition at line 168 of file itkFiniteDifferenceFunction.h. |
|
Definition at line 174 of file itkFiniteDifferenceFunction.h. |
|
|
|
|
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. Implemented in itk::CurvatureFlowFunction< TImage >, itk::DemonsRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >, itk::MeanSquareRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >, itk::MIRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >, itk::NCCRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >, itk::ShapePriorSegmentationLevelSetFunction< TImageType, TFeatureImageType >, itk::AnisotropicDiffusionFunction< TImage >, itk::NormalVectorFunctionBase< TSparseImageType >, and itk::LevelSetFunction< TImageType >. |
|
Returns the radius of the neighborhood this FiniteDifferenceFunction needs to perform its calculations. Definition at line 140 of file itkFiniteDifferenceFunction.h. |
|
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::DemonsRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >, itk::MeanSquareRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >, itk::MIRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >, itk::NCCRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >, itk::CurvatureNDAnisotropicDiffusionFunction< TImage >, itk::GradientNDAnisotropicDiffusionFunction< TImage >, itk::VectorCurvatureNDAnisotropicDiffusionFunction< TImage >, and itk::VectorGradientNDAnisotropicDiffusionFunction< TImage >. Definition at line 113 of file itkFiniteDifferenceFunction.h. |
|
Save image dimension. |
|
|
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. Implemented in itk::CurvatureFlowFunction< TImage >, itk::DemonsRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >, itk::MeanSquareRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >, itk::MIRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >, itk::NCCRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >, itk::ShapePriorSegmentationLevelSetFunction< TImageType, TFeatureImageType >, itk::AnisotropicDiffusionFunction< TImage >, itk::NormalVectorFunctionBase< TSparseImageType >, and itk::LevelSetFunction< TImageType >. |
|
Sets the radius of the neighborhood this FiniteDifferenceFunction needs to perform its calculations. Definition at line 135 of file itkFiniteDifferenceFunction.h. |
|
Definition at line 177 of file itkFiniteDifferenceFunction.h. |