ITK  5.2.0
Insight Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage > Class Template Reference

#include <itkCenteredTransformInitializer.h>

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

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 InputPointType = typename TransformType::InputPointType
 
using MovingImageCalculatorPointer = typename MovingImageCalculatorType::Pointer
 
using MovingImageCalculatorType = ImageMomentsCalculator< MovingImageType >
 
using MovingImagePointer = typename MovingImageType::ConstPointer
 
using MovingImageType = TMovingImage
 
using OffsetType = typename TransformType::OffsetType
 
using OutputVectorType = typename TransformType::OutputVectorType
 
using Pointer = SmartPointer< Self >
 
using Self = CenteredTransformInitializer
 
using Superclass = Object
 
using TransformPointer = typename TransformType::Pointer
 
using TransformType = TTransform
 
- Public Types inherited from itk::Object
using ConstPointer = SmartPointer< const Self >
 
using Pointer = SmartPointer< Self >
 
using Self = Object
 
using Superclass = LightObject
 
- Public Types inherited from itk::LightObject
using ConstPointer = SmartPointer< const Self >
 
using Pointer = SmartPointer< Self >
 
using Self = LightObject
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother () const
 
virtual const char * GetNameOfClass () const
 
virtual void InitializeTransform ()
 
virtual void SetFixedImage (const FixedImageType *_arg)
 
virtual void SetMovingImage (const MovingImageType *_arg)
 
virtual void SetTransform (TransformType *_arg)
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
 
unsigned long AddObserver (const EventObject &event, Command *) const
 
unsigned long AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionaryGetMetaDataDictionary ()
 
const MetaDataDictionaryGetMetaDataDictionary () const
 
virtual ModifiedTimeType GetMTime () const
 
virtual const TimeStampGetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
void Register () const override
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag)
 
void SetDebug (bool debugFlag) const
 
void SetReferenceCount (int) override
 
void UnRegister () const noexcept override
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
void SetMetaDataDictionary (MetaDataDictionary &&rrhs)
 
virtual void SetObjectName (std::string _arg)
 
virtual const std::string & GetObjectName () const
 
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
 itkCloneMacro (Self)
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

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 constexpr unsigned int InputSpaceDimension = TransformType::InputSpaceDimension
 
static constexpr unsigned int OutputSpaceDimension = TransformType::OutputSpaceDimension
 
TransformPointer m_Transform
 
FixedImagePointer m_FixedImage
 
MovingImagePointer m_MovingImage
 
bool m_UseMoments
 
FixedImageCalculatorPointer m_FixedCalculator
 
MovingImageCalculatorPointer m_MovingCalculator
 
void GeometryOn ()
 
void MomentsOn ()
 
virtual FixedImageCalculatorTypeGetModifiableFixedCalculator ()
 
virtual const FixedImageCalculatorTypeGetFixedCalculator () const
 
virtual MovingImageCalculatorTypeGetModifiableMovingCalculator ()
 
virtual const MovingImageCalculatorTypeGetMovingCalculator () const
 
 CenteredTransformInitializer ()
 
 ~CenteredTransformInitializer () override=default
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
virtual TransformTypeGetModifiableTransform ()
 
virtual const TransformTypeGetTransform () const
 

Additional Inherited Members

- Protected Member Functions inherited from itk::Object
 Object ()
 
 ~Object () override
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &time)
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 
- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount
 

Detailed Description

template<typename TTransform, typename TFixedImage, typename TMovingImage>
class itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >

CenteredTransformInitializer is a helper class intended to initialize the center of rotation and the translation of Transforms having the center of rotation among their parameters.

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 center of the moving image is passed as initial center of rotation to the transform and the vector from the center of the fixed image to the center of the moving image is passed as the 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 center of mass of the moving image is then used as center of rotation. 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.

Examples
Examples/RegistrationITKv4/DeformableRegistration15.cxx, Examples/RegistrationITKv4/ImageRegistration12.cxx, Examples/RegistrationITKv4/ImageRegistration13.cxx, Examples/RegistrationITKv4/ImageRegistration14.cxx, Examples/RegistrationITKv4/ImageRegistration19.cxx, Examples/RegistrationITKv4/ImageRegistration20.cxx, Examples/RegistrationITKv4/ImageRegistration6.cxx, Examples/RegistrationITKv4/ImageRegistration7.cxx, Examples/RegistrationITKv4/ImageRegistration8.cxx, Examples/RegistrationITKv4/ImageRegistration9.cxx, Examples/RegistrationITKv4/MultiResImageRegistration2.cxx, SphinxExamples/src/Numerics/Optimizers/ExhaustiveOptimizer/Code.cxx, and SphinxExamples/src/Registration/Common/WatchRegistration/Code.cxx.

