#include <itkTranslationTransformInitializer.h>
TranslationTransformInitializer is a helper class intended to initialize the translation of a TranslationTransforms.
This class is connected to the fixed image, moving image and transform involved in the registration. Two modes of operation are possible:
In the first mode, the geometrical centers of the images are computed. The distance between them is set as an initial translation. This mode basically assumes that the anatomical objects to be registered are centered in their respective images. Hence the best initial guess for the registration is the one that superimposes those two centers.
In the second mode, the moments of gray level values are computed for both images. The vector between the two centers of mass is passes as the initial translation to the transform. This second approach assumes that the moments of the anatomical objects are similar for both images and hence the best initial guess for registration is to superimpose both mass centers. Note that this assumption will probably not hold in multi-modality registration.
Definition at line 61 of file itkTranslationTransformInitializer.h.
Public Types | |
using | ConstPointer = SmartPointer<const Self> |
using | FixedImageCalculatorPointer = typename FixedImageCalculatorType::Pointer |
using | FixedImageCalculatorType = ImageMomentsCalculator<FixedImageType> |
using | FixedImagePointer = typename FixedImageType::ConstPointer |
using | FixedImageType = TFixedImage |
using | FixedMaskPointer = typename FixedMaskType::ConstPointer |
using | FixedMaskType = Image<unsigned char, InputSpaceDimension> |
using | InputPointType = typename TransformType::InputPointType |
using | MovingImageCalculatorPointer = typename MovingImageCalculatorType::Pointer |
using | MovingImageCalculatorType = ImageMomentsCalculator<MovingImageType> |
using | MovingImagePointer = typename MovingImageType::ConstPointer |
using | MovingImageType = TMovingImage |
using | MovingMaskPointer = typename MovingMaskType::ConstPointer |
using | MovingMaskType = Image<unsigned char, OutputSpaceDimension> |
using | OutputVectorType = typename TransformType::OutputVectorType |
using | Pointer = SmartPointer<Self> |
using | Self = TranslationTransformInitializer |
using | Superclass = Object |
using | TransformPointer = typename TransformType::Pointer |
using | TransformType = TTransform |
Public Member Functions | |
void | GeometryOn () |
virtual const char * | GetClassName () const |
virtual const FixedImageCalculatorType * | GetFixedCalculator () |
virtual const MovingImageCalculatorType * | GetMovingCalculator () |
virtual void | InitializeTransform () const |
ITK_DISALLOW_COPY_AND_MOVE (TranslationTransformInitializer) | |
itkStaticConstMacro (InputSpaceDimension, unsigned int, TransformType::InputSpaceDimension) | |
itkStaticConstMacro (OutputSpaceDimension, unsigned int, TransformType::OutputSpaceDimension) | |
itkStaticConstMacro (SpaceDimension, unsigned int, TransformType::SpaceDimension) | |
void | MomentsOn () |
virtual void | SetFixedImage (const FixedImageType *_arg) |
virtual void | SetFixedMask (const FixedMaskType *_arg) |
virtual void | SetMovingImage (const MovingImageType *_arg) |
virtual void | SetMovingMask (const MovingMaskType *_arg) |
virtual void | SetTransform (TransformType *_arg) |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
TranslationTransformInitializer () | |
~TranslationTransformInitializer () override=default | |
using itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::ConstPointer = SmartPointer<const Self> |
Definition at line 70 of file itkTranslationTransformInitializer.h.
using itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::FixedImageCalculatorPointer = typename FixedImageCalculatorType::Pointer |
Definition at line 101 of file itkTranslationTransformInitializer.h.
using itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::FixedImageCalculatorType = ImageMomentsCalculator<FixedImageType> |
Moment calculators
Definition at line 98 of file itkTranslationTransformInitializer.h.
using itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::FixedImagePointer = typename FixedImageType::ConstPointer |
Definition at line 90 of file itkTranslationTransformInitializer.h.
using itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::FixedImageType = TFixedImage |
Image Types to use in the initialization of the transform
Definition at line 88 of file itkTranslationTransformInitializer.h.
using itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::FixedMaskPointer = typename FixedMaskType::ConstPointer |
Definition at line 94 of file itkTranslationTransformInitializer.h.
using itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::FixedMaskType = Image<unsigned char, InputSpaceDimension> |
Definition at line 92 of file itkTranslationTransformInitializer.h.
using itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::InputPointType = typename TransformType::InputPointType |
Point type.
Definition at line 105 of file itkTranslationTransformInitializer.h.
using itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::MovingImageCalculatorPointer = typename MovingImageCalculatorType::Pointer |
Definition at line 102 of file itkTranslationTransformInitializer.h.
using itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::MovingImageCalculatorType = ImageMomentsCalculator<MovingImageType> |
Definition at line 99 of file itkTranslationTransformInitializer.h.
using itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::MovingImagePointer = typename MovingImageType::ConstPointer |
Definition at line 91 of file itkTranslationTransformInitializer.h.
using itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::MovingImageType = TMovingImage |
Definition at line 89 of file itkTranslationTransformInitializer.h.
using itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::MovingMaskPointer = typename MovingMaskType::ConstPointer |
Definition at line 95 of file itkTranslationTransformInitializer.h.
using itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::MovingMaskType = Image<unsigned char, OutputSpaceDimension> |
Definition at line 93 of file itkTranslationTransformInitializer.h.
using itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::OutputVectorType = typename TransformType::OutputVectorType |
Vector type.
Definition at line 108 of file itkTranslationTransformInitializer.h.
using itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::Pointer = SmartPointer<Self> |
Definition at line 69 of file itkTranslationTransformInitializer.h.
using itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::Self = TranslationTransformInitializer |
Standard class typedefs.
Definition at line 67 of file itkTranslationTransformInitializer.h.
using itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::Superclass = Object |
Definition at line 68 of file itkTranslationTransformInitializer.h.
using itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::TransformPointer = typename TransformType::Pointer |
Definition at line 80 of file itkTranslationTransformInitializer.h.
using itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::TransformType = TTransform |
Type of the transform to initialize
Definition at line 79 of file itkTranslationTransformInitializer.h.
|
protected |
|
overrideprotecteddefault |
|
inline |
Select between using the geometrical center of the images or using the center of mass given by the image intensities.
Definition at line 132 of file itkTranslationTransformInitializer.h.
|
virtual |
Run-time type information (and related methods).
|
virtual |
Get() access to the moments calculators
|
virtual |
|
virtual |
Initialize the transform using data from the images
itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::ITK_DISALLOW_COPY_AND_MOVE | ( | TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage > | ) |
itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::itkStaticConstMacro | ( | InputSpaceDimension | , |
unsigned int | , | ||
TransformType::InputSpaceDimension | ) |
itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::itkStaticConstMacro | ( | OutputSpaceDimension | , |
unsigned int | , | ||
TransformType::OutputSpaceDimension | ) |
itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::itkStaticConstMacro | ( | SpaceDimension | , |
unsigned int | , | ||
TransformType::SpaceDimension | ) |
Dimension of parameters.
|
inline |
Definition at line 137 of file itkTranslationTransformInitializer.h.
|
static |
New macro for creation of through a Smart Pointer.
|
overrideprotected |
|
virtual |
Set the fixed image used in the registration process
|
virtual |
Set the fixed image mask used in the registration process
|
virtual |
Set the moving image used in the registration process
|
virtual |
Set the moving image mask used in the registration process
|
virtual |
Set the transform to be initialized
|
private |
Definition at line 161 of file itkTranslationTransformInitializer.h.
|
private |
Definition at line 155 of file itkTranslationTransformInitializer.h.
|
private |
Definition at line 157 of file itkTranslationTransformInitializer.h.
|
private |
Definition at line 162 of file itkTranslationTransformInitializer.h.
|
private |
Definition at line 156 of file itkTranslationTransformInitializer.h.
|
private |
Definition at line 158 of file itkTranslationTransformInitializer.h.
|
private |
Definition at line 154 of file itkTranslationTransformInitializer.h.
|
private |
Definition at line 159 of file itkTranslationTransformInitializer.h.
Generated on 2024-07-17 for elastix by 1.11.0 (9b424b03c9833626cd435af22a444888fbbb192d) |