ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkMultiResolutionPDEDeformableRegistration.h>
Framework for performing multi-resolution PDE deformable registration.
MultiResolutionPDEDeformableRegistration provides a generic framework to peform multi-resolution deformable registration.
At each resolution level a PDEDeformableRegistrationFilter is used to register two images by computing the deformation field which will map a moving image onto a fixed image.
A deformation field is represented as an 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.
The internal PDEDeformationRegistrationFilter can be set using SetRegistrationFilter. By default a DemonsRegistrationFilter is used.
The input fixed and moving images are set via methods SetFixedImage and SetMovingImage respectively. An initial deformation field maybe set via SetInitialDisplacementField if is matches the characteristics of the coarsest pyramid level. If no such assumption can be made (e.g. the deformation field has the same characteristics as the input images), an initial deformation field can still be set via SetArbitraryInitialDisplacementField or SetInput. The filter will then take care of mathching the coarsest level characteristics. If no initial field is set a zero field is used as the initial condition.
MultiResolutionPyramidImageFilters are used to downsample the fixed and moving images. A VectorExpandImageFilter is used to upsample the deformation as we move from a coarse to fine solution.
This class is templated over the fixed image type, the moving image type, and the Deformation Field type.
The current implementation of this class does not support streaming.
Definition at line 81 of file itkMultiResolutionPDEDeformableRegistration.h.
typedef SmartPointer< const Self > itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::ConstPointer |
Reimplemented from itk::ImageToImageFilter< TDisplacementField, TDisplacementField >.
Definition at line 91 of file itkMultiResolutionPDEDeformableRegistration.h.
typedef DemonsRegistrationFilter< FloatImageType, FloatImageType, DisplacementFieldType > itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::DefaultRegistrationType |
The default registration type.
Definition at line 129 of file itkMultiResolutionPDEDeformableRegistration.h.
typedef DisplacementFieldType::Pointer itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::DisplacementFieldPointer |
Definition at line 112 of file itkMultiResolutionPDEDeformableRegistration.h.
typedef TDisplacementField itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::DisplacementFieldType |
Deformation field image type.
Definition at line 111 of file itkMultiResolutionPDEDeformableRegistration.h.
typedef FieldExpanderType::Pointer itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::FieldExpanderPointer |
Definition at line 141 of file itkMultiResolutionPDEDeformableRegistration.h.
typedef VectorResampleImageFilter< DisplacementFieldType, DisplacementFieldType > itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::FieldExpanderType |
The deformation field expander type.
Definition at line 140 of file itkMultiResolutionPDEDeformableRegistration.h.
typedef FixedImageType::ConstPointer itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::FixedImageConstPointer |
Definition at line 103 of file itkMultiResolutionPDEDeformableRegistration.h.
typedef FixedImageType::Pointer itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::FixedImagePointer |
Definition at line 102 of file itkMultiResolutionPDEDeformableRegistration.h.
typedef FixedImagePyramidType::Pointer itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::FixedImagePyramidPointer |
Definition at line 133 of file itkMultiResolutionPDEDeformableRegistration.h.
typedef MultiResolutionPyramidImageFilter< FixedImageType, FloatImageType > itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::FixedImagePyramidType |
The fixed multi-resolution image pyramid type.
Definition at line 132 of file itkMultiResolutionPDEDeformableRegistration.h.
typedef TFixedImage itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::FixedImageType |
Fixed image type.
Definition at line 98 of file itkMultiResolutionPDEDeformableRegistration.h.
typedef Image< TRealType, itkGetStaticConstMacro(ImageDimension) > itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::FloatImageType |
Internal float image type.
Definition at line 122 of file itkMultiResolutionPDEDeformableRegistration.h.
typedef MovingImageType::ConstPointer itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::MovingImageConstPointer |
Definition at line 108 of file itkMultiResolutionPDEDeformableRegistration.h.
typedef MovingImageType::Pointer itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::MovingImagePointer |
Definition at line 107 of file itkMultiResolutionPDEDeformableRegistration.h.
typedef MovingImagePyramidType::Pointer itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::MovingImagePyramidPointer |
Definition at line 137 of file itkMultiResolutionPDEDeformableRegistration.h.
typedef MultiResolutionPyramidImageFilter< MovingImageType, FloatImageType > itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::MovingImagePyramidType |
The moving multi-resolution image pyramid type.
Definition at line 136 of file itkMultiResolutionPDEDeformableRegistration.h.
typedef TMovingImage itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::MovingImageType |
Moving image type.
Definition at line 106 of file itkMultiResolutionPDEDeformableRegistration.h.
typedef Array< unsigned int > itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::NumberOfIterationsType |
Definition at line 143 of file itkMultiResolutionPDEDeformableRegistration.h.
typedef SmartPointer< Self > itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::Pointer |
Reimplemented from itk::ImageToImageFilter< TDisplacementField, TDisplacementField >.
Definition at line 90 of file itkMultiResolutionPDEDeformableRegistration.h.
typedef RegistrationType::Pointer itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::RegistrationPointer |
Definition at line 126 of file itkMultiResolutionPDEDeformableRegistration.h.
typedef PDEDeformableRegistrationFilter< FloatImageType, FloatImageType, DisplacementFieldType > itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::RegistrationType |
The internal registration type.
Definition at line 125 of file itkMultiResolutionPDEDeformableRegistration.h.
typedef MultiResolutionPDEDeformableRegistration itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::Self |
Standard class typedefs
Reimplemented from itk::ImageToImageFilter< TDisplacementField, TDisplacementField >.
Definition at line 87 of file itkMultiResolutionPDEDeformableRegistration.h.
typedef ImageToImageFilter< TDisplacementField, TDisplacementField > itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::Superclass |
Reimplemented from itk::ImageToImageFilter< TDisplacementField, TDisplacementField >.
Definition at line 89 of file itkMultiResolutionPDEDeformableRegistration.h.
itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::MultiResolutionPDEDeformableRegistration | ( | ) | [protected] |
itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::MultiResolutionPDEDeformableRegistration | ( | const Self & | ) | [private] |
virtual::itk::LightObject::Pointer itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::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::Object.
virtual void itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::EnlargeOutputRequestedRegion | ( | DataObject * | ptr | ) | [protected, virtual] |
The current implementation of this class does not supprot streaming. As such it produces the output for the largest possible region.
Reimplemented from itk::ProcessObject.
virtual void itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::GenerateData | ( | ) | [protected, virtual] |
Generate output data by performing the registration at each resolution level.
Reimplemented from itk::ImageSource< TDisplacementField >.
virtual void itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::GenerateInputRequestedRegion | ( | ) | [protected, virtual] |
The current implementation of this class does not support streaming. As such it requires the largest possible region for the moving, fixed and input deformation field.
Reimplemented from itk::ImageToImageFilter< TDisplacementField, TDisplacementField >.
virtual void itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::GenerateOutputInformation | ( | ) | [protected, virtual] |
By default, the output deformation field has the same spacing, origin and LargestPossibleRegion as the input/initial deformation field.
If the initial deformation field is not set, the output information is copied from the fixed image.
Reimplemented from itk::ProcessObject.
virtual const unsigned int& itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::GetCurrentLevel | ( | ) | [virtual] |
Get the current resolution level being processed.
const DisplacementFieldType* itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::GetDisplacementField | ( | void | ) | [inline] |
Get output deformation field.
Definition at line 173 of file itkMultiResolutionPDEDeformableRegistration.h.
virtual FieldExpanderType* itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::GetFieldExpander | ( | ) | [virtual] |
Get the moving image pyramid.
const FixedImageType* itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::GetFixedImage | ( | void | ) | const |
Get the fixed image.
virtual FixedImagePyramidType* itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::GetFixedImagePyramid | ( | ) | [virtual] |
Get the fixed image pyramid.
const MovingImageType* itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::GetMovingImage | ( | void | ) | const |
Get the moving image.
virtual MovingImagePyramidType* itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::GetMovingImagePyramid | ( | ) | [virtual] |
Get the moving image pyramid.
virtual const char* itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::ImageToImageFilter< TDisplacementField, TDisplacementField >.
virtual const NumberOfIterationsType& itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::GetNumberOfIterations | ( | ) | [virtual] |
Get number of iterations per multi-resolution levels.
virtual const unsigned int& itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::GetNumberOfLevels | ( | ) | [virtual] |
Get number of multi-resolution levels.
virtual std::vector< SmartPointer< DataObject > >::size_type itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::GetNumberOfValidRequiredInputs | ( | ) | const [virtual] |
Get the number of valid inputs. For MultiResolutionPDEDeformableRegistration, this checks whether the fixed and moving images have been set. While MultiResolutionPDEDeformableRegistration can take a third input as an initial deformation field, this input is not a required input.
Reimplemented from itk::ProcessObject.
virtual RegistrationType* itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::GetRegistrationFilter | ( | ) | [virtual] |
Get the internal registrator.
virtual bool itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::Halt | ( | ) | [protected, virtual] |
This method returns true to indicate that the registration should terminate at the current resolution level.
static Pointer itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::New | ( | ) | [static] |
Method for creation through the object factory.
Reimplemented from itk::Object.
void itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::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::ImageToImageFilter< TDisplacementField, TDisplacementField >.
void itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected, virtual] |
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::ImageToImageFilter< TDisplacementField, TDisplacementField >.
virtual void itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::SetArbitraryInitialDisplacementField | ( | DisplacementFieldType * | ptr | ) | [inline, virtual] |
Set initial deformation field. No assumption is made on the input. It will therefore be smoothed and resampled to match the images characteristics at the coarsest level of the pyramid.
Definition at line 167 of file itkMultiResolutionPDEDeformableRegistration.h.
virtual void itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::SetFieldExpander | ( | FieldExpanderType * | _arg | ) | [virtual] |
Set the moving image pyramid.
virtual void itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::SetFixedImage | ( | const FixedImageType * | ptr | ) | [virtual] |
Set the fixed image.
virtual void itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::SetFixedImagePyramid | ( | FixedImagePyramidType * | _arg | ) | [virtual] |
Set the fixed image pyramid.
virtual void itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::SetInitialDisplacementField | ( | DisplacementFieldType * | ptr | ) | [inline, virtual] |
Set initial deformation field to be used as is (no smoothing, no subsampling at the coarsest level of the pyramid.
Definition at line 159 of file itkMultiResolutionPDEDeformableRegistration.h.
virtual void itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::SetMovingImage | ( | const MovingImageType * | ptr | ) | [virtual] |
Set the moving image.
virtual void itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::SetMovingImagePyramid | ( | MovingImagePyramidType * | _arg | ) | [virtual] |
Set the moving image pyramid.
virtual void itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::SetNumberOfIterations | ( | NumberOfIterationsType | _arg | ) | [virtual] |
Set number of iterations per multi-resolution levels.
virtual void itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::SetNumberOfIterations | ( | unsigned int | data[] | ) | [virtual] |
Set number of iterations per multi-resolution levels.
virtual void itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::SetNumberOfLevels | ( | unsigned int | num | ) | [virtual] |
Set number of multi-resolution levels.
virtual void itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::SetRegistrationFilter | ( | RegistrationType * | _arg | ) | [virtual] |
Set the internal registrator.
virtual void itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::StopRegistration | ( | ) | [virtual] |
Stop the registration after the current iteration.
virtual void itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::VerifyInputInformation | ( | ) | [inline, protected, virtual] |
Override VeriyInputInformation() since this filter's inputs do not need to occoupy the same physical space.
Reimplemented from itk::ImageToImageFilter< TDisplacementField, TDisplacementField >.
Definition at line 283 of file itkMultiResolutionPDEDeformableRegistration.h.
const unsigned int itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::ImageDimension = FixedImageType::ImageDimension [static] |
ImageDimension.
Definition at line 119 of file itkMultiResolutionPDEDeformableRegistration.h.
unsigned int itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::m_CurrentLevel [private] |
Definition at line 299 of file itkMultiResolutionPDEDeformableRegistration.h.
FieldExpanderPointer itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::m_FieldExpander [private] |
Definition at line 295 of file itkMultiResolutionPDEDeformableRegistration.h.
FixedImagePyramidPointer itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::m_FixedImagePyramid [private] |
Definition at line 293 of file itkMultiResolutionPDEDeformableRegistration.h.
DisplacementFieldPointer itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::m_InitialDisplacementField [private] |
Definition at line 296 of file itkMultiResolutionPDEDeformableRegistration.h.
MovingImagePyramidPointer itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::m_MovingImagePyramid [private] |
Definition at line 294 of file itkMultiResolutionPDEDeformableRegistration.h.
NumberOfIterationsType itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::m_NumberOfIterations [private] |
Definition at line 300 of file itkMultiResolutionPDEDeformableRegistration.h.
unsigned int itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::m_NumberOfLevels [private] |
Definition at line 298 of file itkMultiResolutionPDEDeformableRegistration.h.
RegistrationPointer itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::m_RegistrationFilter [private] |
Definition at line 292 of file itkMultiResolutionPDEDeformableRegistration.h.
bool itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDisplacementField, TRealType >::m_StopRegistrationFlag [private] |
Flag to indicate user stop registration request.
Definition at line 303 of file itkMultiResolutionPDEDeformableRegistration.h.