ITK  4.6.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private 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 >:

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:
RegistrationITKv3/DeformableRegistration15.cxx, RegistrationITKv3/ImageRegistration12.cxx, RegistrationITKv3/ImageRegistration13.cxx, RegistrationITKv3/ImageRegistration14.cxx, RegistrationITKv3/ImageRegistration19.cxx, RegistrationITKv3/ImageRegistration20.cxx, RegistrationITKv3/ImageRegistration6.cxx, RegistrationITKv3/ImageRegistration7.cxx, RegistrationITKv3/ImageRegistration8.cxx, RegistrationITKv3/ImageRegistration9.cxx, RegistrationITKv3/MultiResImageRegistration2.cxx, RegistrationITKv4/DeformableRegistration15.cxx, RegistrationITKv4/ImageRegistration12.cxx, RegistrationITKv4/ImageRegistration13.cxx, RegistrationITKv4/ImageRegistration14.cxx, RegistrationITKv4/ImageRegistration19.cxx, RegistrationITKv4/ImageRegistration20.cxx, RegistrationITKv4/ImageRegistration6.cxx, RegistrationITKv4/ImageRegistration7.cxx, RegistrationITKv4/ImageRegistration8.cxx, RegistrationITKv4/ImageRegistration9.cxx, and RegistrationITKv4/MultiResImageRegistration2.cxx.

Definition at line 63 of file itkCenteredTransformInitializer.h.

Public Types

typedef SmartPointer< const SelfConstPointer
 
typedef
FixedImageCalculatorType::Pointer 
FixedImageCalculatorPointer
 
typedef ImageMomentsCalculator
< FixedImageType
FixedImageCalculatorType
 
typedef
FixedImageType::ConstPointer 
FixedImagePointer
 
typedef TFixedImage FixedImageType
 
typedef
TransformType::InputPointType 
InputPointType
 
typedef
MovingImageCalculatorType::Pointer 
MovingImageCalculatorPointer
 
typedef ImageMomentsCalculator
< MovingImageType
MovingImageCalculatorType
 
typedef
MovingImageType::ConstPointer 
MovingImagePointer
 
typedef TMovingImage MovingImageType
 
typedef TransformType::OffsetType OffsetType
 
typedef
TransformType::OutputVectorType 
OutputVectorType
 
typedef SmartPointer< SelfPointer
 
typedef
CenteredTransformInitializer 
Self
 
typedef Object Superclass
 
typedef TransformType::Pointer TransformPointer
 
typedef TTransform TransformType
 
- Public Types inherited from itk::Object
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef Object Self
 
typedef LightObject Superclass
 
- Public Types inherited from itk::LightObject
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef LightObject Self
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) 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)
 
void GeometryOn ()
 
void MomentsOn ()
 
virtual FixedImageCalculatorTypeGetModifiableFixedCalculator ()
 
virtual const
FixedImageCalculatorType
GetFixedCalculator () const
 
virtual MovingImageCalculatorTypeGetModifiableMovingCalculator ()
 
virtual const
MovingImageCalculatorType
GetMovingCalculator () const
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
 
unsigned long AddObserver (const EventObject &event, Command *) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionaryGetMetaDataDictionary (void)
 
const MetaDataDictionaryGetMetaDataDictionary (void) 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
 
virtual void Register () const ITK_OVERRIDE
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag)
 
void SetDebug (bool debugFlag) const
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
virtual void SetReferenceCount (int) ITK_OVERRIDE
 
virtual void UnRegister () const ITK_OVERRIDE
 
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 const unsigned int InputSpaceDimension = TransformType::InputSpaceDimension
 
static const unsigned int OutputSpaceDimension = TransformType::OutputSpaceDimension
 

Protected Member Functions

 CenteredTransformInitializer ()
 
virtual TransformTypeGetModifiableTransform ()
 
virtual const TransformTypeGetTransform () const
 
