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

#include <itkLandmarkBasedTransformInitializer.h>

Detailed Description

template<typename TTransform, typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
class itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >

This class computes the transform that aligns the fixed and moving images given a set of pair landmarks. The class is templated over the Transform type as well as fixed image and moving image types. The transform computed gives the best fit transform that maps the fixed and moving images in a least squares sense. The indices are taken to correspond, so point 1 in the first set will get mapped close to point 1 in the second set, etc.

Currently, the following transforms are supported by the class: VersorRigid3DTransform Similarity3DTransform Rigid2DTransform AffineTransform BSplineTransform

An equal number of fixed and moving landmarks need to be specified using SetFixedLandmarks() and SetMovingLandmarks(). Any number of landmarks may be specified. In the case of the Affine transformation the number of landmarks must be greater than the landmark dimensionality. If this is not the case an exception is thrown. In the case of the VersorRigid3DTransform and Rigid2DTransform the number of landmarks must be equal or greater than the landmark dimensionality. If this is not the case, only the translational component of the transformation is computed and the rotation is the identity. In the case of using Affine or BSpline transforms, each landmark pair can contribute in the final transform based on its defined weight. Number of weights should be equal to the number of landmarks and can be specified using SetLandmarkWeight(). By defaults are weights are set to one. Call InitializeTransform() to initialize the transform.

The class is based in part on Hybrid/vtkLandmarkTransform originally implemented in python by David G. Gobbi.

The solution is based on Berthold K. P. Horn (1987), "Closed-form solution of absolute orientation using unit quaternions," https://people.csail.mit.edu/bkph/papers/Absolute_Orientation.pdf

The Affine Transform initializer is based on an algorithm by H Spaeth, and is described in the Insight Journal Article "Affine Transformation for Landmark Based Registration Initializer in ITK" by Kim E.Y., Johnson H., Williams N. available at https://midasjournal.org/browse/publication/825

ITK Sphinx Examples:
Examples
SphinxExamples/src/Registration/Common/RegisterImageToAnotherUsingLandmarks/Code.cxx.

Definition at line 90 of file itkLandmarkBasedTransformInitializer.h.

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

Public Types

using AffineTransformType = AffineTransform< ParametersValueType, FixedImageType::ImageDimension >
 
using BSplineTransformType = BSplineTransform< ParametersValueType, FixedImageType::ImageDimension, SplineOrder >
 
using ConstPointer = SmartPointer< const Self >
 
using FixedImagePointer = typename FixedImageType::ConstPointer
 
using FixedImageType = TFixedImage
 
using InputPointType = typename TransformType::InputPointType
 
using LandmarkPointContainer = std::vector< LandmarkPointType >
 
using LandmarkPointType = Point< double, ImageDimension >
 
using LandmarkWeightConstIterator = LandmarkWeightType::const_iterator
 
using LandmarkWeightType = std::vector< double >
 
using MovingImagePointer = typename MovingImageType::ConstPointer
 
using MovingImageType = TMovingImage
 
using OutputVectorType = typename TransformType::OutputVectorType
 
using ParametersType = typename TransformType::ParametersType
 
using ParametersValueType = typename ParametersType::ValueType
 
using Pointer = SmartPointer< Self >
 
using PointsContainerConstIterator = typename LandmarkPointContainer::const_iterator
 
using PointType3D = Point< double, 3 >
 
using Rigid2DTransformType = Rigid2DTransform< ParametersValueType >
 
using Self = LandmarkBasedTransformInitializer
 
using Similarity3DTransformType = Similarity3DTransform< ParametersValueType >
 
using Superclass = Object
 
using TransformPointer = typename TransformType::Pointer
 
using TransformType = TTransform
 
using VersorRigid3DTransformType = VersorRigid3DTransform< ParametersValueType >
 
- 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

const char * GetNameOfClass () const override
 
virtual void InitializeTransform ()
 
virtual void SetBSplineNumberOfControlPoints (unsigned int _arg)
 
void SetFixedLandmarks (const LandmarkPointContainer &fixedLandmarks)
 
