go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage > Class Template Reference

#include <itkTranslationTransformInitializer.h>

Detailed Description

template<class TTransform, class TFixedImage, class TMovingImage>
class itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >

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 63 of file itkTranslationTransformInitializer.h.

+ Inheritance diagram for itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >:

Public Types

typedef SmartPointer< const SelfConstPointer
 
typedef FixedImageCalculatorType::Pointer FixedImageCalculatorPointer
 
typedef ImageMomentsCalculator< FixedImageTypeFixedImageCalculatorType
 
typedef FixedImageType::ConstPointer FixedImagePointer
 
typedef TFixedImage FixedImageType
 
typedef FixedMaskType::ConstPointer FixedMaskPointer
 
typedef Image< unsigned char, InputSpaceDimension > FixedMaskType
 
typedef TransformType::InputPointType InputPointType
 
typedef MovingImageCalculatorType::Pointer MovingImageCalculatorPointer
 
typedef ImageMomentsCalculator< MovingImageTypeMovingImageCalculatorType
 
typedef MovingImageType::ConstPointer MovingImagePointer
 
typedef TMovingImage MovingImageType
 
typedef MovingMaskType::ConstPointer MovingMaskPointer
 
typedef Image< unsigned char, OutputSpaceDimension > MovingMaskType
 
typedef TransformType::OutputVectorType OutputVectorType
 
typedef SmartPointer< SelfPointer
 
typedef TranslationTransformInitializer Self
 
typedef Object Superclass
 
typedef TransformType::Pointer TransformPointer
 
typedef TTransform TransformType
 

Public Member Functions

void GeometryOn ()
 
virtual const char * GetClassName () const
 
virtual const FixedImageCalculatorTypeGetFixedCalculator ()
 
virtual const MovingImageCalculatorTypeGetMovingCalculator ()
 
virtual void InitializeTransform () const
 
 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
 

Private Member Functions

void operator= (const Self &)
 
 TranslationTransformInitializer (const Self &)
 

Private Attributes

FixedImageCalculatorPointer m_FixedCalculator
 
FixedImagePointer m_FixedImage
 
FixedMaskPointer m_FixedMask
 
MovingImageCalculatorPointer m_MovingCalculator
 
MovingImagePointer m_MovingImage
 
MovingMaskPointer m_MovingMask
 
TransformPointer m_Transform
 
bool m_UseMoments
 

Member Typedef Documentation

◆ ConstPointer

template<class TTransform , class TFixedImage , class TMovingImage >
typedef SmartPointer< const Self > itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::ConstPointer

Definition at line 71 of file itkTranslationTransformInitializer.h.

◆ FixedImageCalculatorPointer

template<class TTransform , class TFixedImage , class TMovingImage >
typedef FixedImageCalculatorType::Pointer itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::FixedImageCalculatorPointer

Definition at line 102 of file itkTranslationTransformInitializer.h.

◆ FixedImageCalculatorType

template<class TTransform , class TFixedImage , class TMovingImage >
typedef ImageMomentsCalculator< FixedImageType > itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::FixedImageCalculatorType

Moment calculators

Definition at line 99 of file itkTranslationTransformInitializer.h.

◆ FixedImagePointer

template<class TTransform , class TFixedImage , class TMovingImage >
typedef FixedImageType::ConstPointer itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::FixedImagePointer

Definition at line 91 of file itkTranslationTransformInitializer.h.

◆ FixedImageType

template<class TTransform , class TFixedImage , class TMovingImage >
typedef TFixedImage itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::FixedImageType

Image Types to use in the initialization of the transform

Definition at line 89 of file itkTranslationTransformInitializer.h.

◆ FixedMaskPointer

template<class TTransform , class TFixedImage , class TMovingImage >
typedef FixedMaskType::ConstPointer itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::FixedMaskPointer

Definition at line 95 of file itkTranslationTransformInitializer.h.

◆ FixedMaskType

template<class TTransform , class TFixedImage , class TMovingImage >
typedef Image< unsigned char, InputSpaceDimension > itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::FixedMaskType

Definition at line 93 of file itkTranslationTransformInitializer.h.

◆ InputPointType

template<class TTransform , class TFixedImage , class TMovingImage >
typedef TransformType::InputPointType itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::InputPointType

Point type.

Definition at line 106 of file itkTranslationTransformInitializer.h.

