Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages |
#include <elxElastixTemplate.h>
The main elastix class, which connects components and invokes the BeforeRegistration(), BeforeEachResolution(), etc. methods.
The ElastixTemplate class ...
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 114 of file elxElastixTemplate.h.
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from elastix::BaseComponent | |
static std::string | ConvertSecondsToDHMS (const double totalSeconds, const unsigned int precision) |
static void | InitializeElastixExecutable () |
static bool | IsElastixLibrary () |
Protected Types | |
typedef Superclass2::MultipleImageLoader< FixedImageType > | FixedImageLoaderType |
typedef Superclass2::MultipleImageLoader< FixedMaskType > | FixedMaskLoaderType |
typedef Superclass2::MultipleImageLoader< MovingImageType > | MovingImageLoaderType |
typedef Superclass2::MultipleImageLoader< MovingMaskType > | MovingMaskLoaderType |
Protected Member Functions | |
void | CallInEachComponent (PtrToMemberFunction func) |
int | CallInEachComponentInt (PtrToMemberFunction2 func) |
virtual void | ConfigureComponents (Self *This) |
virtual void | CreateTransformParameterFile (const std::string FileName, const bool ToLog) |
void | CreateTransformParametersMap (void) override |
ElastixTemplate () | |
ParameterMapType | GetTransformParametersMap (void) const override |
virtual void | OpenIterationInfoFile (void) |
virtual void | SetOriginalFixedImageDirection (const FixedImageDirectionType &arg) |
~ElastixTemplate () override | |
Protected Member Functions inherited from elastix::ElastixBase | |
ElastixBase () | |
~ElastixBase () override=default | |
Protected Member Functions inherited from elastix::BaseComponent | |
BaseComponent ()=default | |
virtual | ~BaseComponent ()=default |
Private Member Functions | |
ElastixTemplate (const Self &) | |
void | operator= (const Self &) |
typedef AfterEachIterationCommandType::Pointer elastix::ElastixTemplate< TFixedImage, TMovingImage >::AfterEachIterationCommandPointer |
Definition at line 188 of file elxElastixTemplate.h.
typedef itk::SimpleMemberCommand< Self > elastix::ElastixTemplate< TFixedImage, TMovingImage >::AfterEachIterationCommandType |
Definition at line 185 of file elxElastixTemplate.h.
typedef AfterEachResolutionCommandType::Pointer elastix::ElastixTemplate< TFixedImage, TMovingImage >::AfterEachResolutionCommandPointer |
Definition at line 187 of file elxElastixTemplate.h.
typedef itk::SimpleMemberCommand< Self > elastix::ElastixTemplate< TFixedImage, TMovingImage >::AfterEachResolutionCommandType |
Definition at line 184 of file elxElastixTemplate.h.
typedef BaseComponent elastix::ElastixTemplate< TFixedImage, TMovingImage >::BaseComponentType |
Definition at line 176 of file elxElastixTemplate.h.
typedef BeforeEachResolutionCommandType::Pointer elastix::ElastixTemplate< TFixedImage, TMovingImage >::BeforeEachResolutionCommandPointer |
Definition at line 186 of file elxElastixTemplate.h.
typedef itk::SimpleMemberCommand< Self > elastix::ElastixTemplate< TFixedImage, TMovingImage >::BeforeEachResolutionCommandType |
Commands that react on Events and call Self::Function(void).
Definition at line 183 of file elxElastixTemplate.h.
typedef Superclass2::ConfigurationPointer elastix::ElastixTemplate< TFixedImage, TMovingImage >::ConfigurationPointer |
Definition at line 133 of file elxElastixTemplate.h.
typedef Superclass2::ConfigurationType elastix::ElastixTemplate< TFixedImage, TMovingImage >::ConfigurationType |
Typedefs inherited from Superclass2.
Definition at line 132 of file elxElastixTemplate.h.
typedef itk::SmartPointer< const Self > elastix::ElastixTemplate< TFixedImage, TMovingImage >::ConstPointer |
Definition at line 123 of file elxElastixTemplate.h.
typedef itk::CostFunction::ParametersValueType elastix::ElastixTemplate< TFixedImage, TMovingImage >::CoordRepType |
Type for representation of the transform coordinates.
Definition at line 173 of file elxElastixTemplate.h.
typedef Superclass2::DataObjectContainerPointer elastix::ElastixTemplate< TFixedImage, TMovingImage >::DataObjectContainerPointer |
Definition at line 142 of file elxElastixTemplate.h.
typedef Superclass2::DataObjectContainerType elastix::ElastixTemplate< TFixedImage, TMovingImage >::DataObjectContainerType |
Definition at line 139 of file elxElastixTemplate.h.
typedef Superclass2::DataObjectPointer elastix::ElastixTemplate< TFixedImage, TMovingImage >::DataObjectPointer |
Definition at line 137 of file elxElastixTemplate.h.
typedef Superclass2::DataObjectType elastix::ElastixTemplate< TFixedImage, TMovingImage >::DataObjectType |
Definition at line 135 of file elxElastixTemplate.h.
typedef Superclass2::FileNameContainerPointer elastix::ElastixTemplate< TFixedImage, TMovingImage >::FileNameContainerPointer |
Definition at line 143 of file elxElastixTemplate.h.
typedef Superclass2::FileNameContainerType elastix::ElastixTemplate< TFixedImage, TMovingImage >::FileNameContainerType |
Definition at line 140 of file elxElastixTemplate.h.
typedef FixedImageType::DirectionType elastix::ElastixTemplate< TFixedImage, TMovingImage >::FixedImageDirectionType |
Typedef for the UseDirectionCosines option.
Definition at line 170 of file elxElastixTemplate.h.
|
protected |
Classes that contain a function to load multiple images, given a filename container.
Definition at line 344 of file elxElastixTemplate.h.
typedef FixedImageType::Pointer elastix::ElastixTemplate< TFixedImage, TMovingImage >::FixedImagePointer |
Definition at line 148 of file elxElastixTemplate.h.
typedef FixedImagePyramidBase< Self > elastix::ElastixTemplate< TFixedImage, TMovingImage >::FixedImagePyramidBaseType |
The elastix basecomponent types.
Definition at line 191 of file elxElastixTemplate.h.
typedef TFixedImage elastix::ElastixTemplate< TFixedImage, TMovingImage >::FixedImageType |
Typedef's for this class.
Definition at line 146 of file elxElastixTemplate.h.
|
protected |
Definition at line 346 of file elxElastixTemplate.h.
typedef FixedMaskType::Pointer elastix::ElastixTemplate< TFixedImage, TMovingImage >::FixedMaskPointer |
Definition at line 166 of file elxElastixTemplate.h.
typedef itk::Image< MaskPixelType, FixedDimension > elastix::ElastixTemplate< TFixedImage, TMovingImage >::FixedMaskType |
Definition at line 164 of file elxElastixTemplate.h.
typedef elx::ImageSamplerBase< Self > elastix::ElastixTemplate< TFixedImage, TMovingImage >::ImageSamplerBaseType |
Definition at line 194 of file elxElastixTemplate.h.
typedef MovingImageType elastix::ElastixTemplate< TFixedImage, TMovingImage >::InputImageType |
Typedef's for ApplyTransform.
Definition at line 209 of file elxElastixTemplate.h.
typedef InterpolatorBase< Self > elastix::ElastixTemplate< TFixedImage, TMovingImage >::InterpolatorBaseType |
Definition at line 193 of file elxElastixTemplate.h.
typedef unsigned char elastix::ElastixTemplate< TFixedImage, TMovingImage >::MaskPixelType |
Types for the masks.
Definition at line 163 of file elxElastixTemplate.h.
typedef MetricBase< Self > elastix::ElastixTemplate< TFixedImage, TMovingImage >::MetricBaseType |
Definition at line 195 of file elxElastixTemplate.h.
|
protected |
Definition at line 345 of file elxElastixTemplate.h.
typedef MovingImageType::Pointer elastix::ElastixTemplate< TFixedImage, TMovingImage >::MovingImagePointer |
Definition at line 149 of file elxElastixTemplate.h.
typedef MovingImagePyramidBase< Self > elastix::ElastixTemplate< TFixedImage, TMovingImage >::MovingImagePyramidBaseType |
Definition at line 192 of file elxElastixTemplate.h.
typedef TMovingImage elastix::ElastixTemplate< TFixedImage, TMovingImage >::MovingImageType |
Definition at line 147 of file elxElastixTemplate.h.
|
protected |
Definition at line 347 of file elxElastixTemplate.h.
typedef MovingMaskType::Pointer elastix::ElastixTemplate< TFixedImage, TMovingImage >::MovingMaskPointer |
Definition at line 167 of file elxElastixTemplate.h.
typedef itk::Image< MaskPixelType, MovingDimension > elastix::ElastixTemplate< TFixedImage, TMovingImage >::MovingMaskType |
Definition at line 165 of file elxElastixTemplate.h.
typedef Superclass2::ObjectContainerPointer elastix::ElastixTemplate< TFixedImage, TMovingImage >::ObjectContainerPointer |
Definition at line 141 of file elxElastixTemplate.h.
typedef Superclass2::ObjectContainerType elastix::ElastixTemplate< TFixedImage, TMovingImage >::ObjectContainerType |
Definition at line 138 of file elxElastixTemplate.h.
typedef Superclass2::ObjectPointer elastix::ElastixTemplate< TFixedImage, TMovingImage >::ObjectPointer |
Definition at line 136 of file elxElastixTemplate.h.
typedef Superclass2::ObjectType elastix::ElastixTemplate< TFixedImage, TMovingImage >::ObjectType |
Definition at line 134 of file elxElastixTemplate.h.
typedef OptimizerBase< Self > elastix::ElastixTemplate< TFixedImage, TMovingImage >::OptimizerBaseType |
Definition at line 196 of file elxElastixTemplate.h.
typedef MovingImageType elastix::ElastixTemplate< TFixedImage, TMovingImage >::OutputImageType |
Definition at line 210 of file elxElastixTemplate.h.
typedef itk::ParameterMapInterface::ParameterMapType elastix::ElastixTemplate< TFixedImage, TMovingImage >::ParameterMapType |
Typedef that is used in the elastix dll version.
Definition at line 213 of file elxElastixTemplate.h.
typedef itk::SmartPointer< Self > elastix::ElastixTemplate< TFixedImage, TMovingImage >::Pointer |
Definition at line 122 of file elxElastixTemplate.h.
typedef void(BaseComponentType::* elastix::ElastixTemplate< TFixedImage, TMovingImage >::PtrToMemberFunction) (void) |
A Pointer to a member function of a BaseComponentType.
Definition at line 179 of file elxElastixTemplate.h.
typedef int(BaseComponentType::* elastix::ElastixTemplate< TFixedImage, TMovingImage >::PtrToMemberFunction2) (void) |
Definition at line 180 of file elxElastixTemplate.h.
typedef RegistrationBase< Self > elastix::ElastixTemplate< TFixedImage, TMovingImage >::RegistrationBaseType |
Definition at line 197 of file elxElastixTemplate.h.
typedef ResampleInterpolatorBase< Self > elastix::ElastixTemplate< TFixedImage, TMovingImage >::ResampleInterpolatorBaseType |
Definition at line 199 of file elxElastixTemplate.h.
typedef ResamplerBase< Self > elastix::ElastixTemplate< TFixedImage, TMovingImage >::ResamplerBaseType |
Definition at line 198 of file elxElastixTemplate.h.
typedef itk::DataObject elastix::ElastixTemplate< TFixedImage, TMovingImage >::ResultDeformationFieldType |
Result deformation field
Definition at line 155 of file elxElastixTemplate.h.
typedef itk::DataObject elastix::ElastixTemplate< TFixedImage, TMovingImage >::ResultImageType |
Result image
Definition at line 152 of file elxElastixTemplate.h.
typedef ElastixTemplate elastix::ElastixTemplate< TFixedImage, TMovingImage >::Self |
Standard itk.
Definition at line 119 of file elxElastixTemplate.h.
typedef itk::Object elastix::ElastixTemplate< TFixedImage, TMovingImage >::Superclass1 |
Definition at line 120 of file elxElastixTemplate.h.
typedef ElastixBase elastix::ElastixTemplate< TFixedImage, TMovingImage >::Superclass2 |
Definition at line 121 of file elxElastixTemplate.h.
typedef itk::TimeProbe elastix::ElastixTemplate< TFixedImage, TMovingImage >::TimerType |
Typedef's for Timer class.
Definition at line 203 of file elxElastixTemplate.h.
typedef elx::TransformBase< Self > elastix::ElastixTemplate< TFixedImage, TMovingImage >::TransformBaseType |
Definition at line 200 of file elxElastixTemplate.h.
|
protected |
|
inlineoverrideprotected |
Definition at line 341 of file elxElastixTemplate.h.
|
private |
|
overridevirtual |
Reimplemented from elastix::BaseComponent.
|
overridevirtual |
Reimplemented from elastix::BaseComponent.
|
overridevirtual |
Reimplemented from elastix::BaseComponent.
|
overridevirtual |
Implements elastix::ElastixBase.
|
overridevirtual |
The Callback functions.
Reimplemented from elastix::BaseComponent.
|
virtual |
|
overridevirtual |
Reimplemented from elastix::BaseComponent.
|
overridevirtual |
Reimplemented from elastix::BaseComponent.
|
protected |
Used by the callback functions, BeforeEachResolution() etc.). This method calls a function in each component, in the following order:
|
protected |
|
protectedvirtual |
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.
|
protectedvirtual |
CreateTransformParameterFile.
|
overrideprotectedvirtual |
CreateTransformParametersMap.
Implements elastix::ElastixBase.
elastix::ElastixTemplate< TFixedImage, TMovingImage >::elxGetBaseMacro | ( | FixedImagePyramid | , |
FixedImagePyramidBaseType | |||
) |
Functions to set/get pointers to the elastix components. Get the components as pointers to elxBaseType.
elastix::ElastixTemplate< TFixedImage, TMovingImage >::elxGetBaseMacro | ( | ImageSampler | , |
ImageSamplerBaseType | |||
) |
elastix::ElastixTemplate< TFixedImage, TMovingImage >::elxGetBaseMacro | ( | Interpolator | , |
InterpolatorBaseType | |||
) |
elastix::ElastixTemplate< TFixedImage, TMovingImage >::elxGetBaseMacro | ( | Metric | , |
MetricBaseType | |||
) |
elastix::ElastixTemplate< TFixedImage, TMovingImage >::elxGetBaseMacro | ( | MovingImagePyramid | , |
MovingImagePyramidBaseType | |||
) |
elastix::ElastixTemplate< TFixedImage, TMovingImage >::elxGetBaseMacro | ( | Optimizer | , |
OptimizerBaseType | |||
) |
elastix::ElastixTemplate< TFixedImage, TMovingImage >::elxGetBaseMacro | ( | Registration | , |
RegistrationBaseType | |||
) |
elastix::ElastixTemplate< TFixedImage, TMovingImage >::elxGetBaseMacro | ( | ResampleInterpolator | , |
ResampleInterpolatorBaseType | |||
) |
elastix::ElastixTemplate< TFixedImage, TMovingImage >::elxGetBaseMacro | ( | Resampler | , |
ResamplerBaseType | |||
) |
elastix::ElastixTemplate< TFixedImage, TMovingImage >::elxGetBaseMacro | ( | Transform | , |
TransformBaseType | |||
) |
|
virtual |
Run-time type information (and related methods).
|
inlinevirtual |
Definition at line 326 of file elxElastixTemplate.h.
|
virtual |
Return configuration from vector of configurations. Library only.
|
virtual |
Get the name of the current transform parameter file.
|
virtual |
|
inlinevirtual |
Get pointers to the images. They are obtained from the {Fixed,Moving}ImageContainer and casted to the appropriate type.
Definition at line 232 of file elxElastixTemplate.h.
|
virtual |
|
inlinevirtual |
Get pointers to the masks. They are obtained from the {Fixed,Moving}MaskContainer and casted to the appropriate type.
Definition at line 251 of file elxElastixTemplate.h.
|
virtual |
Get the iteration number.
|
virtual |
|
inlinevirtual |
Definition at line 240 of file elxElastixTemplate.h.
|
virtual |
|
inlinevirtual |
Definition at line 259 of file elxElastixTemplate.h.
|
virtual |
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.
|
virtual |
|
inlinevirtual |
Definition at line 281 of file elxElastixTemplate.h.
|
virtual |
|
inlinevirtual |
Get pointers to the result image. They are obtained from the ResultImageContainer and casted to the appropriate type.
Definition at line 270 of file elxElastixTemplate.h.
|
overrideprotectedvirtual |
GetTransformParametersMap.
Implements elastix::ElastixBase.
elastix::ElastixTemplate< TFixedImage, TMovingImage >::itkStaticConstMacro | ( | Dimension | , |
unsigned int | , | ||
FixedImageType::ImageDimension | |||
) |
For using the Dimensions.
elastix::ElastixTemplate< TFixedImage, TMovingImage >::itkStaticConstMacro | ( | FixedDimension | , |
unsigned int | , | ||
FixedImageType::ImageDimension | |||
) |
elastix::ElastixTemplate< TFixedImage, TMovingImage >::itkStaticConstMacro | ( | MovingDimension | , |
unsigned int | , | ||
MovingImageType::ImageDimension | |||
) |
|
static |
Method for creation through the object factory.
|
protectedvirtual |
Open the IterationInfoFile, where the table with iteration info is written to.
|
private |
|
overridevirtual |
Main functions: Run() for registration, and ApplyTransform() for just applying a transform to an image.
Implements elastix::ElastixBase.
|
overridevirtual |
Set configuration vector. Library only.
Implements elastix::ElastixBase.
|
protectedvirtual |
Set the direction in the superclass' m_OriginalFixedImageDirection variable
|
virtual |
|
virtual |
|
protected |
Definition at line 351 of file elxElastixTemplate.h.
|
protected |
Definition at line 352 of file elxElastixTemplate.h.
|
protected |
CallBack commands.
Definition at line 350 of file elxElastixTemplate.h.
|
protected |
A vector of configuration objects, needed when transformix is used as library.
Definition at line 363 of file elxElastixTemplate.h.
|
protected |
Store the CurrentTransformParameterFileName.
Definition at line 360 of file elxElastixTemplate.h.
|
protected |
Count the number of iterations.
Definition at line 366 of file elxElastixTemplate.h.
|
protected |
Definition at line 384 of file elxElastixTemplate.h.
|
protected |
Definition at line 356 of file elxElastixTemplate.h.
|
protected |
Definition at line 357 of file elxElastixTemplate.h.
|
protected |
Timers.
Definition at line 355 of file elxElastixTemplate.h.
|
protected |
Stores transformation parameters map.
Definition at line 379 of file elxElastixTemplate.h.
Generated on 1667476801 for elastix by 1.9.4 |