ITK
4.12.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: https://hdl.handle.net/1926/510
Definition at line 78 of file itkDiffeomorphicDemonsRegistrationFilter.h.
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef ESMDemonsRegistrationFunction < FixedImageType, MovingImageType, DisplacementFieldType > | DemonsRegistrationFunctionType |
typedef Superclass::DisplacementFieldPointer | DisplacementFieldPointer |
typedef Superclass::DisplacementFieldType | DisplacementFieldType |
typedef Superclass::FiniteDifferenceFunctionType | FiniteDifferenceFunctionType |
typedef Superclass::FixedImagePointer | FixedImagePointer |
typedef Superclass::FixedImageType | FixedImageType |
typedef DemonsRegistrationFunctionType::GradientType | GradientType |
typedef Superclass::MovingImagePointer | MovingImagePointer |
typedef Superclass::MovingImageType | MovingImageType |
typedef SmartPointer< Self > | Pointer |
typedef DiffeomorphicDemonsRegistrationFilter | Self |
typedef PDEDeformableRegistrationFilter < TFixedImage, TMovingImage, TDisplacementField > | Superclass |
typedef FiniteDifferenceFunctionType::TimeStepType | TimeStepType |
Public Types inherited from itk::PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef DisplacementFieldType::Pointer | DisplacementFieldPointer |
typedef TDisplacementField | DisplacementFieldType |
typedef Superclass::FiniteDifferenceFunctionType | FiniteDifferenceFunctionType |
typedef FixedImageType::ConstPointer | FixedImageConstPointer |
typedef FixedImageType::Pointer | FixedImagePointer |
typedef TFixedImage | FixedImageType |
typedef MovingImageType::ConstPointer | MovingImageConstPointer |
typedef MovingImageType::Pointer | MovingImagePointer |
typedef TMovingImage | MovingImageType |
typedef Superclass::OutputImageType | OutputImageType |
typedef PDEDeformableRegistrationFunction < FixedImageType, MovingImageType, DisplacementFieldType > | PDEDeformableRegistrationFunctionType |
typedef SmartPointer< Self > | Pointer |
typedef PDEDeformableRegistrationFilter | Self |
typedef FixedArray< double, ImageDimension > | StandardDeviationsType |
typedef DenseFiniteDifferenceImageFilter < TDisplacementField, TDisplacementField > | Superclass |
Public Types inherited from itk::DenseFiniteDifferenceImageFilter< TDisplacementField, TDisplacementField > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::FiniteDifferenceFunctionType | FiniteDifferenceFunctionType |
typedef Superclass::InputImageType | InputImageType |
typedef Superclass::OutputImageType | OutputImageType |
typedef Superclass::PixelType | PixelType |
typedef SmartPointer< Self > | Pointer |
typedef DenseFiniteDifferenceImageFilter | Self |
typedef FiniteDifferenceImageFilter < TDisplacementField, TDisplacementField > | Superclass |
typedef Superclass::TimeStepType | TimeStepType |
typedef OutputImageType | UpdateBufferType |
Public Types inherited from itk::FiniteDifferenceImageFilter< TDisplacementField, TDisplacementField > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef FiniteDifferenceFunction < TDisplacementField > | FiniteDifferenceFunctionType |
typedef TDisplacementField | InputImageType |
typedef TDisplacementField::PixelType | InputPixelType |
typedef NumericTraits < InputPixelType >::ValueType | InputPixelValueType |
typedef FiniteDifferenceFunctionType::NeighborhoodScalesType | NeighborhoodScalesType |
typedef TDisplacementField | OutputImageType |
typedef TDisplacementField::PixelType | OutputPixelType |
typedef NumericTraits < OutputPixelType >::ValueType | OutputPixelValueType |
typedef OutputPixelType | PixelType |
typedef SmartPointer< Self > | Pointer |
typedef FiniteDifferenceFunctionType::RadiusType | RadiusType |
typedef FiniteDifferenceImageFilter | Self |
typedef InPlaceImageFilter < TDisplacementField, TDisplacementField > | Superclass |
typedef FiniteDifferenceFunctionType::TimeStepType | TimeStepType |
Public Types inherited from itk::InPlaceImageFilter< TDisplacementField, TDisplacementField > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef InputImageType::ConstPointer | InputImageConstPointer |
typedef InputImageType::PixelType | InputImagePixelType |
typedef InputImageType::Pointer | InputImagePointer |
typedef InputImageType::RegionType | InputImageRegionType |
typedef TDisplacementField | InputImageType |
typedef Superclass::OutputImagePixelType | OutputImagePixelType |
typedef Superclass::OutputImagePointer | OutputImagePointer |
typedef Superclass::OutputImageRegionType | OutputImageRegionType |
typedef Superclass::OutputImageType | OutputImageType |
typedef SmartPointer< Self > | Pointer |
typedef InPlaceImageFilter | Self |
typedef ImageToImageFilter < TDisplacementField, TDisplacementField > | Superclass |
Public Types inherited from itk::ImageToImageFilter< TDisplacementField, TDisplacementField > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef InputImageType::ConstPointer | InputImageConstPointer |
typedef InputImageType::PixelType | InputImagePixelType |
typedef InputImageType::Pointer | InputImagePointer |
typedef InputImageType::RegionType | InputImageRegionType |
typedef TDisplacementField | InputImageType |
typedef Superclass::OutputImagePixelType | OutputImagePixelType |
typedef Superclass::OutputImageRegionType | OutputImageRegionType |
typedef SmartPointer< Self > | Pointer |
typedef ImageToImageFilter | Self |
typedef ImageSource < TDisplacementField > | Superclass |
Public Types inherited from itk::ImageSource< TDisplacementField > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::DataObjectIdentifierType | DataObjectIdentifierType |
typedef DataObject::Pointer | DataObjectPointer |
typedef Superclass::DataObjectPointerArraySizeType | DataObjectPointerArraySizeType |
typedef OutputImageType::PixelType | OutputImagePixelType |
typedef OutputImageType::Pointer | OutputImagePointer |
typedef OutputImageType::RegionType | OutputImageRegionType |
typedef TDisplacementField | OutputImageType |
typedef SmartPointer< Self > | Pointer |
typedef ImageSource | Self |
typedef ProcessObject | Superclass |
Public Types inherited from itk::ProcessObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef DataObject::DataObjectIdentifierType | DataObjectIdentifierType |
typedef DataObject::Pointer | DataObjectPointer |
typedef std::vector < DataObjectPointer > | DataObjectPointerArray |
typedef DataObjectPointerArray::size_type | DataObjectPointerArraySizeType |
typedef std::vector < DataObjectIdentifierType > | NameArray |
typedef SmartPointer< Self > | Pointer |
typedef ProcessObject | Self |
typedef Object | Superclass |
Public Types inherited from itk::Object | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef Object | Self |
typedef LightObject | Superclass |
Public Types inherited from itk::LightObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef LightObject | Self |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField > | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool flag) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Static Public Attributes | |
static const unsigned int | ImageDimension = FixedImageType::ImageDimension |
Static Public Attributes inherited from itk::PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField > | |
static const unsigned int | ImageDimension = Superclass::ImageDimension |
Static Public Attributes inherited from itk::DenseFiniteDifferenceImageFilter< TDisplacementField, TDisplacementField > | |
static const unsigned int | ImageDimension |
Static Public Attributes inherited from itk::FiniteDifferenceImageFilter< TDisplacementField, TDisplacementField > | |
static const unsigned int | ImageDimension |
Static Public Attributes inherited from itk::InPlaceImageFilter< TDisplacementField, TDisplacementField > | |
static const unsigned int | InputImageDimension |
static const unsigned int | OutputImageDimension |
Static Public Attributes inherited from itk::ImageToImageFilter< TDisplacementField, TDisplacementField > | |
static const unsigned int | InputImageDimension |
static const unsigned int | OutputImageDimension |
Static Public Attributes inherited from itk::ImageSource< TDisplacementField > | |
static const unsigned int | OutputImageDimension |
Private Member Functions | |
DemonsRegistrationFunctionType * | DownCastDifferenceFunctionType () |
const DemonsRegistrationFunctionType * | DownCastDifferenceFunctionType () const |
Private Attributes | |
AdderPointer | m_Adder |
FieldExponentiatorPointer | m_Exponentiator |
MultiplyByConstantPointer | m_Multiplier |
bool | m_UseFirstOrderExp |
VectorWarperPointer | m_Warper |
|
private |
Definition at line 207 of file itkDiffeomorphicDemonsRegistrationFilter.h.
|
private |
Definition at line 200 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef SmartPointer< const Self > itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::ConstPointer |
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 |
Definition at line 105 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef Superclass::DisplacementFieldType itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::DisplacementFieldType |
Deformation field type.
Definition at line 104 of file itkDiffeomorphicDemonsRegistrationFilter.h.
|
private |
Definition at line 203 of file itkDiffeomorphicDemonsRegistrationFilter.h.
|
private |
Definition at line 189 of file itkDiffeomorphicDemonsRegistrationFilter.h.
|
private |
Definition at line 206 of file itkDiffeomorphicDemonsRegistrationFilter.h.
|
private |
Definition at line 205 of file itkDiffeomorphicDemonsRegistrationFilter.h.
|
private |
Definition at line 196 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef Superclass::FiniteDifferenceFunctionType itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::FiniteDifferenceFunctionType |
FiniteDifferenceFunction type.
Definition at line 112 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef Superclass::FixedImagePointer itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::FixedImagePointer |
Definition at line 97 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef Superclass::FixedImageType itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::FixedImageType |
FixedImage image type.
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 |
Definition at line 101 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef Superclass::MovingImageType itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::MovingImageType |
MovingImage image type.
Definition at line 100 of file itkDiffeomorphicDemonsRegistrationFilter.h.
|
private |
Definition at line 202 of file itkDiffeomorphicDemonsRegistrationFilter.h.
|
private |
Exp and composition typedefs
Definition at line 186 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef SmartPointer< Self > itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::Pointer |
Definition at line 86 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef DiffeomorphicDemonsRegistrationFilter itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::Self |
Standard class typedefs.
Definition at line 84 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField > itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::Superclass |
Definition at line 85 of file itkDiffeomorphicDemonsRegistrationFilter.h.
typedef FiniteDifferenceFunctionType::TimeStepType itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >::TimeStepType |
Take timestep type from the FiniteDifferenceFunction.
Definition at line 115 of file itkDiffeomorphicDemonsRegistrationFilter.h.
|
private |
Definition at line 204 of file itkDiffeomorphicDemonsRegistrationFilter.h.
|
private |
Definition at line 193 of file itkDiffeomorphicDemonsRegistrationFilter.h.
|
protected |
|
inlineprotected |
Definition at line 161 of file itkDiffeomorphicDemonsRegistrationFilter.h.
|
overrideprotectedvirtual |
This method allocates storage in m_UpdateBuffer. It is called from FiniteDifferenceFilter::GenerateData().
Reimplemented from itk::DenseFiniteDifferenceImageFilter< TDisplacementField, TDisplacementField >.
|
overrideprotectedvirtual |
Apply update.
|
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 >.
|
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.
|
private |
|
virtual |
|
virtual |
|
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 |
Run-time type information (and related methods).
Reimplemented from itk::PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >.
|
overridevirtual |
Set/Get the root mean squared change of the previous iteration. May not be used by all solvers.
Reimplemented from itk::FiniteDifferenceImageFilter< TDisplacementField, TDisplacementField >.
|
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 |
|
overrideprotectedvirtual |
Initialize the state of filter and equation before each iteration.
Reimplemented from itk::PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >.
|
static |
Method for creation through the object factory.
|
overrideprotectedvirtual |
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::PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >.
|
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 |
Set/Get the maximum length in terms of pixels of the vectors in the update buffer.
|
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 |
|
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 |
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)
|
static |
Definition at line 123 of file itkDiffeomorphicDemonsRegistrationFilter.h.
|
private |
Definition at line 212 of file itkDiffeomorphicDemonsRegistrationFilter.h.
|
private |
Definition at line 210 of file itkDiffeomorphicDemonsRegistrationFilter.h.
|
private |
Definition at line 209 of file itkDiffeomorphicDemonsRegistrationFilter.h.
|
private |
Definition at line 213 of file itkDiffeomorphicDemonsRegistrationFilter.h.
|
private |
Definition at line 211 of file itkDiffeomorphicDemonsRegistrationFilter.h.