◆ MovingImageCalculatorPointer

template<class TTransform , class TFixedImage , class TMovingImage >
typedef MovingImageCalculatorType::Pointer itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::MovingImageCalculatorPointer

Definition at line 103 of file itkTranslationTransformInitializer.h.

◆ MovingImageCalculatorType

template<class TTransform , class TFixedImage , class TMovingImage >
typedef ImageMomentsCalculator< MovingImageType > itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::MovingImageCalculatorType

Definition at line 100 of file itkTranslationTransformInitializer.h.

◆ MovingImagePointer

template<class TTransform , class TFixedImage , class TMovingImage >
typedef MovingImageType::ConstPointer itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::MovingImagePointer

Definition at line 92 of file itkTranslationTransformInitializer.h.

◆ MovingImageType

template<class TTransform , class TFixedImage , class TMovingImage >
typedef TMovingImage itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::MovingImageType

Definition at line 90 of file itkTranslationTransformInitializer.h.

◆ MovingMaskPointer

template<class TTransform , class TFixedImage , class TMovingImage >
typedef MovingMaskType::ConstPointer itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::MovingMaskPointer

Definition at line 96 of file itkTranslationTransformInitializer.h.

◆ MovingMaskType

template<class TTransform , class TFixedImage , class TMovingImage >
typedef Image< unsigned char, OutputSpaceDimension > itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::MovingMaskType

Definition at line 94 of file itkTranslationTransformInitializer.h.

◆ OutputVectorType

template<class TTransform , class TFixedImage , class TMovingImage >
typedef TransformType::OutputVectorType itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::OutputVectorType

Vector type.

Definition at line 109 of file itkTranslationTransformInitializer.h.

◆ Pointer

template<class TTransform , class TFixedImage , class TMovingImage >
typedef SmartPointer< Self > itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::Pointer

Definition at line 70 of file itkTranslationTransformInitializer.h.

◆ Self

template<class TTransform , class TFixedImage , class TMovingImage >
typedef TranslationTransformInitializer itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::Self

Standard class typedefs.

Definition at line 68 of file itkTranslationTransformInitializer.h.

◆ Superclass

template<class TTransform , class TFixedImage , class TMovingImage >
typedef Object itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::Superclass

Definition at line 69 of file itkTranslationTransformInitializer.h.

◆ TransformPointer

template<class TTransform , class TFixedImage , class TMovingImage >
typedef TransformType::Pointer itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::TransformPointer

Definition at line 81 of file itkTranslationTransformInitializer.h.

◆ TransformType

template<class TTransform , class TFixedImage , class TMovingImage >
typedef TTransform itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::TransformType

Type of the transform to initialize

Definition at line 80 of file itkTranslationTransformInitializer.h.

Constructor & Destructor Documentation

◆ TranslationTransformInitializer() [1/2]

template<class TTransform , class TFixedImage , class TMovingImage >
itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::TranslationTransformInitializer ( )
protected

◆ ~TranslationTransformInitializer()

template<class TTransform , class TFixedImage , class TMovingImage >
itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::~TranslationTransformInitializer ( )
inlineoverrideprotected

Definition at line 141 of file itkTranslationTransformInitializer.h.

◆ TranslationTransformInitializer() [2/2]

template<class TTransform , class TFixedImage , class TMovingImage >
itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::TranslationTransformInitializer ( const Self )
private

Member Function Documentation

◆ GeometryOn()

template<class TTransform , class TFixedImage , class TMovingImage >
void itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::GeometryOn ( )
inline

Select between using the geometrical center of the images or using the center of mass given by the image intensities.

Definition at line 131 of file itkTranslationTransformInitializer.h.

◆ GetClassName()

template<class TTransform , class TFixedImage , class TMovingImage >
virtual const char * itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::GetClassName ( ) const
virtual

Run-time type information (and related methods).

◆ GetFixedCalculator()

template<class TTransform , class TFixedImage , class TMovingImage >
virtual const FixedImageCalculatorType * itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::GetFixedCalculator ( )
virtual

Get() access to the moments calculators

◆ GetMovingCalculator()

template<class TTransform , class TFixedImage , class TMovingImage >
virtual const MovingImageCalculatorType * itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::GetMovingCalculator ( )
virtual

◆ InitializeTransform()

template<class TTransform , class TFixedImage , class TMovingImage >
virtual void itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::InitializeTransform ( ) const
virtual