void SetLandmarkWeight (LandmarkWeightType &landmarkWeight)
 
void SetMovingLandmarks (const LandmarkPointContainer &movingLandmarks)
 
virtual void SetReferenceImage (const FixedImageType *_arg)
 
virtual void SetTransform (TransformType *_arg)
 
- 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
 
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) 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 ImageDimension = FixedImageType::ImageDimension
 
static constexpr unsigned int InputSpaceDimension = TransformType::InputSpaceDimension
 
static constexpr unsigned int OutputSpaceDimension = TransformType::OutputSpaceDimension
 
static constexpr unsigned int SplineOrder = 3
 

Protected Member Functions

 LandmarkBasedTransformInitializer ()=default
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
 ~LandmarkBasedTransformInitializer () 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 Member Functions

PointType3D ComputeCentroid (const LandmarkPointContainer)
 
void CreateMatrix (itk::Matrix< ParametersValueType, 4, 4 > &, const itk::Matrix< ParametersValueType, ImageDimension, ImageDimension >)
 
void InternalInitializeTransform (AffineTransformType *)
 
void InternalInitializeTransform (BSplineTransformType *)
 
void InternalInitializeTransform (Rigid2DTransformType *)
 
void InternalInitializeTransform (Similarity3DTransformType *)
 
template<typename TTransform2 >
void InternalInitializeTransform (TTransform2 *)
 
void InternalInitializeTransform (VersorRigid3DTransformType *)
 

Private Attributes

unsigned int m_BSplineNumberOfControlPoints { 4 }
 
LandmarkPointContainer m_FixedLandmarks {}
 
LandmarkWeightType m_LandmarkWeight {}
 
LandmarkPointContainer m_MovingLandmarks {}
 
FixedImagePointer m_ReferenceImage {}
 
TransformPointer m_Transform {}
 

Additional Inherited Members

- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount {}
 

Member Typedef Documentation

◆ AffineTransformType

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
using itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::AffineTransformType = AffineTransform<ParametersValueType, FixedImageType::ImageDimension>

Definition at line 175 of file itkLandmarkBasedTransformInitializer.h.

◆ BSplineTransformType

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
using itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::BSplineTransformType = BSplineTransform<ParametersValueType, FixedImageType::ImageDimension, SplineOrder>

Definition at line 178 of file itkLandmarkBasedTransformInitializer.h.

◆ ConstPointer

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
using itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::ConstPointer = SmartPointer<const Self>

Definition at line 99 of file itkLandmarkBasedTransformInitializer.h.

◆ FixedImagePointer

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
using itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::FixedImagePointer = typename FixedImageType::ConstPointer

Definition at line 128 of file itkLandmarkBasedTransformInitializer.h.

◆ FixedImageType

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
using itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::FixedImageType = TFixedImage

Image Types to use in the initialization of the transform.

Definition at line 119 of file itkLandmarkBasedTransformInitializer.h.

◆ InputPointType

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
using itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::InputPointType = typename TransformType::InputPointType

Convenience type alias.

Definition at line 135 of file itkLandmarkBasedTransformInitializer.h.

◆ LandmarkPointContainer

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
using itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::LandmarkPointContainer = std::vector<LandmarkPointType>

Definition at line 140 of file itkLandmarkBasedTransformInitializer.h.

◆ LandmarkPointType

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
using itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::LandmarkPointType = Point<double, ImageDimension>

Definition at line 139 of file itkLandmarkBasedTransformInitializer.h.

◆ LandmarkWeightConstIterator

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
using itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::LandmarkWeightConstIterator = LandmarkWeightType::const_iterator

Definition at line 146 of file itkLandmarkBasedTransformInitializer.h.

◆ LandmarkWeightType

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
using itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::LandmarkWeightType = std::vector<double>

Definition at line 145 of file itkLandmarkBasedTransformInitializer.h.

◆ MovingImagePointer

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
using itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::MovingImagePointer = typename MovingImageType::ConstPointer

Definition at line 129 of file itkLandmarkBasedTransformInitializer.h.