Definition at line 61 of file itkCenteredTransformInitializer.h.

Member Typedef Documentation

◆ ConstPointer

template<typename TTransform, typename TFixedImage, typename TMovingImage>
using itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::ConstPointer = SmartPointer<const Self>

Definition at line 70 of file itkCenteredTransformInitializer.h.

◆ FixedImageCalculatorPointer

template<typename TTransform, typename TFixedImage, typename TMovingImage>
using itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::FixedImageCalculatorPointer = typename FixedImageCalculatorType::Pointer

Definition at line 97 of file itkCenteredTransformInitializer.h.

◆ FixedImageCalculatorType

template<typename TTransform, typename TFixedImage, typename TMovingImage>
using itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::FixedImageCalculatorType = ImageMomentsCalculator<FixedImageType>

Moment calculators

Definition at line 94 of file itkCenteredTransformInitializer.h.

◆ FixedImagePointer

template<typename TTransform, typename TFixedImage, typename TMovingImage>
using itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::FixedImagePointer = typename FixedImageType::ConstPointer

Definition at line 90 of file itkCenteredTransformInitializer.h.

◆ FixedImageType

template<typename TTransform, typename TFixedImage, typename TMovingImage>
using itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::FixedImageType = TFixedImage

Image Types to use in the initialization of the transform

Definition at line 87 of file itkCenteredTransformInitializer.h.

◆ InputPointType

template<typename TTransform, typename TFixedImage, typename TMovingImage>
using itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::InputPointType = typename TransformType::InputPointType

Point type.

Definition at line 104 of file itkCenteredTransformInitializer.h.

◆ MovingImageCalculatorPointer

template<typename TTransform, typename TFixedImage, typename TMovingImage>
using itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::MovingImageCalculatorPointer = typename MovingImageCalculatorType::Pointer

Definition at line 98 of file itkCenteredTransformInitializer.h.

◆ MovingImageCalculatorType

template<typename TTransform, typename TFixedImage, typename TMovingImage>
using itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::MovingImageCalculatorType = ImageMomentsCalculator<MovingImageType>

Definition at line 95 of file itkCenteredTransformInitializer.h.

◆ MovingImagePointer

template<typename TTransform, typename TFixedImage, typename TMovingImage>
using itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::MovingImagePointer = typename MovingImageType::ConstPointer

Definition at line 91 of file itkCenteredTransformInitializer.h.

◆ MovingImageType

template<typename TTransform, typename TFixedImage, typename TMovingImage>
using itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::MovingImageType = TMovingImage

Definition at line 88 of file itkCenteredTransformInitializer.h.

◆ OffsetType

template<typename TTransform, typename TFixedImage, typename TMovingImage>
using itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::OffsetType = typename TransformType::OffsetType

Offset type.

Definition at line 101 of file itkCenteredTransformInitializer.h.

◆ OutputVectorType

template<typename TTransform, typename TFixedImage, typename TMovingImage>
using itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::OutputVectorType = typename TransformType::OutputVectorType

Vector type.

Definition at line 107 of file itkCenteredTransformInitializer.h.

◆ Pointer

template<typename TTransform, typename TFixedImage, typename TMovingImage>
using itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::Pointer = SmartPointer<Self>

Definition at line 69 of file itkCenteredTransformInitializer.h.

◆ Self

template<typename TTransform, typename TFixedImage, typename TMovingImage>
using itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::Self = CenteredTransformInitializer

Standard class type aliases.

Definition at line 67 of file itkCenteredTransformInitializer.h.

◆ Superclass

template<typename TTransform, typename TFixedImage, typename TMovingImage>
using itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::Superclass = Object

Definition at line 68 of file itkCenteredTransformInitializer.h.

◆ TransformPointer

template<typename TTransform, typename TFixedImage, typename TMovingImage>
using itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::TransformPointer = typename TransformType::Pointer

Definition at line 80 of file itkCenteredTransformInitializer.h.

◆ TransformType

template<typename TTransform, typename TFixedImage, typename TMovingImage>
using itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::TransformType = TTransform

Type of the transform to initialize

Definition at line 79 of file itkCenteredTransformInitializer.h.

Constructor & Destructor Documentation

◆ CenteredTransformInitializer()

template<typename TTransform, typename TFixedImage, typename TMovingImage>
itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::CenteredTransformInitializer ( )
protected

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

◆ ~CenteredTransformInitializer()

template<typename TTransform, typename TFixedImage, typename TMovingImage>
itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::~CenteredTransformInitializer ( )
overrideprotecteddefault

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

