go home Home | Main Page | Topics | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elastix::ElastixTemplate< TFixedImage, TMovingImage > Class Template Referencefinal

#include <elxElastixTemplate.h>

Detailed Description

template<typename TFixedImage, typename TMovingImage>
class elastix::ElastixTemplate< TFixedImage, TMovingImage >

The main elastix class, which connects components and invokes the BeforeRegistration(), BeforeEachResolution(), etc. methods.

The ElastixTemplate class ...

Parameters

WriteTransformParametersEachIteration: Controls whether to save a transform parameter file to disk in every iteration.
example: (WriteTransformParametersEachIteration "true")
This parameter can not be specified for each resolution separately. Default value: "false".

WriteTransformParametersEachResolution: Controls whether to save a transform parameter file to disk in every resolution.
example: (WriteTransformParametersEachResolution "true")
This parameter can not be specified for each resolution separately. Default value: "false".

UseDirectionCosines: Controls whether to use or ignore the direction cosines (world matrix, transform matrix) set in the images. Voxel spacing and image origin are always taken into account, regardless the setting of this parameter.
example: (UseDirectionCosines "true")
Default: true. Recommended: true. This parameter was introduced in elastix 4.3, with a default value of false for backward compabitility. From elastix 4.8 the default value has been changed to true. Setting it to false means that you choose to ignore important information from the image, which relates voxel coordinates to world coordinates. Ignoring it may easily lead to left/right swaps for example, which could skrew up a (medical) analysis.

Definition at line 103 of file elxElastixTemplate.h.

Inheritance diagram for elastix::ElastixTemplate< TFixedImage, TMovingImage >:

Public Types

using AfterEachIterationCommandPointer = typename AfterEachIterationCommandType::Pointer
using AfterEachIterationCommandType = itk::SimpleMemberCommand<Self>
using AfterEachResolutionCommandPointer = typename AfterEachResolutionCommandType::Pointer
using AfterEachResolutionCommandType = itk::SimpleMemberCommand<Self>
using BaseComponentType = BaseComponent
using BeforeEachResolutionCommandPointer = typename BeforeEachResolutionCommandType::Pointer
using BeforeEachResolutionCommandType = itk::SimpleMemberCommand<Self>
using ConstPointer = itk::SmartPointer<const Self>
using FixedImageDirectionType = typename FixedImageType::DirectionType
using FixedImagePointer = typename FixedImageType::Pointer
using FixedImagePyramidBaseType = FixedImagePyramidBase<Self>
using FixedImageType = TFixedImage
using FixedMaskPointer = typename FixedMaskType::Pointer
using FixedMaskType = itk::Image<MaskPixelType, FixedDimension>
using ImageSamplerBaseType = elx::ImageSamplerBase<Self>
using InputImageType = MovingImageType
using InterpolatorBaseType = InterpolatorBase<Self>
using MaskPixelType = unsigned char
using MetricBaseType = MetricBase<Self>
using MovingImagePointer = typename MovingImageType::Pointer
using MovingImagePyramidBaseType = MovingImagePyramidBase<Self>
using MovingImageType = TMovingImage
using MovingMaskPointer = typename MovingMaskType::Pointer
using MovingMaskType = itk::Image<MaskPixelType, MovingDimension>
using OptimizerBaseType = OptimizerBase<Self>
using OutputImageType = MovingImageType
using ParameterMapType = itk::ParameterMapInterface::ParameterMapType
using Pointer = itk::SmartPointer<Self>
using PtrToMemberFunction = void (BaseComponentType::*)()
using PtrToMemberFunction2 = int (BaseComponentType::*)()
using RegistrationBaseType = RegistrationBase<Self>
using ResampleInterpolatorBaseType = ResampleInterpolatorBase<Self>
using ResamplerBaseType = ResamplerBase<Self>
using Self = ElastixTemplate
using Superclass = ElastixBase
using TransformBaseType = elx::TransformBase<Self>
Public Types inherited from elastix::ElastixBase
using ComponentDatabasePointer = ComponentDatabase::Pointer
using CoordinateType = double
using DataObjectContainerPointer = DataObjectContainerType::Pointer
using DataObjectContainerType = itk::VectorContainer<unsigned int, DataObjectPointer>
using DataObjectPointer = itk::DataObject::Pointer
using DBIndexType = ComponentDatabase::IndexType
using FileNameContainerPointer = FileNameContainerType::Pointer
using FileNameContainerType = itk::VectorContainer<unsigned int, std::string>
using FlatDirectionCosinesType = std::vector<double>
using ObjectContainerPointer = ObjectContainerType::Pointer
using ObjectContainerType = itk::VectorContainer<unsigned int, ObjectPointer>
using ObjectPointer = itk::Object::Pointer
using ParameterMapType = itk::ParameterMapInterface::ParameterMapType
using ResultDeformationFieldType = itk::DataObject
using ResultImageType = itk::DataObject
using Self = ElastixBase
using Superclass = BaseComponent

