ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkDiffeomorphicDemonsRegistrationFilter.h>
Deformably register two images using a diffeomorphic demons algorithm.
This class was contributed by Tom Vercauteren, INRIA & Mauna Kea Technologies, based on a variation of the DemonsRegistrationFilter. The basic modification is to use diffeomorphism exponentials.
See T. Vercauteren, X. Pennec, A. Perchant and N. Ayache, "Non-parametric Diffeomorphic Image Registration with the Demons Algorithm", Proc. of MICCAI 2007.
DiffeomorphicDemonsRegistrationFilter implements the demons deformable algorithm that register two images by computing the deformation field which will map a moving image onto a fixed image.
A deformation field is represented as a image whose pixel type is some vector type with at least N elements, where N is the dimension of the fixed image. The vector type must support element access via operator []. It is assumed that the vector elements behave like floating point scalars.
This class is templated over the fixed image type, moving image type and the deformation field type.
The input fixed and moving images are set via methods SetFixedImage and SetMovingImage respectively. An initial deformation field maybe set via SetInitialDisplacementField or SetInput. If no initial field is set, a zero field is used as the initial condition.
The output deformation field can be obtained via methods GetOutput or GetDisplacementField.
This class make use of the finite difference solver hierarchy. Update for each iteration is computed in DemonsRegistrationFunction.
This implementation was taken from the Insight Journal paper: http://hdl.handle.net/1926/510
Definition at line 78 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef AdderType::Pointer itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::AdderPointer [private] |
Definition at line 211 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef AddImageFilter< DisplacementFieldType, DisplacementFieldType, DisplacementFieldType > itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::AdderType [private] |
Definition at line 204 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef SmartPointer< const Self > itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::ConstPointer |
Reimplemented from itk::PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >.
Definition at line 87 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef ESMDemonsRegistrationFunction< FixedImageType, MovingImageType, DisplacementFieldType > itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::DemonsRegistrationFunctionType |
DemonsRegistrationFilterFunction type.
Definition at line 119 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef Superclass::DisplacementFieldPointer itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::DisplacementFieldPointer |
Reimplemented from itk::PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >.
Definition at line 105 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef Superclass::DisplacementFieldType itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::DisplacementFieldType |
Deformation field type.
Reimplemented from itk::PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >.
Definition at line 104 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef FieldExponentiatorType::Pointer itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::FieldExponentiatorPointer [private] |
Definition at line 207 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef ExponentialDisplacementFieldImageFilter< DisplacementFieldType, DisplacementFieldType > itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::FieldExponentiatorType [private] |
Definition at line 193 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef FieldInterpolatorType::OutputType itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::FieldInterpolatorOutputType [private] |
Definition at line 210 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef FieldInterpolatorType::Pointer itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::FieldInterpolatorPointer [private] |
Definition at line 209 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef VectorLinearInterpolateNearestNeighborExtrapolateImageFunction< DisplacementFieldType, double > itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::FieldInterpolatorType [private] |
Definition at line 200 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef Superclass::FiniteDifferenceFunctionType itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::FiniteDifferenceFunctionType |
FiniteDifferenceFunction type.
Reimplemented from itk::PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >.
Definition at line 112 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef Superclass::FixedImagePointer itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::FixedImagePointer |
Reimplemented from itk::PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >.
Definition at line 97 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef Superclass::FixedImageType itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::FixedImageType |
FixedImage image type.
Reimplemented from itk::PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >.
Definition at line 93 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef DemonsRegistrationFunctionType::GradientType itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::GradientType |
Definition at line 120 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef Superclass::MovingImagePointer itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::MovingImagePointer |
Reimplemented from itk::PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >.
Definition at line 101 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef Superclass::MovingImageType itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::MovingImageType |
MovingImage image type.
Reimplemented from itk::PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >.
Definition at line 100 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef MultiplyByConstantType::Pointer itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::MultiplyByConstantPointer [private] |
Definition at line 206 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef MultiplyImageFilter< DisplacementFieldType, itk::Image<TimeStepType, ImageDimension>, DisplacementFieldType > itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::MultiplyByConstantType [private] |
Exp and composition typedefs
Definition at line 190 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef SmartPointer< Self > itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::Pointer |
Reimplemented from itk::PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >.
Definition at line 86 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef DiffeomorphicDemonsRegistrationFilter itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::Self |
Standard class typedefs.
Reimplemented from itk::PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >.
Definition at line 84 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField > itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::Superclass |
Reimplemented from itk::PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >.
Definition at line 85 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef FiniteDifferenceFunctionType::TimeStepType itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::TimeStepType |
Take timestep type from the FiniteDifferenceFunction.
Reimplemented from itk::DenseFiniteDifferenceImageFilter< TDisplacementField, TDisplacementField >.
Definition at line 115 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef VectorWarperType::Pointer itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::VectorWarperPointer [private] |
Definition at line 208 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef WarpVectorImageFilter< DisplacementFieldType, DisplacementFieldType, DisplacementFieldType > itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::VectorWarperType [private] |
Definition at line 197 of file itkDiffeomorphicDemonsRegistrationFilter.h.
itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::DiffeomorphicDemonsRegistrationFilter | ( | ) | [protected] |
itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::~DiffeomorphicDemonsRegistrationFilter | ( | ) | [inline, protected] |
Definition at line 161 of file itkDiffeomorphicDemonsRegistrationFilter.h.
itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::DiffeomorphicDemonsRegistrationFilter | ( | const Self & | ) | [private] |
virtual void itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::AllocateUpdateBuffer | ( | ) | [protected, virtual] |
This method allocates storage in m_UpdateBuffer. It is called from FiniteDifferenceFilter::GenerateData().
Reimplemented from itk::DenseFiniteDifferenceImageFilter< TDisplacementField, TDisplacementField >.
virtual void itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::ApplyUpdate | ( | const TimeStepType & | dt | ) | [protected, virtual] |
Apply update.
virtual::itk::LightObject::Pointer itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::CreateAnother | ( | void | ) | 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::PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >.
DemonsRegistrationFunctionType* itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::DownCastDifferenceFunctionType | ( | ) | [private] |
Downcast the DifferenceFunction using a dynamic_cast to ensure that it is of the correct type. this method will throw an exception if the function is not of the expected type.
const DemonsRegistrationFunctionType* itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::DownCastDifferenceFunctionType | ( | ) | const [private] |
virtual double itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::GetIntensityDifferenceThreshold | ( | ) | const [virtual] |
virtual double itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::GetMaximumUpdateStepLength | ( | ) | const [virtual] |
virtual double itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::GetMetric | ( | ) | const [virtual] |
Get the metric value. The metric value is the mean square difference in intensity between the fixed image and transforming moving image computed over the the overlapping region between the two images. This value is calculated for the current iteration
virtual const char* itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >.
virtual const double& itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::GetRMSChange | ( | ) | const [virtual] |
virtual bool itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::GetUseFirstOrderExp | ( | ) | const [virtual] |
Use a first-order approximation of the exponential. This amounts to using an update rule of the type s <- s o (Id + u) instead of s <- s o exp(u)
virtual GradientType itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::GetUseGradientType | ( | ) | const [virtual] |
virtual void itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::InitializeIteration | ( | ) | [protected, virtual] |
Initialize the state of filter and equation before each iteration.
Reimplemented from itk::PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >.
static Pointer itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::New | ( | ) | [static] |
Method for creation through the object factory.
Reimplemented from itk::PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >.
void itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::operator= | ( | const Self & | ) | [private] |
PushBackInput(), PushFronInput() in the public section force the input to be the type expected by an ImageToImageFilter. However, these methods end of "hiding" the versions from the superclass (ProcessObject) whose arguments are DataObjects. Here, we re-expose the versions from ProcessObject to avoid warnings about hiding methods from the superclass.
Reimplemented from itk::PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >.
void itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected, virtual] |
Set/Get the desired limits of the Gaussian kernel width.
Reimplemented from itk::PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >.
virtual void itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::SetIntensityDifferenceThreshold | ( | double | ) | [virtual] |
Set/Get the threshold below which the absolute difference of intensity yields a match. When the intensities match between a moving and fixed image pixel, the update vector (for that iteration) will be the zero vector. Default is 0.001.
virtual void itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::SetMaximumUpdateStepLength | ( | double | ) | [virtual] |
Set/Get the maximum length in terms of pixels of the vectors in the update buffer.
virtual void itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::SetUseFirstOrderExp | ( | bool | _arg | ) | [virtual] |
Use a first-order approximation of the exponential. This amounts to using an update rule of the type s <- s o (Id + u) instead of s <- s o exp(u)
virtual void itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::SetUseGradientType | ( | GradientType | gtype | ) | [virtual] |
virtual void itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::UseFirstOrderExpOff | ( | ) | [virtual] |
Use a first-order approximation of the exponential. This amounts to using an update rule of the type s <- s o (Id + u) instead of s <- s o exp(u)
virtual void itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::UseFirstOrderExpOn | ( | ) | [virtual] |
Use a first-order approximation of the exponential. This amounts to using an update rule of the type s <- s o (Id + u) instead of s <- s o exp(u)
const unsigned int itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::ImageDimension = FixedImageType::ImageDimension [static] |
Inherit some enums and typedefs from the superclass.
Reimplemented from itk::PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >.
Definition at line 123 of file itkDiffeomorphicDemonsRegistrationFilter.h.
AdderPointer itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::m_Adder [private] |
Definition at line 216 of file itkDiffeomorphicDemonsRegistrationFilter.h.
FieldExponentiatorPointer itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::m_Exponentiator [private] |
Definition at line 214 of file itkDiffeomorphicDemonsRegistrationFilter.h.
MultiplyByConstantPointer itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::m_Multiplier [private] |
Definition at line 213 of file itkDiffeomorphicDemonsRegistrationFilter.h.
bool itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::m_UseFirstOrderExp [private] |
Definition at line 217 of file itkDiffeomorphicDemonsRegistrationFilter.h.
VectorWarperPointer itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::m_Warper [private] |
Definition at line 215 of file itkDiffeomorphicDemonsRegistrationFilter.h.