virtual void PrintSelf (std::ostream &os, Indent indent) const ITK_OVERRIDE
 
 ~CenteredTransformInitializer ()
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &time)
 
virtual ~Object ()
 
- 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 ()
 

Private Member Functions

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

Private Attributes

FixedImageCalculatorPointer m_FixedCalculator
 
FixedImagePointer m_FixedImage
 
MovingImageCalculatorPointer m_MovingCalculator
 
MovingImagePointer m_MovingImage
 
TransformPointer m_Transform
 
bool m_UseMoments
 

Additional Inherited Members

- Protected Types inherited from itk::LightObject
typedef int InternalReferenceCountType
 
- Protected Attributes inherited from itk::LightObject
InternalReferenceCountType m_ReferenceCount
 
SimpleFastMutexLock m_ReferenceCountLock
 

Member Typedef Documentation

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

Definition at line 70 of file itkCenteredTransformInitializer.h.

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

Definition at line 101 of file itkCenteredTransformInitializer.h.

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

Moment calculators

Definition at line 97 of file itkCenteredTransformInitializer.h.

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

Definition at line 93 of file itkCenteredTransformInitializer.h.

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

Image Types to use in the initialization of the transform

Definition at line 90 of file itkCenteredTransformInitializer.h.

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

Point type.

Definition at line 109 of file itkCenteredTransformInitializer.h.

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

Definition at line 103 of file itkCenteredTransformInitializer.h.

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

Definition at line 98 of file itkCenteredTransformInitializer.h.

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

Definition at line 94 of file itkCenteredTransformInitializer.h.

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

Definition at line 91 of file itkCenteredTransformInitializer.h.

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

Offset type.

Definition at line 106 of file itkCenteredTransformInitializer.h.

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

Vector type.

Definition at line 112 of file itkCenteredTransformInitializer.h.

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

Definition at line 69 of file itkCenteredTransformInitializer.h.

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

Standard class typedefs.

Definition at line 67 of file itkCenteredTransformInitializer.h.

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

Definition at line 68 of file itkCenteredTransformInitializer.h.

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

Definition at line 80 of file itkCenteredTransformInitializer.h.

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

Type of the transform to initialize

Definition at line 76 of file itkCenteredTransformInitializer.h.

Constructor & Destructor Documentation

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

Definition at line 139 of file itkCenteredTransformInitializer.h.

template<typename TTransform, typename TFixedImage, typename TMovingImage>
itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::CenteredTransformInitializer ( const Self )
private

Member Function Documentation

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

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 128 of file itkCenteredTransformInitializer.h.

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

Get() access to the moments calculators

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

Get() access to the moments calculators

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

Get() access to the moments calculators

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

Get() access to the moments calculators

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 >.

template<typename TTransform, typename TFixedImage, typename TMovingImage>
virtual const TransformType* itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::GetTransform ( ) const
protectedvirtual
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 >.

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 129 of file itkCenteredTransformInitializer.h.

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.

template<typename TTransform, typename TFixedImage, typename TMovingImage>
void itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::operator= ( const Self )
private
template<typename TTransform, typename TFixedImage, typename TMovingImage>
virtual void itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
protectedvirtual

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::Object.

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

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

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

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

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

Dimension of parameters.

Definition at line 84 of file itkCenteredTransformInitializer.h.

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

Definition at line 157 of file itkCenteredTransformInitializer.h.

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

Definition at line 151 of file itkCenteredTransformInitializer.h.

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

Definition at line 158 of file itkCenteredTransformInitializer.h.

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

Definition at line 153 of file itkCenteredTransformInitializer.h.

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

Definition at line 149 of file itkCenteredTransformInitializer.h.

template<typename TTransform, typename TFixedImage, typename TMovingImage>
bool itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::m_UseMoments
private
template<typename TTransform, typename TFixedImage, typename TMovingImage>
const unsigned int itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::OutputSpaceDimension = TransformType::OutputSpaceDimension
static

Dimension of parameters.

Definition at line 86 of file itkCenteredTransformInitializer.h.


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