Member Function Documentation

◆ CreateAnother()

template<typename TTransform, typename TFixedImage, typename TMovingImage>
virtual::itk::LightObject::Pointer itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::CreateAnother ( ) 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.

◆ GeometryOn()

template<typename TTransform, typename TFixedImage, typename TMovingImage>
void itk::CenteredTransformInitializer< 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 125 of file itkCenteredTransformInitializer.h.

◆ GetFixedCalculator()

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

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

◆ GetModifiableFixedCalculator()

template<typename TTransform, typename TFixedImage, typename TMovingImage>
virtual FixedImageCalculatorType* itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::GetModifiableFixedCalculator ( )
virtual

Get() access to the moments calculators

◆ GetModifiableMovingCalculator()

template<typename TTransform, typename TFixedImage, typename TMovingImage>
virtual MovingImageCalculatorType* itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::GetModifiableMovingCalculator ( )
virtual

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

◆ GetModifiableTransform()

template<typename TTransform, typename TFixedImage, typename TMovingImage>
virtual TransformType* itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::GetModifiableTransform ( )
protectedvirtual

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

◆ GetMovingCalculator()

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

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

◆ GetNameOfClass()

template<typename TTransform, typename TFixedImage, typename TMovingImage>
virtual const char* itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::Object.

Reimplemented in itk::CenteredVersorTransformInitializer< TFixedImage, TMovingImage >.

◆ GetTransform()

template<typename TTransform, typename TFixedImage, typename TMovingImage>
virtual const TransformType* itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::GetTransform ( ) const
protectedvirtual

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

◆ InitializeTransform()

template<typename TTransform, typename TFixedImage, typename TMovingImage>
virtual void itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::InitializeTransform ( )
virtual

Initialize the transform using data from the images

Reimplemented in itk::CenteredVersorTransformInitializer< TFixedImage, TMovingImage >.

◆ MomentsOn()

template<typename TTransform, typename TFixedImage, typename TMovingImage>
void itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::MomentsOn ( )
inline

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

Definition at line 130 of file itkCenteredTransformInitializer.h.

◆ New()

template<typename TTransform, typename TFixedImage, typename TMovingImage>
static Pointer itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::New ( )
static

New macro for creation of through a Smart Pointer.

◆ PrintSelf()

template<typename TTransform, typename TFixedImage, typename TMovingImage>
void itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
overrideprotectedvirtual

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

Reimplemented from itk::Object.

◆ SetFixedImage()

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

Set the fixed image used in the registration process

◆ SetMovingImage()

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

Set the moving image used in the registration process

◆ SetTransform()

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

Set the transform to be initialized

Member Data Documentation

◆ InputSpaceDimension

template<typename TTransform, typename TFixedImage, typename TMovingImage>
constexpr unsigned int itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::InputSpaceDimension = TransformType::InputSpaceDimension
staticconstexpr

Dimension of parameters.

Definition at line 83 of file itkCenteredTransformInitializer.h.

◆ m_FixedCalculator

template<typename TTransform, typename TFixedImage, typename TMovingImage>
FixedImageCalculatorPointer itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::m_FixedCalculator
private

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

Definition at line 159 of file itkCenteredTransformInitializer.h.

◆ m_FixedImage

template<typename TTransform, typename TFixedImage, typename TMovingImage>
FixedImagePointer itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::m_FixedImage
private

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

Definition at line 153 of file itkCenteredTransformInitializer.h.

◆ m_MovingCalculator

template<typename TTransform, typename TFixedImage, typename TMovingImage>
MovingImageCalculatorPointer itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::m_MovingCalculator
private

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

Definition at line 160 of file itkCenteredTransformInitializer.h.

◆ m_MovingImage

template<typename TTransform, typename TFixedImage, typename TMovingImage>
MovingImagePointer itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::m_MovingImage
private

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

Definition at line 155 of file itkCenteredTransformInitializer.h.

◆ m_Transform

template<typename TTransform, typename TFixedImage, typename TMovingImage>
TransformPointer itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::m_Transform
private

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

Definition at line 148 of file itkCenteredTransformInitializer.h.

◆ m_UseMoments

template<typename TTransform, typename TFixedImage, typename TMovingImage>
bool itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::m_UseMoments
private

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

Definition at line 157 of file itkCenteredTransformInitializer.h.

◆ OutputSpaceDimension

template<typename TTransform, typename TFixedImage, typename TMovingImage>
constexpr unsigned int itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::OutputSpaceDimension = TransformType::OutputSpaceDimension
staticconstexpr

Definition at line 84 of file itkCenteredTransformInitializer.h.


The documentation for this class was generated from the following file: