go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
Public Types | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
elastix::TransformBase< TElastix > Class Template Referenceabstract

#include <elxTransformBase.h>

Detailed Description

template<class TElastix>
class elastix::TransformBase< TElastix >

This class is the elastix base class for all Transforms.

This class contains the common functionality for all Transforms.

The parameters used in this class are:

Parameters:
HowToCombineTransforms: Indicates how to use the initial transform
(given by the command-line argument -t0, or, if using multiple parameter files, by the result of registration using the previous parameter file). Possible options are "Add" and "Compose".
"Add" combines the initial transform $T_0$ and the current transform $T_1$ (which is currently optimized) by addition: $T(x) = T_0(x) + T_1(x)$;
"Compose" by composition: $T(x) = T_1 ( T_0(x) )$.
example: (HowToCombineTransforms "Add")
Default: "Add".
Transform Parameters:

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

HowToCombineTransforms: Indicates how to use the initial transform (given by the command-line argument -t0, or, if using multiple parameter files, by the result of registration using the previous parameter file). Possible options are "Add" and "Compose".
"Add" combines the initial transform $T_0$ and the current transform $T_1$ (which is currently optimized) by addition: $T(x) = T_0(x) + T_1(x)$;
"Compose" by composition: $T(x) = T_1 ( T_0(x) )$.
example: (HowToCombineTransforms "Add")
Default: "Compose".

Size: The size (number of voxels in each dimension) of the fixed image that was used during registration, and which is used for resampling the deformed moving image.
example: (Size 100 90 90)
Mandatory parameter.

Index: The starting index of the fixed image region that was used during registration, and which is used for resampling the deformed moving image.
example: (Index 0 0 0)
Currently always zero.

Spacing: The voxel spacing of the fixed image that was used during registration, and which is used for resampling the deformed moving image.
example: (Spacing 1.0 1.0 1.0)
Default: 1.0 for each dimension.

Origin: The origin (location of the first voxel in world coordinate) of the fixed image that was used during registration, and which is used for resampling the deformed moving image.
example: (Origin 5.0 10.0 11.0)
Default: 0.0 for each dimension.

Direction: The direction cosines matrix of the fixed image that was used during registration, and which is used for resampling the deformed moving image if the UseDirectionCosines parameter is set to "true".
example: (Direction -1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 0.1)
Default: identity matrix. Elements are sorted as follows: [ d11 d21 d31 d12 d22 d32 d13 d23 d33] (in 3D).

TransformParameters: the transform parameter vector that defines the transformation.
example (TransformParameters 0.03 1.0 0.2 ...)
The number of entries is stored the NumberOfParameters entry.

NumberOfParameters: the length of the transform parameter vector.
example (NumberOfParameters 722)

InitialTransformParametersFileName: The location/name of an initial transform that will be loaded when loading the current transform parameter file. Note that transform parameter file can also contain an initial transform. Recursively all transforms are thus automatically loaded when loading the last transform parameter file.
example (InitialTransformParametersFileName "./res/TransformParameters.0.txt")
The location is relative to the path from where elastix/transformix is started!
Default: "NoInitialTransform", which (obviously) means that there is no initial transform to be loaded.

The command line arguments used by this class are:

Command line arguments:

-t0: optional argument for elastix for specifying an initial transform parameter file.
example: -t0 TransformParameters.txt

-def: optional argument for transformix for specifying a set of points that have to be transformed.
example: -def inputPoints.txt
The inputPoints.txt file should be structured: first line should be "index" or "point", depending if the user supplies voxel indices or real world coordinates. The second line should be the number of points that should be transformed. The third and following lines give the indices or points.
It is also possible to deform all points, thereby generating a deformation field image. This is done by:
example: -def all

Definition at line 134 of file elxTransformBase.h.

Inheritance diagram for elastix::TransformBase< TElastix >:
Inheritance graph
[legend]

Public Types

using CombinationTransformType = itk::AdvancedCombinationTransform< CoordRepType, Self::FixedImageDimension >
 
using CommandLineArgumentMapType = Configuration ::CommandLineArgumentMapType
 
using CommandLineEntryType = Configuration ::CommandLineEntryType
 
using ComponentDescriptionType = ComponentDatabase::ComponentDescriptionType
 
using CoordRepType = ElastixBase::CoordRepType
 