Public Member Functions

void AfterEachIteration () override
void AfterEachResolution () override
void AfterRegistration () override
int ApplyTransform (bool doReadTransform) override
int BeforeAll () override
int BeforeAllTransformix ()
void BeforeEachResolution () override
void BeforeRegistration () override
 elxGetBaseMacro (FixedImagePyramid, FixedImagePyramidBaseType)
 elxGetBaseMacro (ImageSampler, ImageSamplerBaseType)
 elxGetBaseMacro (Interpolator, InterpolatorBaseType)
 elxGetBaseMacro (Metric, MetricBaseType)
 elxGetBaseMacro (MovingImagePyramid, MovingImagePyramidBaseType)
 elxGetBaseMacro (Optimizer, OptimizerBaseType)
 elxGetBaseMacro (Registration, RegistrationBaseType)
 elxGetBaseMacro (ResampleInterpolator, ResampleInterpolatorBaseType)
 elxGetBaseMacro (Resampler, ResamplerBaseType)
 elxGetBaseMacro (Transform, TransformBaseType)
virtual const char * GetCurrentTransformParameterFileName () const
FixedImageTypeGetFixedImage (unsigned int idx=0) const
FixedMaskTypeGetFixedMask (unsigned int idx=0) const
virtual unsigned int GetIterationCounter () const
MovingImageTypeGetMovingImage (unsigned int idx=0) const
MovingMaskTypeGetMovingMask (unsigned int idx=0) const
bool GetOriginalFixedImageDirection (FixedImageDirectionType &direction) const
 ITK_DISALLOW_COPY_AND_MOVE (ElastixTemplate)
 itkOverrideGetNameOfClassMacro (ElastixTemplate)
 itkStaticConstMacro (Dimension, unsigned int, FixedImageType::ImageDimension)
 itkStaticConstMacro (FixedDimension, unsigned int, FixedImageType::ImageDimension)
 itkStaticConstMacro (MovingDimension, unsigned int, MovingImageType::ImageDimension)
int Run () override
Public Member Functions inherited from elastix::ElastixBase
void AddTargetCellToIterationInfo (const char *const name)
int BeforeAllBase () override
int BeforeAllTransformixBase ()
 elxGetNumberOfMacro (FixedImage)
 elxGetNumberOfMacro (FixedImageFileName)
 elxGetNumberOfMacro (FixedImagePyramid)
 elxGetNumberOfMacro (FixedMask)
 elxGetNumberOfMacro (FixedMaskFileName)
 elxGetNumberOfMacro (ImageSampler)
 elxGetNumberOfMacro (Interpolator)
 elxGetNumberOfMacro (Metric)
 elxGetNumberOfMacro (MovingImage)
 elxGetNumberOfMacro (MovingImageFileName)
 elxGetNumberOfMacro (MovingImagePyramid)
 elxGetNumberOfMacro (MovingMask)
 elxGetNumberOfMacro (MovingMaskFileName)
 elxGetNumberOfMacro (Optimizer)
 elxGetNumberOfMacro (Registration)
 elxGetNumberOfMacro (ResampleInterpolator)
 elxGetNumberOfMacro (Resampler)
 elxGetNumberOfMacro (ResultDeformationField)
 elxGetNumberOfMacro (ResultImage)
 elxGetNumberOfMacro (Transform)
 elxGetObjectMacro (Configuration, Configuration)
 elxGetObjectMacro (FinalTransform, itk::Object)
 elxGetObjectMacro (FixedImageContainer, DataObjectContainerType)
 elxGetObjectMacro (FixedImageFileNameContainer, FileNameContainerType)
 elxGetObjectMacro (FixedImagePyramidContainer, ObjectContainerType)
 elxGetObjectMacro (FixedMaskContainer, DataObjectContainerType)
 elxGetObjectMacro (FixedMaskFileNameContainer, FileNameContainerType)
 elxGetObjectMacro (FixedPoints, const itk::Object)
 elxGetObjectMacro (ImageSamplerContainer, ObjectContainerType)
 elxGetObjectMacro (InitialTransform, itk::Object)
 elxGetObjectMacro (InterpolatorContainer, ObjectContainerType)
 elxGetObjectMacro (MetricContainer, ObjectContainerType)
 elxGetObjectMacro (MovingImageContainer, DataObjectContainerType)
 elxGetObjectMacro (MovingImageFileNameContainer, FileNameContainerType)
 elxGetObjectMacro (MovingImagePyramidContainer, ObjectContainerType)
 elxGetObjectMacro (MovingMaskContainer, DataObjectContainerType)
 elxGetObjectMacro (MovingMaskFileNameContainer, FileNameContainerType)
 elxGetObjectMacro (MovingPoints, const itk::Object)
 elxGetObjectMacro (OptimizerContainer, ObjectContainerType)
 elxGetObjectMacro (RegistrationContainer, ObjectContainerType)
 elxGetObjectMacro (ResampleInterpolatorContainer, ObjectContainerType)
 elxGetObjectMacro (ResamplerContainer, ObjectContainerType)
 elxGetObjectMacro (ResultDeformationFieldContainer, DataObjectContainerType)
 elxGetObjectMacro (ResultImageContainer, DataObjectContainerType)
 elxGetObjectMacro (TransformContainer, ObjectContainerType)
 elxSetObjectMacro (Configuration, Configuration)
 elxSetObjectMacro (FinalTransform, itk::Object)
 elxSetObjectMacro (FixedImageContainer, DataObjectContainerType)
 elxSetObjectMacro (FixedImageFileNameContainer, FileNameContainerType)
 elxSetObjectMacro (FixedImagePyramidContainer, ObjectContainerType)
 elxSetObjectMacro (FixedMaskContainer, DataObjectContainerType)
 elxSetObjectMacro (FixedMaskFileNameContainer, FileNameContainerType)
 elxSetObjectMacro (FixedPoints, const itk::Object)
 elxSetObjectMacro (ImageSamplerContainer, ObjectContainerType)
 elxSetObjectMacro (InitialTransform, itk::Object)
 elxSetObjectMacro (InterpolatorContainer, ObjectContainerType)
 elxSetObjectMacro (MetricContainer, ObjectContainerType)
 elxSetObjectMacro (MovingImageContainer, DataObjectContainerType)
 elxSetObjectMacro (MovingImageFileNameContainer, FileNameContainerType)
 elxSetObjectMacro (MovingImagePyramidContainer, ObjectContainerType)
 elxSetObjectMacro (MovingMaskContainer, DataObjectContainerType)
 elxSetObjectMacro (MovingMaskFileNameContainer, FileNameContainerType)
 elxSetObjectMacro (MovingPoints, const itk::Object)
 elxSetObjectMacro (OptimizerContainer, ObjectContainerType)
 elxSetObjectMacro (RegistrationContainer, ObjectContainerType)
 elxSetObjectMacro (ResampleInterpolatorContainer, ObjectContainerType)
 elxSetObjectMacro (ResamplerContainer, ObjectContainerType)
 elxSetObjectMacro (ResultDeformationFieldContainer, DataObjectContainerType)
 elxSetObjectMacro (ResultImageContainer, DataObjectContainerType)
 elxSetObjectMacro (TransformContainer, ObjectContainerType)
DBIndexType GetDBIndex ()
IterationInfoGetIterationInfo ()
std::ostream & GetIterationInfoAt (const char *const name)
vcl_size_t GetNumberOfTransformConfigurations () const
const FlatDirectionCosinesTypeGetOriginalFixedImageDirectionFlat () const
Configuration::ConstPointer GetPreviousTransformConfiguration (const Configuration &configuration) const
itk::Statistics::MersenneTwisterRandomVariateGenerator & GetRandomVariateGenerator ()
ResultDeformationFieldTypeGetResultDeformationField (unsigned int idx=0) const
ResultImageTypeGetResultImage (const unsigned int idx=0) const
Configuration::ConstPointer GetTransformConfiguration (const vcl_size_t index) const
ParameterMapType GetTransformParameterMap () const
bool GetUseDirectionCosines () const
 ITK_DISALLOW_COPY_AND_MOVE (ElastixBase)
