ITK
6.0.0
Insight Toolkit
|
#include <itkCenteredTransformInitializer.h>
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.
Definition at line 61 of file itkCenteredTransformInitializer.h.
Public Member Functions | |
const char * | GetNameOfClass () const override |
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 FixedImageCalculatorType * | GetModifiableFixedCalculator () |
virtual MovingImageCalculatorType * | GetModifiableMovingCalculator () |
Public Member Functions inherited from itk::Object | |
unsigned long | AddObserver (const EventObject &event, Command *cmd) const |
unsigned long | AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const |
LightObject::Pointer | CreateAnother () const override |
virtual void | DebugOff () const |
virtual void | DebugOn () const |
Command * | GetCommand (unsigned long tag) |
bool | GetDebug () const |
MetaDataDictionary & | GetMetaDataDictionary () |
const MetaDataDictionary & | GetMetaDataDictionary () const |
virtual ModifiedTimeType | GetMTime () const |
virtual const TimeStamp & | GetTimeStamp () 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) const |
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 | |
Pointer | Clone () const |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
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 val) |
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 |
Protected Member Functions | |
CenteredTransformInitializer ()=default | |
virtual TransformType * | GetModifiableTransform () |
void | PrintSelf (std::ostream &os, Indent indent) const override |
~CenteredTransformInitializer () override=default | |
Protected Member Functions inherited from itk::Object | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
~Object () override | |
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 Attributes | |
const FixedImageCalculatorPointer | m_FixedCalculator { FixedImageCalculatorType::New() } |
FixedImagePointer | m_FixedImage {} |
const MovingImageCalculatorPointer | m_MovingCalculator { MovingImageCalculatorType::New() } |
MovingImagePointer | m_MovingImage {} |
TransformPointer | m_Transform {} |
bool | m_UseMoments { false } |
Additional Inherited Members | |
Protected Attributes inherited from itk::LightObject | |
std::atomic< int > | m_ReferenceCount {} |
using itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::ConstPointer = SmartPointer<const Self> |
Definition at line 70 of file itkCenteredTransformInitializer.h.
using itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::FixedImageCalculatorPointer = typename FixedImageCalculatorType::Pointer |
Definition at line 97 of file itkCenteredTransformInitializer.h.
using itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::FixedImageCalculatorType = ImageMomentsCalculator<FixedImageType> |
Moment calculators
Definition at line 94 of file itkCenteredTransformInitializer.h.
using itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::FixedImagePointer = typename FixedImageType::ConstPointer |
Definition at line 90 of file itkCenteredTransformInitializer.h.
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.
using itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::InputPointType = typename TransformType::InputPointType |
Point type.
Definition at line 104 of file itkCenteredTransformInitializer.h.
using itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::MovingImageCalculatorPointer = typename MovingImageCalculatorType::Pointer |
Definition at line 98 of file itkCenteredTransformInitializer.h.
using itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::MovingImageCalculatorType = ImageMomentsCalculator<MovingImageType> |
Definition at line 95 of file itkCenteredTransformInitializer.h.
using itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::MovingImagePointer = typename MovingImageType::ConstPointer |
Definition at line 91 of file itkCenteredTransformInitializer.h.
using itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::MovingImageType = TMovingImage |
Definition at line 88 of file itkCenteredTransformInitializer.h.
using itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::OffsetType = typename TransformType::OffsetType |
Offset type.
Definition at line 101 of file itkCenteredTransformInitializer.h.
using itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::OutputVectorType = typename TransformType::OutputVectorType |
Vector type.
Definition at line 107 of file itkCenteredTransformInitializer.h.
using itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::Pointer = SmartPointer<Self> |
Definition at line 69 of file itkCenteredTransformInitializer.h.
using itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::Self = CenteredTransformInitializer |
Standard class type aliases.
Definition at line 67 of file itkCenteredTransformInitializer.h.
using itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::Superclass = Object |
Definition at line 68 of file itkCenteredTransformInitializer.h.
using itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::TransformPointer = typename TransformType::Pointer |
Definition at line 80 of file itkCenteredTransformInitializer.h.
using itk::CenteredTransformInitializer< TTransform, TFixedImage, TMovingImage >::TransformType = TTransform |
Type of the transform to initialize
Definition at line 79 of file itkCenteredTransformInitializer.h.
|
protecteddefault |
|
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 125 of file itkCenteredTransformInitializer.h.
|
virtual |
Get() access to the moments calculators
|
virtual |
Get() access to the moments calculators
|
protectedvirtual |
|
overridevirtual |
Reimplemented from itk::Object.
|
virtual |
Initialize the transform using data from the images
Reimplemented in itk::CenteredVersorTransformInitializer< TFixedImage, TMovingImage >.
|
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.
|
static |
New macro for creation of through a Smart Pointer.
|
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::Object.
|
virtual |
Set the fixed image used in the registration process
|
virtual |
Set the moving image used in the registration process
|
virtual |
Set the transform to be initialized
|
staticconstexpr |
Dimension of parameters.
Definition at line 83 of file itkCenteredTransformInitializer.h.
|
private |
Definition at line 159 of file itkCenteredTransformInitializer.h.
|
private |
Definition at line 153 of file itkCenteredTransformInitializer.h.
|
private |
Definition at line 160 of file itkCenteredTransformInitializer.h.
|
private |
Definition at line 155 of file itkCenteredTransformInitializer.h.
|
private |
Definition at line 151 of file itkCenteredTransformInitializer.h.
|
private |
Definition at line 157 of file itkCenteredTransformInitializer.h.
|
staticconstexpr |
Definition at line 84 of file itkCenteredTransformInitializer.h.