using DeformationFieldImageType = itk::Image< VectorPixelType, FixedImageDimension >
 
using FixedImageType = typename TElastix::FixedImageType
 
using InitialTransformType = typename CombinationTransformType::InitialTransformType
 
using InputPointType = typename ITKBaseType::InputPointType
 
using ITKBaseType = CombinationTransformType
 
using ITKRegistrationType = typename RegistrationType::ITKBaseType
 
using MovingImageType = typename TElastix::MovingImageType
 
using OptimizerType = typename ITKRegistrationType::OptimizerType
 
using OutputPointType = typename ITKBaseType::OutputPointType
 
using ParameterMapType = typename TElastix::ParameterMapType
 
using ParametersType = itk::OptimizerParameters< ValueType >
 
using ProgressCommandType = elx::ProgressCommand
 
using PtrToCreator = ComponentDatabase::PtrToCreator
 
using RegistrationType = typename ElastixType::RegistrationBaseType
 
using ScalesType = typename OptimizerType::ScalesType
 
using Self = TransformBase
 
using SpatialJacobianDeterminantImageType = itk::Image< float, FixedImageDimension >
 
using SpatialJacobianMatrixImageType = itk::Image< itk::Matrix< float, MovingImageDimension, FixedImageDimension >, FixedImageDimension >
 
using Superclass = BaseComponentSE< TElastix >
 
using ValueType = double
 
using VectorPixelType = itk::Vector< float, FixedImageDimension >
 
- Public Types inherited from elastix::BaseComponentSE< TElastix >
using ConfigurationPointer = Configuration::Pointer
 
using ElastixType = TElastix
 
using RegistrationType = typename ElastixType::RegistrationBaseType
 
using Self = BaseComponentSE
 
using Superclass = BaseComponent
 

Public Member Functions

int BeforeAllTransformix ()
 
void ComputeAndWriteSpatialJacobianDeterminantImage () const
 
void ComputeAndWriteSpatialJacobianMatrixImage () const
 
SpatialJacobianDeterminantImageType::Pointer ComputeSpatialJacobianDeterminantImage () const
 
SpatialJacobianMatrixImageType::Pointer ComputeSpatialJacobianMatrixImage () const
 
void CreateTransformParametersMap (const ParametersType &param, ParameterMapType &parameterMap, const bool includeDerivedTransformParameters=true) const
 
ITKBaseTypeGetAsITKBaseType ()
 
const ITKBaseTypeGetAsITKBaseType () const
 