void SetDBIndex (DBIndexType _arg)
void SetOriginalFixedImageDirectionFlat (const FlatDirectionCosinesType &arg)
void SetResultDeformationField (DataObjectPointer result_deformationfield)
void SetResultImage (DataObjectPointer result_image)
void SetTransformConfigurations (const std::vector< Configuration::ConstPointer > &configurations)
Public Member Functions inherited from elastix::BaseComponent
virtual void AfterEachIterationBase ()
virtual void AfterEachResolutionBase ()
virtual void AfterRegistrationBase ()
virtual void BeforeEachResolutionBase ()
virtual void BeforeRegistrationBase ()
virtual const char * elxGetClassName () const
const char * GetComponentLabel () const
 ITK_DISALLOW_COPY_AND_MOVE (BaseComponent)
 itkVirtualGetNameOfClassMacro (BaseComponent)
void SetComponentLabel (const char *label, unsigned int idx)

Static Public Member Functions

static Pointer New ()
Static Public Member Functions inherited from elastix::BaseComponent
template<typename TBaseComponent>
static auto AsITKBaseType (TBaseComponent *const baseComponent) -> decltype(baseComponent->GetAsITKBaseType())
static void InitializeElastixExecutable ()
static bool IsElastixLibrary ()

Private Member Functions

void CallInEachComponent (PtrToMemberFunction func)
int CallInEachComponentInt (PtrToMemberFunction2 func)
void ConfigureComponents (Self *This)
void CreateTransformParameterFile (const std::string &FileName, const bool ToLog)
void CreateTransformParameterMap () override
 ElastixTemplate ()=default
void OpenIterationInfoFile ()
void SetOriginalFixedImageDirection (const FixedImageDirectionType &arg)
 ~ElastixTemplate () override=default

Private Attributes

AfterEachIterationCommandPointer m_AfterEachIterationCommand {}
AfterEachResolutionCommandPointer m_AfterEachResolutionCommand {}
BeforeEachResolutionCommandPointer m_BeforeEachResolutionCommand {}

Additional Inherited Members

Protected Member Functions inherited from elastix::ElastixBase
 ElastixBase ()
 ~ElastixBase () override=default
Protected Member Functions inherited from elastix::BaseComponent
 BaseComponent ()=default
virtual ~BaseComponent ()=default
Static Protected Member Functions inherited from elastix::ElastixBase
static DataObjectContainerPointer GenerateDataObjectContainer (DataObjectPointer dataObject)
Protected Attributes inherited from elastix::ElastixBase
std::string m_CurrentTransformParameterFileName
DBIndexType m_DBIndex { 0 }
unsigned int m_IterationCounter {}
std::ofstream m_IterationInfoFile
itk::TimeProbe m_IterationTimer {}
FlatDirectionCosinesType m_OriginalFixedImageDirectionFlat
itk::TimeProbe m_ResolutionTimer {}
itk::TimeProbe m_Timer0 {}
ParameterMapType m_TransformParameterMap

Member Typedef Documentation

◆ AfterEachIterationCommandPointer

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::AfterEachIterationCommandPointer = typename AfterEachIterationCommandType::Pointer

Definition at line 154 of file elxElastixTemplate.h.

◆ AfterEachIterationCommandType

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::AfterEachIterationCommandType = itk::SimpleMemberCommand<Self>

Definition at line 151 of file elxElastixTemplate.h.

◆ AfterEachResolutionCommandPointer

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::AfterEachResolutionCommandPointer = typename AfterEachResolutionCommandType::Pointer

Definition at line 153 of file elxElastixTemplate.h.

◆ AfterEachResolutionCommandType

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::AfterEachResolutionCommandType = itk::SimpleMemberCommand<Self>

Definition at line 150 of file elxElastixTemplate.h.

◆ BaseComponentType

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::BaseComponentType = BaseComponent

BaseComponent.

Definition at line 142 of file elxElastixTemplate.h.

◆ BeforeEachResolutionCommandPointer

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::BeforeEachResolutionCommandPointer = typename BeforeEachResolutionCommandType::Pointer

Definition at line 152 of file elxElastixTemplate.h.

◆ BeforeEachResolutionCommandType

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::BeforeEachResolutionCommandType = itk::SimpleMemberCommand<Self>

Commands that react on Events and call Self::Function().

Definition at line 149 of file elxElastixTemplate.h.