◆ MovingImageType

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
using itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::MovingImageType = TMovingImage

Definition at line 120 of file itkLandmarkBasedTransformInitializer.h.

◆ OutputVectorType

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
using itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::OutputVectorType = typename TransformType::OutputVectorType

Definition at line 136 of file itkLandmarkBasedTransformInitializer.h.

◆ ParametersType

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
using itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::ParametersType = typename TransformType::ParametersType

Definition at line 143 of file itkLandmarkBasedTransformInitializer.h.

◆ ParametersValueType

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
using itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::ParametersValueType = typename ParametersType::ValueType

Definition at line 144 of file itkLandmarkBasedTransformInitializer.h.

◆ Pointer

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
using itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::Pointer = SmartPointer<Self>

Definition at line 98 of file itkLandmarkBasedTransformInitializer.h.

◆ PointsContainerConstIterator

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
using itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::PointsContainerConstIterator = typename LandmarkPointContainer::const_iterator

Definition at line 141 of file itkLandmarkBasedTransformInitializer.h.

◆ PointType3D

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
using itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::PointType3D = Point<double, 3>

Definition at line 138 of file itkLandmarkBasedTransformInitializer.h.

◆ Rigid2DTransformType

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
using itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::Rigid2DTransformType = Rigid2DTransform<ParametersValueType>

Definition at line 174 of file itkLandmarkBasedTransformInitializer.h.

◆ Self

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
using itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::Self = LandmarkBasedTransformInitializer

Standard class type aliases.

Definition at line 96 of file itkLandmarkBasedTransformInitializer.h.

◆ Similarity3DTransformType

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
using itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::Similarity3DTransformType = Similarity3DTransform<ParametersValueType>

Definition at line 173 of file itkLandmarkBasedTransformInitializer.h.

◆ Superclass

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
using itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::Superclass = Object

Definition at line 97 of file itkLandmarkBasedTransformInitializer.h.

◆ TransformPointer

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
using itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::TransformPointer = typename TransformType::Pointer

Definition at line 109 of file itkLandmarkBasedTransformInitializer.h.

◆ TransformType

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
using itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::TransformType = TTransform

Type of the transform to initialize.

Definition at line 108 of file itkLandmarkBasedTransformInitializer.h.

◆ VersorRigid3DTransformType

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
using itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::VersorRigid3DTransformType = VersorRigid3DTransform<ParametersValueType>

Supported Transform type alias.

Definition at line 172 of file itkLandmarkBasedTransformInitializer.h.

Constructor & Destructor Documentation

◆ LandmarkBasedTransformInitializer()

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::LandmarkBasedTransformInitializer ( )
protecteddefault

◆ ~LandmarkBasedTransformInitializer()

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::~LandmarkBasedTransformInitializer ( )
overrideprotecteddefault

Member Function Documentation

◆ ComputeCentroid()

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
PointType3D itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::ComputeCentroid ( const  LandmarkPointContainer)
private

◆ CreateMatrix()

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
void itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::CreateMatrix ( itk::Matrix< ParametersValueType, 4, 4 > &  ,
const itk::Matrix< ParametersValueType, ImageDimension, ImageDimension  
)
private

◆ GetNameOfClass()

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
const char* itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::GetNameOfClass ( ) const
overridevirtual
See also
LightObject::GetNameOfClass()

Reimplemented from itk::Object.

◆ InitializeTransform()

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
virtual void itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::InitializeTransform ( )
virtual

Initialize the transform from the landmarks.

◆ InternalInitializeTransform() [1/6]

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
void itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::InternalInitializeTransform ( AffineTransformType )
private

Initializer for AffineTransform.

◆ InternalInitializeTransform() [2/6]

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
void itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::InternalInitializeTransform ( BSplineTransformType )
private

Initializer for BSplineTransform.

◆ InternalInitializeTransform() [3/6]

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
void itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::InternalInitializeTransform ( Rigid2DTransformType )
private

Initializer for Rigid2DTransform.

◆ InternalInitializeTransform() [4/6]

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
void itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::InternalInitializeTransform ( Similarity3DTransformType )
private