virtual const char * GetClassName () const
 
 ITK_DISALLOW_COPY_AND_MOVE (TransformBase)
 
 itkStaticConstMacro (FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
 
 itkStaticConstMacro (MovingImageDimension, unsigned int, MovingImageType::ImageDimension)
 
virtual void ReadFromFile ()
 
void ReadInitialTransformFromFile (const char *transformParameterFileName)
 
void SetFinalParameters ()
 
void SetInitialTransform (InitialTransformType *_arg)
 
void SetReadWriteTransformParameters (const bool _arg)
 
void SetTransformParametersFileName (const char *filename)
 
template<typename TMesh >
TMesh::Pointer TransformMesh (const TMesh &mesh) const
 
void TransformPoints () const
 
void WriteToFile (xl::xoutsimple &transformationParameterInfo, const ParametersType &param) const
 
- Public Member Functions inherited from elastix::BaseComponentSE< TElastix >
void AddTargetCellToIterationInfo (const char *const name)
 
ConfigurationGetConfiguration () const
 
ElastixTypeGetElastix () const
 
xl::xoutbaseGetIterationInfoAt (const char *const name)
 
RegistrationTypeGetRegistration () const
 
 ITK_DISALLOW_COPY_AND_MOVE (BaseComponentSE)
 
int RemoveTargetCellFromIterationInfo (const char *const name)
 
void SetConfiguration (Configuration *_arg)
 
void SetElastix (ElastixType *_arg)
 
- Public Member Functions inherited from elastix::BaseComponent
virtual void AfterEachIteration ()
 
virtual void AfterEachIterationBase ()
 
virtual void AfterEachResolution ()
 
virtual void AfterEachResolutionBase ()
 
virtual void AfterRegistration ()
 
virtual void AfterRegistrationBase ()
 
virtual int BeforeAll ()
 
virtual int BeforeAllBase ()
 
virtual void BeforeEachResolution ()
 
virtual void BeforeEachResolutionBase ()
 
virtual void BeforeRegistration ()
 
virtual void BeforeRegistrationBase ()
 
virtual const char * elxGetClassName () const
 
const char * GetComponentLabel () const
 
 ITK_DISALLOW_COPY_AND_MOVE (BaseComponent)
 
 itkTypeMacroNoParent (BaseComponent)
 
void SetComponentLabel (const char *label, unsigned int idx)
 

Protected Member Functions

void AutomaticScalesEstimation (ScalesType &scales) const
 
void AutomaticScalesEstimationStackTransform (const unsigned int numSubTransforms, ScalesType &scales) const
 
bool HasITKTransformParameters () const
 
 TransformBase ()=default
 
 ~TransformBase () override=default
 
- Protected Member Functions inherited from elastix::BaseComponentSE< TElastix >
 BaseComponentSE ()=default
 
 ~BaseComponentSE () override=default
 
- Protected Member Functions inherited from elastix::BaseComponent
 BaseComponent ()=default
 
virtual ~BaseComponent ()=default
 

Private Member Functions

void AfterRegistrationBase () override
 
int BeforeAllBase () override
 
void BeforeRegistrationBase () override
 
template<typename TImage >
auto CreateChangeInformationImageFilter (TImage *image) const
 
virtual ParameterMapType CreateDerivedTransformParametersMap () const =0
 
template<template< typename, typename > class TSource, typename TOutputImage >
auto CreateJacobianSource () const
 
 elxDeclarePureVirtualGetSelfMacro (ITKBaseType)
 
DeformationFieldImageType::Pointer GenerateDeformationFieldImage () const
 
const InitialTransformTypeGetInitialTransform () const
 
std::string GetInitialTransformParametersFileName () const
 
virtual const char * GetTransformParametersFileName () const
 
void ReadInitialTransformFromConfiguration (const Configuration::Pointer)
 
void TransformPointsAllPoints () const
 
void TransformPointsSomePoints (const std::string &filename) const
 
void TransformPointsSomePointsVTK (const std::string &filename) const
 
void WriteDeformationFieldImage (typename DeformationFieldImageType::Pointer) const
 
virtual void WriteDerivedTransformDataToFile () const
 

Private Attributes

ParametersType m_FinalParameters
 
bool m_ReadWriteTransformParameters { true }
 
ParametersType m_TransformParameters
 
std::string m_TransformParametersFileName
 

Additional Inherited Members

- 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 ()
 
- Protected Attributes inherited from elastix::BaseComponentSE< TElastix >
ConfigurationPointer m_Configuration {}
 
itk::WeakPointer< TElastix > m_Elastix {}
 
RegistrationTypem_Registration {}
 

Member Typedef Documentation

◆ CombinationTransformType

template<class TElastix >
using elastix::TransformBase< TElastix >::CombinationTransformType = itk::AdvancedCombinationTransform<CoordRepType, Self::FixedImageDimension>

Other typedef's.

Definition at line 171 of file elxTransformBase.h.

◆ CommandLineArgumentMapType

template<class TElastix >
using elastix::TransformBase< TElastix >::CommandLineArgumentMapType = Configuration ::CommandLineArgumentMapType

Definition at line 149 of file elxTransformBase.h.

◆ CommandLineEntryType

template<class TElastix >
using elastix::TransformBase< TElastix >::CommandLineEntryType = Configuration ::CommandLineEntryType

Definition at line 150 of file elxTransformBase.h.

◆ ComponentDescriptionType

template<class TElastix >
using elastix::TransformBase< TElastix >::ComponentDescriptionType = ComponentDatabase::ComponentDescriptionType

Typedef's from ComponentDatabase.

Definition at line 158 of file elxTransformBase.h.

◆ CoordRepType

template<class TElastix >
using elastix::TransformBase< TElastix >::CoordRepType = ElastixBase::CoordRepType

Elastix typedef's.

Definition at line 153 of file elxTransformBase.h.

◆ DeformationFieldImageType

template<class TElastix >
using elastix::TransformBase< TElastix >::DeformationFieldImageType = itk::Image<VectorPixelType, FixedImageDimension>

Definition at line 185 of file elxTransformBase.h.

◆ FixedImageType

template<class TElastix >
using elastix::TransformBase< TElastix >::FixedImageType = typename TElastix::FixedImageType

Definition at line 154 of file elxTransformBase.h.

◆ InitialTransformType

template<class TElastix >
using elastix::TransformBase< TElastix >::InitialTransformType = typename CombinationTransformType::InitialTransformType

Definition at line 173 of file elxTransformBase.h.

◆ InputPointType

template<class TElastix >
using elastix::TransformBase< TElastix >::InputPointType = typename ITKBaseType::InputPointType

Typedef's for TransformPoint.

Definition at line 180 of file elxTransformBase.h.

◆ ITKBaseType

template<class TElastix >
using elastix::TransformBase< TElastix >::ITKBaseType = CombinationTransformType

Definition at line 172 of file elxTransformBase.h.

◆ ITKRegistrationType

template<class TElastix >
using elastix::TransformBase< TElastix >::ITKRegistrationType = typename RegistrationType::ITKBaseType

Typedefs needed for AutomaticScalesEstimation function

Definition at line 188 of file elxTransformBase.h.

◆ MovingImageType

template<class TElastix >
using elastix::TransformBase< TElastix >::MovingImageType = typename TElastix::MovingImageType

Definition at line 155 of file elxTransformBase.h.

◆ OptimizerType

template<class TElastix >
using elastix::TransformBase< TElastix >::OptimizerType = typename ITKRegistrationType::OptimizerType

Definition at line 189 of file elxTransformBase.h.

◆ OutputPointType

template<class TElastix >
using elastix::TransformBase< TElastix >::OutputPointType = typename ITKBaseType::OutputPointType

Definition at line 181 of file elxTransformBase.h.

◆ ParameterMapType

template<class TElastix >
using elastix::TransformBase< TElastix >::ParameterMapType = typename TElastix::ParameterMapType

Typedef that is used in the elastix dll version.

Definition at line 199 of file elxTransformBase.h.

◆ ParametersType

template<class TElastix >
using elastix::TransformBase< TElastix >::ParametersType = itk::OptimizerParameters<ValueType>

Definition at line 177 of file elxTransformBase.h.

◆ ProgressCommandType

template<class TElastix >
using elastix::TransformBase< TElastix >::ProgressCommandType = elx::ProgressCommand

Typedef for the ProgressCommand.

Definition at line 162 of file elxTransformBase.h.

◆ PtrToCreator

template<class TElastix >
using elastix::TransformBase< TElastix >::PtrToCreator = ComponentDatabase::PtrToCreator

Definition at line 159 of file elxTransformBase.h.

◆ RegistrationType

template<class TElastix >
using elastix::BaseComponentSE< TElastix >::RegistrationType = typename ElastixType::RegistrationBaseType

RegistrationType; NB: this is the elx::RegistrationBase not an itk::Object or something like that.

Definition at line 65 of file elxBaseComponentSE.h.

◆ ScalesType

template<class TElastix >
using elastix::TransformBase< TElastix >::ScalesType = typename OptimizerType::ScalesType

Definition at line 190 of file elxTransformBase.h.

◆ Self

template<class TElastix >
using elastix::TransformBase< TElastix >::Self = TransformBase

Standard ITK stuff.

Definition at line 140 of file elxTransformBase.h.

◆ SpatialJacobianDeterminantImageType

template<class TElastix >
using elastix::TransformBase< TElastix >::SpatialJacobianDeterminantImageType = itk::Image<float, FixedImageDimension>

Typedefs for images of determinants of spatial Jacobian matrices, and images of spatial Jacobian matrices

Definition at line 193 of file elxTransformBase.h.

◆ SpatialJacobianMatrixImageType

template<class TElastix >
using elastix::TransformBase< TElastix >::SpatialJacobianMatrixImageType = itk::Image<itk::Matrix<float, MovingImageDimension, FixedImageDimension>, FixedImageDimension>

Definition at line 194 of file elxTransformBase.h.

◆ Superclass

template<class TElastix >
using elastix::TransformBase< TElastix >::Superclass = BaseComponentSE<TElastix>

Definition at line 141 of file elxTransformBase.h.

◆ ValueType

template<class TElastix >
using elastix::TransformBase< TElastix >::ValueType = double

Typedef's for parameters.

Definition at line 176 of file elxTransformBase.h.

◆ VectorPixelType

template<class TElastix >
using elastix::TransformBase< TElastix >::VectorPixelType = itk::Vector<float, FixedImageDimension>

Typedef's for TransformPointsAllPoints.

Definition at line 184 of file elxTransformBase.h.

Constructor & Destructor Documentation

◆ TransformBase()

template<class TElastix >
elastix::TransformBase< TElastix >::TransformBase ( )
protecteddefault

The default-constructor.

◆ ~TransformBase()

template<class TElastix >
elastix::TransformBase< TElastix >::~TransformBase ( )
overrideprotecteddefault

The destructor.

Member Function Documentation

◆ AfterRegistrationBase()

template<class TElastix >
void elastix::TransformBase< TElastix >::AfterRegistrationBase ( )
overrideprivatevirtual

Execute stuff after the registration:

  • Get and set the final parameters for the resampler.

Reimplemented from elastix::BaseComponent.

◆ AutomaticScalesEstimation()

template<class TElastix >
void elastix::TransformBase< TElastix >::AutomaticScalesEstimation ( ScalesType scales) const
protected

Estimate a scales vector AutomaticScalesEstimation works like this:

  • N=10000 points are sampled on a uniform grid on the fixed image.
  • Jacobians dT/dmu are computed
  • Scales_i = 1/N sum_x || dT / dmu_i ||^2

◆ AutomaticScalesEstimationStackTransform()

template<class TElastix >
void elastix::TransformBase< TElastix >::AutomaticScalesEstimationStackTransform ( const unsigned int  numSubTransforms,
ScalesType scales 
) const
protected

Estimate a scales vector for a stack transform (elxTranslationStackTransform, elxAffineStackTransform, ...) Instead of sampling along the n dimensions of the fixed image, it samples along n-1 dimensions. Then

  • N=10000 points are sampled.
  • Jacobians dT/dmu are computed
  • Scales_i = 1/N sum_x || dT / dmu_i ||^2

◆ BeforeAllBase()

template<class TElastix >
int elastix::TransformBase< TElastix >::BeforeAllBase ( )
overrideprivatevirtual

Execute stuff before everything else:

  • Check the appearance of an initial transform.

Reimplemented from elastix::BaseComponent.

◆ BeforeAllTransformix()

template<class TElastix >
int elastix::TransformBase< TElastix >::BeforeAllTransformix ( )

Execute stuff before the actual transformation:

  • Check the appearance of inputpoints to be transformed.

◆ BeforeRegistrationBase()

template<class TElastix >
void elastix::TransformBase< TElastix >::BeforeRegistrationBase ( )
overrideprivatevirtual

Execute stuff before the actual registration:

  • Set the initial transform and how to group transforms.

Reimplemented from elastix::BaseComponent.

◆ ComputeAndWriteSpatialJacobianDeterminantImage()

template<class TElastix >
void elastix::TransformBase< TElastix >::ComputeAndWriteSpatialJacobianDeterminantImage ( ) const

Computes the determinant of the spatial Jacobian and writes it to file.

◆ ComputeAndWriteSpatialJacobianMatrixImage()

template<class TElastix >
void elastix::TransformBase< TElastix >::ComputeAndWriteSpatialJacobianMatrixImage ( ) const

Computes the spatial Jacobian and writes it to file.

◆ ComputeSpatialJacobianDeterminantImage()

template<class TElastix >
SpatialJacobianDeterminantImageType::Pointer elastix::TransformBase< TElastix >::ComputeSpatialJacobianDeterminantImage ( ) const

Computes the spatial Jacobian determinant for each pixel, and returns the image.

◆ ComputeSpatialJacobianMatrixImage()

template<class TElastix >
SpatialJacobianMatrixImageType::Pointer elastix::TransformBase< TElastix >::ComputeSpatialJacobianMatrixImage ( ) const

Computes the spatial Jacobian matrix for each pixel, and returns the image.

◆ CreateChangeInformationImageFilter()

template<class TElastix >
template<typename TImage >
auto elastix::TransformBase< TElastix >::CreateChangeInformationImageFilter ( TImage *  image) const
inlineprivate

Creates an info changer that may change the direction of the image to the original value.

Definition at line 353 of file elxTransformBase.h.

◆ CreateDerivedTransformParametersMap()

template<class TElastix >
virtual ParameterMapType elastix::TransformBase< TElastix >::CreateDerivedTransformParametersMap ( ) const
privatepure virtual

◆ CreateJacobianSource()

template<class TElastix >
template<template< typename, typename > class TSource, typename TOutputImage >
auto elastix::TransformBase< TElastix >::CreateJacobianSource ( ) const
inlineprivate

Supports either TransformToDeterminantOfSpatialJacobianSource or TransformToSpatialJacobianSource as TSource.

Definition at line 329 of file elxTransformBase.h.

◆ CreateTransformParametersMap()

template<class TElastix >
void elastix::TransformBase< TElastix >::CreateTransformParametersMap ( const ParametersType param,
ParameterMapType parameterMap,
const bool  includeDerivedTransformParameters = true 
) const

Function to create transform-parameters map.

◆ elxDeclarePureVirtualGetSelfMacro()

template<class TElastix >
elastix::TransformBase< TElastix >::elxDeclarePureVirtualGetSelfMacro ( ITKBaseType  )
private

◆ GenerateDeformationFieldImage()

template<class TElastix >
DeformationFieldImageType::Pointer elastix::TransformBase< TElastix >::GenerateDeformationFieldImage ( ) const
private

Deprecation note: The plan is to split all Compute* and TransformPoints* functions into Generate* and Write* functions, since that would facilitate a proper library interface. To keep everything functional during the transition period we need to keep the orignal Compute* and TransformPoints* functions and let them just call Generate* and Write*. These functions should be considered marked deprecated. Function to transform all coordinates from fixed to moving image.

◆ GetAsITKBaseType() [1/2]

template<class TElastix >
ITKBaseType * elastix::TransformBase< TElastix >::GetAsITKBaseType ( )
inline

Retrieves this object as ITKBaseType.

Definition at line 203 of file elxTransformBase.h.

◆ GetAsITKBaseType() [2/2]

template<class TElastix >
const ITKBaseType * elastix::TransformBase< TElastix >::GetAsITKBaseType ( ) const
inline

Retrieves this object as ITKBaseType, to use in const functions.

Definition at line 211 of file elxTransformBase.h.

◆ GetClassName()

template<class TElastix >
virtual const char * elastix::TransformBase< TElastix >::GetClassName ( ) const
virtual

◆ GetInitialTransform()

template<class TElastix >
const InitialTransformType * elastix::TransformBase< TElastix >::GetInitialTransform ( ) const
private

Get the initial transform.

◆ GetInitialTransformParametersFileName()

template<class TElastix >
std::string elastix::TransformBase< TElastix >::GetInitialTransformParametersFileName ( ) const
inlineprivate

Definition at line 425 of file elxTransformBase.h.

◆ GetTransformParametersFileName()

template<class TElastix >
virtual const char * elastix::TransformBase< TElastix >::GetTransformParametersFileName ( ) const
privatevirtual

Get the TransformParametersFileName.

◆ HasITKTransformParameters()

template<class TElastix >
bool elastix::TransformBase< TElastix >::HasITKTransformParameters ( ) const
inlineprotected

Tells whether this transform is specified by TransformParameters from ITK

Definition at line 299 of file elxTransformBase.h.

◆ ITK_DISALLOW_COPY_AND_MOVE()

template<class TElastix >
elastix::TransformBase< TElastix >::ITK_DISALLOW_COPY_AND_MOVE ( TransformBase< TElastix >  )

◆ itkStaticConstMacro() [1/2]

template<class TElastix >
elastix::TransformBase< TElastix >::itkStaticConstMacro ( FixedImageDimension  ,
unsigned int  ,
FixedImageType::ImageDimension   
)

Get the dimension of the fixed image.

◆ itkStaticConstMacro() [2/2]

template<class TElastix >
elastix::TransformBase< TElastix >::itkStaticConstMacro ( MovingImageDimension  ,
unsigned int  ,
MovingImageType::ImageDimension   
)

Get the dimension of the moving image.

◆ ReadFromFile()

template<class TElastix >
virtual void elastix::TransformBase< TElastix >::ReadFromFile ( )
virtual

◆ ReadInitialTransformFromConfiguration()

template<class TElastix >
void elastix::TransformBase< TElastix >::ReadInitialTransformFromConfiguration ( const Configuration::Pointer  )
private

Function to read the initial transform parameters from the specified configuration object.

◆ ReadInitialTransformFromFile()

template<class TElastix >
void elastix::TransformBase< TElastix >::ReadInitialTransformFromFile ( const char *  transformParameterFileName)

Function to read the initial transform parameters from a file.

◆ SetFinalParameters()

template<class TElastix >
void elastix::TransformBase< TElastix >::SetFinalParameters ( )

Makes sure that the final parameters from the registration components are copied, set, and stored.

◆ SetInitialTransform()

template<class TElastix >
void elastix::TransformBase< TElastix >::SetInitialTransform ( InitialTransformType _arg)

Set the initial transform.

◆ SetReadWriteTransformParameters()

template<class TElastix >
void elastix::TransformBase< TElastix >::SetReadWriteTransformParameters ( const bool  _arg)

Macro for reading and writing the transform parameters in WriteToFile or not.

◆ SetTransformParametersFileName()

template<class TElastix >
void elastix::TransformBase< TElastix >::SetTransformParametersFileName ( const char *  filename)

Set the TransformParametersFileName.

◆ TransformMesh()

template<class TElastix >
template<typename TMesh >
TMesh::Pointer elastix::TransformBase< TElastix >::TransformMesh ( const TMesh &  mesh) const
inline

Transforms the specified mesh.

Definition at line 282 of file elxTransformBase.h.

◆ TransformPoints()

template<class TElastix >
void elastix::TransformBase< TElastix >::TransformPoints ( ) const

Function to transform coordinates from fixed to moving image.

◆ TransformPointsAllPoints()

template<class TElastix >
void elastix::TransformBase< TElastix >::TransformPointsAllPoints ( ) const
private

Legacy function that calls GenerateDeformationFieldImage and WriteDeformationFieldImage.

◆ TransformPointsSomePoints()

template<class TElastix >
void elastix::TransformBase< TElastix >::TransformPointsSomePoints ( const std::string &  filename) const
private

Function to transform coordinates from fixed to moving image.

◆ TransformPointsSomePointsVTK()

template<class TElastix >
void elastix::TransformBase< TElastix >::TransformPointsSomePointsVTK ( const std::string &  filename) const
private

Function to transform coordinates from fixed to moving image, given as VTK file.

◆ WriteDeformationFieldImage()

template<class TElastix >
void elastix::TransformBase< TElastix >::WriteDeformationFieldImage ( typename DeformationFieldImageType::Pointer  ) const
private

◆ WriteDerivedTransformDataToFile()

template<class TElastix >
virtual void elastix::TransformBase< TElastix >::WriteDerivedTransformDataToFile ( ) const
inlineprivatevirtual

Allows a derived transform class to write its data to file, by overriding this member function.

Reimplemented in elastix::BSplineTransformWithDiffusion< TElastix >, and elastix::DeformationFieldTransform< TElastix >.

Definition at line 441 of file elxTransformBase.h.

◆ WriteToFile()

template<class TElastix >
void elastix::TransformBase< TElastix >::WriteToFile ( xl::xoutsimple transformationParameterInfo,
const ParametersType param 
) const

Function to write transform-parameters to a file.

Field Documentation

◆ m_FinalParameters

template<class TElastix >
ParametersType elastix::TransformBase< TElastix >::m_FinalParameters
private

Definition at line 447 of file elxTransformBase.h.

◆ m_ReadWriteTransformParameters

template<class TElastix >
bool elastix::TransformBase< TElastix >::m_ReadWriteTransformParameters { true }
private

Boolean to decide whether or not the transform parameters are written.

Definition at line 450 of file elxTransformBase.h.

◆ m_TransformParameters

template<class TElastix >
ParametersType elastix::TransformBase< TElastix >::m_TransformParameters
private

Definition at line 446 of file elxTransformBase.h.

◆ m_TransformParametersFileName

template<class TElastix >
std::string elastix::TransformBase< TElastix >::m_TransformParametersFileName
private

Member variables.

Definition at line 445 of file elxTransformBase.h.



Generated on 2023-01-13 for elastix by doxygen 1.9.6 elastix logo