◆ ConstPointer

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::ConstPointer = itk::SmartPointer<const Self>

Definition at line 112 of file elxElastixTemplate.h.

◆ FixedImageDirectionType

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::FixedImageDirectionType = typename FixedImageType::DirectionType

Typedef for the UseDirectionCosines option.

Definition at line 139 of file elxElastixTemplate.h.

◆ FixedImagePointer

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::FixedImagePointer = typename FixedImageType::Pointer

Definition at line 123 of file elxElastixTemplate.h.

◆ FixedImagePyramidBaseType

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::FixedImagePyramidBaseType = FixedImagePyramidBase<Self>

The elastix basecomponent types.

Definition at line 157 of file elxElastixTemplate.h.

◆ FixedImageType

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::FixedImageType = TFixedImage

Typedef's for this class.

Definition at line 121 of file elxElastixTemplate.h.

◆ FixedMaskPointer

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::FixedMaskPointer = typename FixedMaskType::Pointer

Definition at line 135 of file elxElastixTemplate.h.

◆ FixedMaskType

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::FixedMaskType = itk::Image<MaskPixelType, FixedDimension>

Definition at line 133 of file elxElastixTemplate.h.

◆ ImageSamplerBaseType

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::ImageSamplerBaseType = elx::ImageSamplerBase<Self>

Definition at line 160 of file elxElastixTemplate.h.

◆ InputImageType

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::InputImageType = MovingImageType

Typedef's for ApplyTransform.

Todo
How useful is this? It is not consequently supported, since the the input image is stored in the MovingImageContainer anyway.

Definition at line 172 of file elxElastixTemplate.h.

◆ InterpolatorBaseType

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::InterpolatorBaseType = InterpolatorBase<Self>

Definition at line 159 of file elxElastixTemplate.h.

◆ MaskPixelType

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::MaskPixelType = unsigned char

Types for the masks.

Definition at line 132 of file elxElastixTemplate.h.

◆ MetricBaseType

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::MetricBaseType = MetricBase<Self>

Definition at line 161 of file elxElastixTemplate.h.

◆ MovingImagePointer

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::MovingImagePointer = typename MovingImageType::Pointer

Definition at line 124 of file elxElastixTemplate.h.

◆ MovingImagePyramidBaseType

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::MovingImagePyramidBaseType = MovingImagePyramidBase<Self>

Definition at line 158 of file elxElastixTemplate.h.

◆ MovingImageType

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::MovingImageType = TMovingImage

Definition at line 122 of file elxElastixTemplate.h.

◆ MovingMaskPointer

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::MovingMaskPointer = typename MovingMaskType::Pointer

Definition at line 136 of file elxElastixTemplate.h.

◆ MovingMaskType

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::MovingMaskType = itk::Image<MaskPixelType, MovingDimension>

Definition at line 134 of file elxElastixTemplate.h.

◆ OptimizerBaseType

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::OptimizerBaseType = OptimizerBase<Self>

Definition at line 162 of file elxElastixTemplate.h.

◆ OutputImageType

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::OutputImageType = MovingImageType

Definition at line 173 of file elxElastixTemplate.h.

◆ ParameterMapType

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::ParameterMapType = itk::ParameterMapInterface::ParameterMapType

Typedef that is used in the elastix dll version.

Definition at line 176 of file elxElastixTemplate.h.

◆ Pointer

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::Pointer = itk::SmartPointer<Self>

Definition at line 111 of file elxElastixTemplate.h.

◆ PtrToMemberFunction

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::PtrToMemberFunction = void (BaseComponentType::*)()

A Pointer to a member function of a BaseComponentType.

Definition at line 145 of file elxElastixTemplate.h.

◆ PtrToMemberFunction2

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::PtrToMemberFunction2 = int (BaseComponentType::*)()

Definition at line 146 of file elxElastixTemplate.h.

◆ RegistrationBaseType

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::RegistrationBaseType = RegistrationBase<Self>

Definition at line 163 of file elxElastixTemplate.h.

◆ ResampleInterpolatorBaseType

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::ResampleInterpolatorBaseType = ResampleInterpolatorBase<Self>

Definition at line 165 of file elxElastixTemplate.h.

◆ ResamplerBaseType

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::ResamplerBaseType = ResamplerBase<Self>

Definition at line 164 of file elxElastixTemplate.h.

◆ Self

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::Self = ElastixTemplate