Initializer for Similarity3DTransform.

◆ InternalInitializeTransform() [5/6]

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
template<typename TTransform2 >
void itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::InternalInitializeTransform ( TTransform2 *  )
private

Fallback Initializer just sets transform to identity.

◆ InternalInitializeTransform() [6/6]

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
void itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::InternalInitializeTransform ( VersorRigid3DTransformType )
private

Initializer for VersorRigid3D.

◆ New()

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
static Pointer itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::New ( )
static

New macro for creation of through a Smart Pointer.

◆ PrintSelf()

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
void itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
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.

◆ SetBSplineNumberOfControlPoints()

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
virtual void itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::SetBSplineNumberOfControlPoints ( unsigned int  _arg)
virtual

Set the number of control points to define the parametric domain for the BSpline transform.

◆ SetFixedLandmarks()

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
void itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::SetFixedLandmarks ( const LandmarkPointContainer fixedLandmarks)
inline

Set the Fixed landmark point containers.

Definition at line 150 of file itkLandmarkBasedTransformInitializer.h.

◆ SetLandmarkWeight()

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
void itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::SetLandmarkWeight ( LandmarkWeightType landmarkWeight)
inline

Set the landmark weight point containers Weight includes diagonal elements of weight matrix.

Definition at line 166 of file itkLandmarkBasedTransformInitializer.h.

◆ SetMovingLandmarks()

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
void itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::SetMovingLandmarks ( const LandmarkPointContainer movingLandmarks)
inline

Set the Moving landmark point containers.

Definition at line 157 of file itkLandmarkBasedTransformInitializer.h.

◆ SetReferenceImage()

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
virtual void itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::SetReferenceImage ( const FixedImageType _arg)
virtual

Set the reference image to define the parametric domain for the BSpline transform.

◆ SetTransform()

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
virtual void itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::SetTransform ( TransformType _arg)
virtual

Set the transform to be initialized.

Member Data Documentation

◆ ImageDimension

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
constexpr unsigned int itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::ImageDimension = FixedImageType::ImageDimension
staticconstexpr

Determine the image dimension.

Definition at line 132 of file itkLandmarkBasedTransformInitializer.h.

◆ InputSpaceDimension

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

Dimension of parameters.

Definition at line 112 of file itkLandmarkBasedTransformInitializer.h.

◆ m_BSplineNumberOfControlPoints

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
unsigned int itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::m_BSplineNumberOfControlPoints { 4 }
private

Definition at line 230 of file itkLandmarkBasedTransformInitializer.h.

◆ m_FixedLandmarks

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
LandmarkPointContainer itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::m_FixedLandmarks {}
private

Definition at line 225 of file itkLandmarkBasedTransformInitializer.h.

◆ m_LandmarkWeight

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
LandmarkWeightType itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::m_LandmarkWeight {}
private

Weights for affine landmarks.

Definition at line 229 of file itkLandmarkBasedTransformInitializer.h.

◆ m_MovingLandmarks

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
LandmarkPointContainer itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::m_MovingLandmarks {}
private

Definition at line 226 of file itkLandmarkBasedTransformInitializer.h.

◆ m_ReferenceImage

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
FixedImagePointer itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::m_ReferenceImage {}
private

Definition at line 223 of file itkLandmarkBasedTransformInitializer.h.

◆ m_Transform

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
TransformPointer itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::m_Transform {}
private

Definition at line 224 of file itkLandmarkBasedTransformInitializer.h.

◆ OutputSpaceDimension

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

Definition at line 113 of file itkLandmarkBasedTransformInitializer.h.

◆ SplineOrder

template<typename TTransform , typename TFixedImage = itk::ImageBase<TTransform::InputSpaceDimension>, typename TMovingImage = itk::ImageBase<TTransform::OutputSpaceDimension>>
constexpr unsigned int itk::LandmarkBasedTransformInitializer< TTransform, TFixedImage, TMovingImage >::SplineOrder = 3
staticconstexpr

Definition at line 177 of file itkLandmarkBasedTransformInitializer.h.


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