Initialize the transform using data from the images

◆ itkStaticConstMacro() [1/3]

template<class TTransform , class TFixedImage , class TMovingImage >
itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::itkStaticConstMacro ( InputSpaceDimension  ,
unsigned int  ,
TransformType::InputSpaceDimension   
)

◆ itkStaticConstMacro() [2/3]

template<class TTransform , class TFixedImage , class TMovingImage >
itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::itkStaticConstMacro ( OutputSpaceDimension  ,
unsigned int  ,
TransformType::OutputSpaceDimension   
)

◆ itkStaticConstMacro() [3/3]

template<class TTransform , class TFixedImage , class TMovingImage >
itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::itkStaticConstMacro ( SpaceDimension  ,
unsigned int  ,
TransformType::SpaceDimension   
)

Dimension of parameters.

◆ MomentsOn()

template<class TTransform , class TFixedImage , class TMovingImage >
void itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::MomentsOn ( )
inline

Definition at line 132 of file itkTranslationTransformInitializer.h.

◆ New()

template<class TTransform , class TFixedImage , class TMovingImage >
static Pointer itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::New ( )
static

New macro for creation of through a Smart Pointer.

◆ operator=()

template<class TTransform , class TFixedImage , class TMovingImage >
void itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::operator= ( const Self )
private

◆ PrintSelf()

template<class TTransform , class TFixedImage , class TMovingImage >
void itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
overrideprotected

◆ SetFixedImage()

template<class TTransform , class TFixedImage , class TMovingImage >
virtual void itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::SetFixedImage ( const FixedImageType _arg)
virtual

Set the fixed image used in the registration process

◆ SetFixedMask()

template<class TTransform , class TFixedImage , class TMovingImage >
virtual void itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::SetFixedMask ( const FixedMaskType _arg)
virtual

Set the fixed image mask used in the registration process

◆ SetMovingImage()

template<class TTransform , class TFixedImage , class TMovingImage >
virtual void itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::SetMovingImage ( const MovingImageType _arg)
virtual

Set the moving image used in the registration process

◆ SetMovingMask()

template<class TTransform , class TFixedImage , class TMovingImage >
virtual void itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::SetMovingMask ( const MovingMaskType _arg)
virtual

Set the moving image mask used in the registration process

◆ SetTransform()

template<class TTransform , class TFixedImage , class TMovingImage >
virtual void itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::SetTransform ( TransformType _arg)
virtual

Set the transform to be initialized

Field Documentation

◆ m_FixedCalculator

template<class TTransform , class TFixedImage , class TMovingImage >
FixedImageCalculatorPointer itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::m_FixedCalculator
private

Definition at line 157 of file itkTranslationTransformInitializer.h.

◆ m_FixedImage

template<class TTransform , class TFixedImage , class TMovingImage >
FixedImagePointer itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::m_FixedImage
private

Definition at line 151 of file itkTranslationTransformInitializer.h.

◆ m_FixedMask

template<class TTransform , class TFixedImage , class TMovingImage >
FixedMaskPointer itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::m_FixedMask
private

Definition at line 153 of file itkTranslationTransformInitializer.h.

◆ m_MovingCalculator

template<class TTransform , class TFixedImage , class TMovingImage >
MovingImageCalculatorPointer itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::m_MovingCalculator
private

Definition at line 158 of file itkTranslationTransformInitializer.h.

◆ m_MovingImage

template<class TTransform , class TFixedImage , class TMovingImage >
MovingImagePointer itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::m_MovingImage
private

Definition at line 152 of file itkTranslationTransformInitializer.h.

◆ m_MovingMask

template<class TTransform , class TFixedImage , class TMovingImage >
MovingMaskPointer itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::m_MovingMask
private

Definition at line 154 of file itkTranslationTransformInitializer.h.

◆ m_Transform

template<class TTransform , class TFixedImage , class TMovingImage >
TransformPointer itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::m_Transform
private

Definition at line 150 of file itkTranslationTransformInitializer.h.

◆ m_UseMoments

template<class TTransform , class TFixedImage , class TMovingImage >
bool itk::TranslationTransformInitializer< TTransform, TFixedImage, TMovingImage >::m_UseMoments
private

Definition at line 155 of file itkTranslationTransformInitializer.h.



Generated on 1667476801 for elastix by doxygen 1.9.4 elastix logo