Standard itk.

Definition at line 109 of file elxElastixTemplate.h.

◆ Superclass

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::Superclass = ElastixBase

Definition at line 110 of file elxElastixTemplate.h.

◆ TransformBaseType

template<typename TFixedImage, typename TMovingImage>
using elastix::ElastixTemplate< TFixedImage, TMovingImage >::TransformBaseType = elx::TransformBase<Self>

Definition at line 166 of file elxElastixTemplate.h.

Constructor & Destructor Documentation

◆ ElastixTemplate()

template<typename TFixedImage, typename TMovingImage>
elastix::ElastixTemplate< TFixedImage, TMovingImage >::ElastixTemplate ( )
privatedefault

◆ ~ElastixTemplate()

template<typename TFixedImage, typename TMovingImage>
elastix::ElastixTemplate< TFixedImage, TMovingImage >::~ElastixTemplate ( )
overrideprivatedefault

Member Function Documentation

◆ AfterEachIteration()

template<typename TFixedImage, typename TMovingImage>
void elastix::ElastixTemplate< TFixedImage, TMovingImage >::AfterEachIteration ( )
overridevirtual

Reimplemented from elastix::BaseComponent.

◆ AfterEachResolution()

template<typename TFixedImage, typename TMovingImage>
void elastix::ElastixTemplate< TFixedImage, TMovingImage >::AfterEachResolution ( )
overridevirtual

Reimplemented from elastix::BaseComponent.

◆ AfterRegistration()

template<typename TFixedImage, typename TMovingImage>
void elastix::ElastixTemplate< TFixedImage, TMovingImage >::AfterRegistration ( )
overridevirtual

Reimplemented from elastix::BaseComponent.

◆ ApplyTransform()

template<typename TFixedImage, typename TMovingImage>
int elastix::ElastixTemplate< TFixedImage, TMovingImage >::ApplyTransform ( bool doReadTransform)
overridevirtual

Implements elastix::ElastixBase.

◆ BeforeAll()

template<typename TFixedImage, typename TMovingImage>
int elastix::ElastixTemplate< TFixedImage, TMovingImage >::BeforeAll ( )
overridevirtual

The Callback functions.

Reimplemented from elastix::BaseComponent.

◆ BeforeAllTransformix()

template<typename TFixedImage, typename TMovingImage>
int elastix::ElastixTemplate< TFixedImage, TMovingImage >::BeforeAllTransformix ( )

◆ BeforeEachResolution()

template<typename TFixedImage, typename TMovingImage>
void elastix::ElastixTemplate< TFixedImage, TMovingImage >::BeforeEachResolution ( )
overridevirtual

Reimplemented from elastix::BaseComponent.

◆ BeforeRegistration()

template<typename TFixedImage, typename TMovingImage>
void elastix::ElastixTemplate< TFixedImage, TMovingImage >::BeforeRegistration ( )
overridevirtual

Reimplemented from elastix::BaseComponent.

◆ CallInEachComponent()

template<typename TFixedImage, typename TMovingImage>
void elastix::ElastixTemplate< TFixedImage, TMovingImage >::CallInEachComponent ( PtrToMemberFunction func)
private

Used by the callback functions, BeforeEachResolution() etc.). This method calls a function in each component, in the following order:

  • Registration
  • Transform
  • ImageSampler
  • Metric
  • Interpolator
  • Optimizer
  • FixedImagePyramid
  • MovingImagePyramid
  • ResampleInterpolator
  • Resampler

◆ CallInEachComponentInt()

template<typename TFixedImage, typename TMovingImage>
int elastix::ElastixTemplate< TFixedImage, TMovingImage >::CallInEachComponentInt ( PtrToMemberFunction2 func)
private

◆ ConfigureComponents()

template<typename TFixedImage, typename TMovingImage>
void elastix::ElastixTemplate< TFixedImage, TMovingImage >::ConfigureComponents ( Self * This)
private

Call in each component SetElastix(This) and set its ComponentLabel (for example "Metric1"). This makes sure that the component knows its own function in the registration process.

◆ CreateTransformParameterFile()

template<typename TFixedImage, typename TMovingImage>
void elastix::ElastixTemplate< TFixedImage, TMovingImage >::CreateTransformParameterFile ( const std::string & FileName,
const bool ToLog )
private

CreateTransformParameterFile.

◆ CreateTransformParameterMap()

