![]() |
Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages |
#include <elxSimilarityTransform.h>
A transform based on the itk SimilarityTransforms.
This transform is a rigid body transformation, with an isotropic scaling. In 2D, the order of parameters is:
[scale, rotation angle, translationx, translationy]
In 3D, the order of parameters is:
[versor1 versor2 versor3 translationx translationy translationz scale]
Make sure, when specifying the Scales manually that you keep in mind this order!
The parameters used in this class are:
Transform: Select this transform as follows:
(Transform "SimilarityTransform")
Scales: the scale factor between the rotations, translations, and the isotropic scaling, used in the optimizer.
example: (Scales 100000.0 60000.0 ... 80000.0)
With this transform, the number of arguments should be equal to the number of parameters: for each parameter its scale factor. If this parameter option is not used, by default the rotations are scaled by a factor of 100000.0 and the scale by a factor 10000.0. These are rather arbitrary values. See also the AutomaticScalesEstimation parameter. See also the comment in the documentation of SimilarityTransformElastix about the order of the parameters in 2D and 3D.
AutomaticScalesEstimation: if this parameter is set to "true" the Scales parameter is ignored and the scales are determined automatically.
example: ( AutomaticScalesEstimation "true" )
Default: "false" (for backwards compatibility). Recommended: "true".
CenterOfRotation: an index around which the image is rotated.
example: (CenterOfRotation 128 128 90)
By default the CenterOfRotation is set to the geometric center of the image.
AutomaticTransformInitialization: whether or not the initial translation between images should be estimated as the distance between their centers.
example: (AutomaticTransformInitialization "true")
By default "false" is assumed. So, no initial translation.
AutomaticTransformInitializationMethod: how to initialize this transform. Should be one of {GeometricalCenter, CenterOfGravity}.
example: (AutomaticTransformInitializationMethod "CenterOfGravity")
By default "GeometricalCenter" is assumed.
The transform parameters necessary for transformix, additionally defined by this class, are:
CenterOfRotation: stores the center of rotation as an index.
example: (CenterOfRotation 128 128 90)
depecrated! From elastix version 3.402 this is changed to CenterOfRotationPoint!
CenterOfRotationPoint: stores the center of rotation, expressed in world coordinates.
example: (CenterOfRotationPoint 10.555 6.666 12.345)
Definition at line 79 of file elxSimilarityTransform.h.
Static Public Member Functions | |
static Pointer | New () |
![]() | |
static Pointer | New () |
![]() | |
static std::string | ConvertSecondsToDHMS (const double totalSeconds, const unsigned int precision) |
static void | InitializeElastixExecutable () |
static bool | IsElastixLibrary () |
Private Member Functions | |
void | operator= (const Self &) |
SimilarityTransformElastix (const Self &) | |
Private Attributes | |
SimilarityTransformPointer | m_SimilarityTransform |
typedef Superclass2::CombinationTransformType elastix::SimilarityTransformElastix< TElastix >::CombinationTransformType |
Definition at line 149 of file elxSimilarityTransform.h.
typedef Superclass2::ConfigurationPointer elastix::SimilarityTransformElastix< TElastix >::ConfigurationPointer |
Definition at line 142 of file elxSimilarityTransform.h.
typedef Superclass2::ConfigurationType elastix::SimilarityTransformElastix< TElastix >::ConfigurationType |
Definition at line 141 of file elxSimilarityTransform.h.
typedef itk::SmartPointer< const Self > elastix::SimilarityTransformElastix< TElastix >::ConstPointer |
Definition at line 94 of file elxSimilarityTransform.h.
typedef Superclass2::CoordRepType elastix::SimilarityTransformElastix< TElastix >::CoordRepType |
Definition at line 145 of file elxSimilarityTransform.h.
typedef FixedImageType::DirectionType elastix::SimilarityTransformElastix< TElastix >::DirectionType |
Definition at line 158 of file elxSimilarityTransform.h.
typedef Superclass2::ElastixPointer elastix::SimilarityTransformElastix< TElastix >::ElastixPointer |
Definition at line 140 of file elxSimilarityTransform.h.
typedef Superclass2::ElastixType elastix::SimilarityTransformElastix< TElastix >::ElastixType |
Typedef's inherited from TransformBase.
Definition at line 139 of file elxSimilarityTransform.h.
typedef Superclass2::FixedImageType elastix::SimilarityTransformElastix< TElastix >::FixedImageType |
Definition at line 146 of file elxSimilarityTransform.h.
typedef FixedImageType::IndexType elastix::SimilarityTransformElastix< TElastix >::IndexType |
Other typedef's.
Definition at line 152 of file elxSimilarityTransform.h.
typedef IndexType::IndexValueType elastix::SimilarityTransformElastix< TElastix >::IndexValueType |
Definition at line 153 of file elxSimilarityTransform.h.
typedef Superclass1::InputCovariantVectorType elastix::SimilarityTransformElastix< TElastix >::InputCovariantVectorType |
Definition at line 129 of file elxSimilarityTransform.h.
typedef Superclass1::InputPointType elastix::SimilarityTransformElastix< TElastix >::InputPointType |
Definition at line 125 of file elxSimilarityTransform.h.
typedef Superclass1::InputVectorType elastix::SimilarityTransformElastix< TElastix >::InputVectorType |
Definition at line 127 of file elxSimilarityTransform.h.
typedef Superclass1::InputVnlVectorType elastix::SimilarityTransformElastix< TElastix >::InputVnlVectorType |
Definition at line 131 of file elxSimilarityTransform.h.
typedef Superclass2::ITKBaseType elastix::SimilarityTransformElastix< TElastix >::ITKBaseType |
Definition at line 148 of file elxSimilarityTransform.h.
typedef Superclass1::JacobianType elastix::SimilarityTransformElastix< TElastix >::JacobianType |
Definition at line 123 of file elxSimilarityTransform.h.
typedef Superclass2::MovingImageType elastix::SimilarityTransformElastix< TElastix >::MovingImageType |
Definition at line 147 of file elxSimilarityTransform.h.
typedef Superclass1::NumberOfParametersType elastix::SimilarityTransformElastix< TElastix >::NumberOfParametersType |
Definition at line 122 of file elxSimilarityTransform.h.
typedef SimilarityTransformType::OffsetType elastix::SimilarityTransformElastix< TElastix >::OffsetType |
Definition at line 136 of file elxSimilarityTransform.h.
typedef Superclass1::OutputCovariantVectorType elastix::SimilarityTransformElastix< TElastix >::OutputCovariantVectorType |
Definition at line 130 of file elxSimilarityTransform.h.
typedef Superclass1::OutputPointType elastix::SimilarityTransformElastix< TElastix >::OutputPointType |
Definition at line 126 of file elxSimilarityTransform.h.
typedef Superclass1::OutputVectorType elastix::SimilarityTransformElastix< TElastix >::OutputVectorType |
Definition at line 128 of file elxSimilarityTransform.h.
typedef Superclass1::OutputVnlVectorType elastix::SimilarityTransformElastix< TElastix >::OutputVnlVectorType |
Definition at line 132 of file elxSimilarityTransform.h.
typedef Superclass1::ParametersType elastix::SimilarityTransformElastix< TElastix >::ParametersType |
Definition at line 121 of file elxSimilarityTransform.h.
typedef itk::SmartPointer< Self > elastix::SimilarityTransformElastix< TElastix >::Pointer |
Definition at line 93 of file elxSimilarityTransform.h.
typedef FixedImageType::PointType elastix::SimilarityTransformElastix< TElastix >::PointType |
Definition at line 155 of file elxSimilarityTransform.h.
typedef FixedImageType::RegionType elastix::SimilarityTransformElastix< TElastix >::RegionType |
Definition at line 157 of file elxSimilarityTransform.h.
typedef Superclass2::RegistrationPointer elastix::SimilarityTransformElastix< TElastix >::RegistrationPointer |
Definition at line 144 of file elxSimilarityTransform.h.
typedef Superclass2::RegistrationType elastix::SimilarityTransformElastix< TElastix >::RegistrationType |
Definition at line 143 of file elxSimilarityTransform.h.
typedef Superclass1::ScalarType elastix::SimilarityTransformElastix< TElastix >::ScalarType |
Typedefs inherited from the superclass. These are both in Similarity2D and Similarity3D.
Definition at line 120 of file elxSimilarityTransform.h.
typedef Superclass2::ScalesType elastix::SimilarityTransformElastix< TElastix >::ScalesType |
For scales setting in the optimizer
Definition at line 165 of file elxSimilarityTransform.h.
typedef SimilarityTransformElastix elastix::SimilarityTransformElastix< TElastix >::Self |
Standard ITK-stuff.
Definition at line 88 of file elxSimilarityTransform.h.
typedef SimilarityTransformType::Pointer elastix::SimilarityTransformElastix< TElastix >::SimilarityTransformPointer |
NOTE: use this one only in 3D (otherwise it's just an int).
Definition at line 135 of file elxSimilarityTransform.h.
typedef itk::SimilarityTransform< typename elx::TransformBase< TElastix >::CoordRepType, elx::TransformBase< TElastix >::FixedImageDimension > elastix::SimilarityTransformElastix< TElastix >::SimilarityTransformType |
The ITK-class that provides most of the functionality, and that is set as the "CurrentTransform" in the CombinationTransform
Definition at line 100 of file elxSimilarityTransform.h.
typedef FixedImageType::SizeType elastix::SimilarityTransformElastix< TElastix >::SizeType |
Definition at line 154 of file elxSimilarityTransform.h.
typedef FixedImageType::SpacingType elastix::SimilarityTransformElastix< TElastix >::SpacingType |
Definition at line 156 of file elxSimilarityTransform.h.
typedef itk::AdvancedCombinationTransform< typename elx::TransformBase< TElastix >::CoordRepType, elx::TransformBase< TElastix >::FixedImageDimension > elastix::SimilarityTransformElastix< TElastix >::Superclass1 |
Definition at line 91 of file elxSimilarityTransform.h.
typedef elx::TransformBase< TElastix > elastix::SimilarityTransformElastix< TElastix >::Superclass2 |
Definition at line 92 of file elxSimilarityTransform.h.
typedef TransformInitializerType::Pointer elastix::SimilarityTransformElastix< TElastix >::TransformInitializerPointer |
Definition at line 162 of file elxSimilarityTransform.h.
typedef itk::CenteredTransformInitializer< SimilarityTransformType, FixedImageType, MovingImageType > elastix::SimilarityTransformElastix< TElastix >::TransformInitializerType |
Definition at line 161 of file elxSimilarityTransform.h.
|
protected |
The constructor.
|
inlineoverrideprotected |
The destructor.
Definition at line 215 of file elxSimilarityTransform.h.
|
private |
The private constructor.
|
overridevirtual |
Execute stuff before the actual registration:
Reimplemented from elastix::BaseComponent.
elastix::SimilarityTransformElastix< TElastix >::elxClassNameMacro | ( | "SimilarityTransform" | ) |
Name of this class. Use this name in the parameter file to select this specific transform.
example: (Transform "SimilarityTransform")
|
virtual |
Run-time type information (and related methods).
Reimplemented from elastix::TransformBase< TElastix >.
|
virtual |
Initialize Transform.
It is not yet possible to enter an initial rotation angle.
elastix::SimilarityTransformElastix< TElastix >::itkStaticConstMacro | ( | SpaceDimension | , |
unsigned int | , | ||
Superclass2::FixedImageDimension | |||
) |
Dimension of the fixed image.
|
static |
Method for creation through the object factory.
|
private |
The private copy constructor.
|
protectedvirtual |
Try to read the CenterOfRotation from the transform parameter file This is an index value, and, thus, converted to world coordinates. Transform parameter files generated by elastix version < 3.402 saved the center of rotation in this way.
|
protectedvirtual |
Try to read the CenterOfRotationPoint from the transform parameter file The CenterOfRotationPoint is already in world coordinates. Transform parameter files generated by elastix version > 3.402 save the center of rotation in this way.
|
overridevirtual |
Function to read transform-parameters from a file.
It reads the center of rotation and calls the superclass' implementation.
Reimplemented from elastix::TransformBase< TElastix >.
|
virtual |
Set the scales
|
overridevirtual |
Function to write transform-parameters to a file. It writes the center of rotation to file and calls the superclass' implementation.
Reimplemented from elastix::TransformBase< TElastix >.
|
private |
Definition at line 238 of file elxSimilarityTransform.h.
Generated on 1667476801 for elastix by ![]() |
![]() |