template<typename TFixedImage, typename TMovingImage>
void elastix::ElastixTemplate< TFixedImage, TMovingImage >::CreateTransformParameterMap ( )
overrideprivatevirtual

CreateTransformParameterMap.

Implements elastix::ElastixBase.

◆ elxGetBaseMacro() [1/10]

template<typename TFixedImage, typename TMovingImage>
elastix::ElastixTemplate< TFixedImage, TMovingImage >::elxGetBaseMacro ( FixedImagePyramid ,
FixedImagePyramidBaseType  )

Functions to set/get pointers to the elastix components. Get the components as pointers to elxBaseType.

◆ elxGetBaseMacro() [2/10]

template<typename TFixedImage, typename TMovingImage>
elastix::ElastixTemplate< TFixedImage, TMovingImage >::elxGetBaseMacro ( ImageSampler ,
ImageSamplerBaseType  )

◆ elxGetBaseMacro() [3/10]

template<typename TFixedImage, typename TMovingImage>
elastix::ElastixTemplate< TFixedImage, TMovingImage >::elxGetBaseMacro ( Interpolator ,
InterpolatorBaseType  )

◆ elxGetBaseMacro() [4/10]

template<typename TFixedImage, typename TMovingImage>
elastix::ElastixTemplate< TFixedImage, TMovingImage >::elxGetBaseMacro ( Metric ,
MetricBaseType  )

◆ elxGetBaseMacro() [5/10]

template<typename TFixedImage, typename TMovingImage>
elastix::ElastixTemplate< TFixedImage, TMovingImage >::elxGetBaseMacro ( MovingImagePyramid ,
MovingImagePyramidBaseType  )

◆ elxGetBaseMacro() [6/10]

template<typename TFixedImage, typename TMovingImage>
elastix::ElastixTemplate< TFixedImage, TMovingImage >::elxGetBaseMacro ( Optimizer ,
OptimizerBaseType  )

◆ elxGetBaseMacro() [7/10]

template<typename TFixedImage, typename TMovingImage>
elastix::ElastixTemplate< TFixedImage, TMovingImage >::elxGetBaseMacro ( Registration ,
RegistrationBaseType  )

◆ elxGetBaseMacro() [8/10]

template<typename TFixedImage, typename TMovingImage>
elastix::ElastixTemplate< TFixedImage, TMovingImage >::elxGetBaseMacro ( ResampleInterpolator ,
ResampleInterpolatorBaseType  )

◆ elxGetBaseMacro() [9/10]

template<typename TFixedImage, typename TMovingImage>
elastix::ElastixTemplate< TFixedImage, TMovingImage >::elxGetBaseMacro ( Resampler ,
ResamplerBaseType  )

◆ elxGetBaseMacro() [10/10]

template<typename TFixedImage, typename TMovingImage>
elastix::ElastixTemplate< TFixedImage, TMovingImage >::elxGetBaseMacro ( Transform ,
TransformBaseType  )

◆ GetCurrentTransformParameterFileName()

template<typename TFixedImage, typename TMovingImage>
virtual const char * elastix::ElastixTemplate< TFixedImage, TMovingImage >::GetCurrentTransformParameterFileName ( ) const
virtual

Get the name of the current transform parameter file.

◆ GetFixedImage()

template<typename TFixedImage, typename TMovingImage>
FixedImageType * elastix::ElastixTemplate< TFixedImage, TMovingImage >::GetFixedImage ( unsigned int idx = 0) const

Get pointers to the images. They are obtained from the {Fixed,Moving}ImageContainer and casted to the appropriate type.

◆ GetFixedMask()

template<typename TFixedImage, typename TMovingImage>
FixedMaskType * elastix::ElastixTemplate< TFixedImage, TMovingImage >::GetFixedMask ( unsigned int idx = 0) const

Get pointers to the masks. They are obtained from the {Fixed,Moving}MaskContainer and casted to the appropriate type.

◆ GetIterationCounter()

template<typename TFixedImage, typename TMovingImage>
virtual unsigned int elastix::ElastixTemplate< TFixedImage, TMovingImage >::GetIterationCounter ( ) const
virtual

Get the iteration number.

◆ GetMovingImage()

template<typename TFixedImage, typename TMovingImage>
MovingImageType * elastix::ElastixTemplate< TFixedImage, TMovingImage >::GetMovingImage ( unsigned int idx = 0) const

◆ GetMovingMask()

template<typename TFixedImage, typename TMovingImage>
MovingMaskType * elastix::ElastixTemplate< TFixedImage, TMovingImage >::GetMovingMask ( unsigned int idx = 0) const

◆ GetOriginalFixedImageDirection()

template<typename TFixedImage, typename TMovingImage>
bool elastix::ElastixTemplate< TFixedImage, TMovingImage >::GetOriginalFixedImageDirection ( FixedImageDirectionType & direction) const

Get the original direction cosines of the fixed image. Returns false if it failed to determine the original fixed image direction. In that case the direction var is left unchanged. If no fixed image is present, it tries to read it from the parameter file.

◆ ITK_DISALLOW_COPY_AND_MOVE()

template<typename TFixedImage, typename TMovingImage>
elastix::ElastixTemplate< TFixedImage, TMovingImage >::ITK_DISALLOW_COPY_AND_MOVE ( ElastixTemplate< TFixedImage, TMovingImage > )

◆ itkOverrideGetNameOfClassMacro()

template<typename TFixedImage, typename TMovingImage>
elastix::ElastixTemplate< TFixedImage, TMovingImage >::itkOverrideGetNameOfClassMacro ( ElastixTemplate< TFixedImage, TMovingImage > )

Run-time type information (and related methods).

◆ itkStaticConstMacro() [1/3]

template<typename TFixedImage, typename TMovingImage>
elastix::ElastixTemplate< TFixedImage, TMovingImage >::itkStaticConstMacro ( Dimension ,
unsigned int ,
FixedImageType::ImageDimension  )

For using the Dimensions.

◆ itkStaticConstMacro() [2/3]

template<typename TFixedImage, typename TMovingImage>
elastix::ElastixTemplate< TFixedImage, TMovingImage >::itkStaticConstMacro ( FixedDimension ,
unsigned int ,
FixedImageType::ImageDimension  )

◆ itkStaticConstMacro() [3/3]

template<typename TFixedImage, typename TMovingImage>
elastix::ElastixTemplate< TFixedImage, TMovingImage >::itkStaticConstMacro ( MovingDimension ,
unsigned int ,
MovingImageType::ImageDimension  )

◆ New()

template<typename TFixedImage, typename TMovingImage>
Pointer elastix::ElastixTemplate< TFixedImage, TMovingImage >::New ( )
static

Method for creation through the object factory.

◆ OpenIterationInfoFile()

template<typename TFixedImage, typename TMovingImage>
void elastix::ElastixTemplate< TFixedImage, TMovingImage >::OpenIterationInfoFile ( )
private

Open the IterationInfoFile, where the table with iteration info is written to.

◆ Run()

template<typename TFixedImage, typename TMovingImage>
int elastix::ElastixTemplate< TFixedImage, TMovingImage >::Run ( )
overridevirtual

Main functions: Run() for registration, and ApplyTransform() for just applying a transform to an image.

Implements elastix::ElastixBase.

◆ SetOriginalFixedImageDirection()

template<typename TFixedImage, typename TMovingImage>
void elastix::ElastixTemplate< TFixedImage, TMovingImage >::SetOriginalFixedImageDirection ( const FixedImageDirectionType & arg)
private

Set the direction in the superclass' m_OriginalFixedImageDirectionFlat variable

Member Data Documentation

◆ m_AfterEachIterationCommand

template<typename TFixedImage, typename TMovingImage>
AfterEachIterationCommandPointer elastix::ElastixTemplate< TFixedImage, TMovingImage >::m_AfterEachIterationCommand {}
private

Definition at line 263 of file elxElastixTemplate.h.

◆ m_AfterEachResolutionCommand

template<typename TFixedImage, typename TMovingImage>
AfterEachResolutionCommandPointer elastix::ElastixTemplate< TFixedImage, TMovingImage >::m_AfterEachResolutionCommand {}
private

Definition at line 264 of file elxElastixTemplate.h.

◆ m_BeforeEachResolutionCommand

template<typename TFixedImage, typename TMovingImage>
BeforeEachResolutionCommandPointer elastix::ElastixTemplate< TFixedImage, TMovingImage >::m_BeforeEachResolutionCommand {}
private

CallBack commands.

Definition at line 262 of file elxElastixTemplate.h.



Generated on 26-02-2026 for elastix by doxygen 1.16.1 (669aeeefca743c148e2d935b3d3c69535c7491e6) elastix logo