go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxEulerTransform.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright UMC Utrecht and contributors
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0.txt
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 *=========================================================================*/
18#ifndef elxEulerTransform_h
19#define elxEulerTransform_h
20
21#include "elxIncludes.h" // include first to avoid MSVS warning
23#include "itkEulerTransform.h"
24#include "itkCenteredTransformInitializer.h"
25
26namespace elastix
27{
28
75template <class TElastix>
76class ITK_TEMPLATE_EXPORT EulerTransformElastix
77 : public itk::AdvancedCombinationTransform<typename elx::TransformBase<TElastix>::CoordRepType,
78 elx::TransformBase<TElastix>::FixedImageDimension>
79 , public elx::TransformBase<TElastix>
80{
81public:
83
86
89
91
96
97 using Pointer = itk::SmartPointer<Self>;
98 using ConstPointer = itk::SmartPointer<const Self>;
99
101 itkNewMacro(Self);
102
104 // itkTypeMacro( EulerTransformElastix, EulerTransform );
106
111 elxClassNameMacro("EulerTransform");
112
114 itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension);
115
119 using typename Superclass1::ScalarType;
120 using typename Superclass1::ParametersType;
121 using typename Superclass1::NumberOfParametersType;
122 using typename Superclass1::JacobianType;
123
124 using typename Superclass1::InputPointType;
125 using typename Superclass1::OutputPointType;
126 using typename Superclass1::InputVectorType;
127 using typename Superclass1::OutputVectorType;
128 using typename Superclass1::InputCovariantVectorType;
129 using typename Superclass1::OutputCovariantVectorType;
130 using typename Superclass1::InputVnlVectorType;
131 using typename Superclass1::OutputVnlVectorType;
132
134 using OffsetType = typename EulerTransformType::OffsetType;
135
137 using typename Superclass2::ElastixType;
138 using typename Superclass2::ParameterMapType;
139 using typename Superclass2::RegistrationType;
140 using typename Superclass2::CoordRepType;
141 using typename Superclass2::FixedImageType;
142 using typename Superclass2::MovingImageType;
145
147 using IndexType = typename FixedImageType::IndexType;
148 using IndexValueType = typename IndexType::IndexValueType;
149 using SizeType = typename FixedImageType::SizeType;
150 using PointType = typename FixedImageType::PointType;
151 using SpacingType = typename FixedImageType::SpacingType;
152 using RegionType = typename FixedImageType::RegionType;
153 using DirectionType = typename FixedImageType::DirectionType;
154
156 itk::CenteredTransformInitializer<EulerTransformType, FixedImageType, MovingImageType>;
157 using TransformInitializerPointer = typename TransformInitializerType::Pointer;
158
160 using typename Superclass2::ScalesType;
161
166 void
168
176 virtual void
178
183 void
184 ReadFromFile() override;
185
186protected:
190 ~EulerTransformElastix() override = default;
191
197 virtual bool
199
200private:
202
218 void
220
224
225 const EulerTransformPointer m_EulerTransform{ EulerTransformType::New() };
226};
227
228} // end namespace elastix
229
230#ifndef ITK_MANUAL_INSTANTIATION
231# include "elxEulerTransform.hxx"
232#endif
233
234#endif // end #ifndef elxEulerTransform_h
A transform based on the itk EulerTransforms.
typename Superclass2::ITKBaseType ITKBaseType
typename FixedImageType::DirectionType DirectionType
typename EulerTransformType::OffsetType OffsetType
itk::SmartPointer< const Self > ConstPointer
itk::CenteredTransformInitializer< EulerTransformType, FixedImageType, MovingImageType > TransformInitializerType
typename IndexType::IndexValueType IndexValueType
typename FixedImageType::SizeType SizeType
typename TransformInitializerType::Pointer TransformInitializerPointer
ParameterMapType CreateDerivedTransformParameterMap() const override
elxClassNameMacro("EulerTransform")
typename FixedImageType::SpacingType SpacingType
typename TElastix::ParameterMapType ParameterMapType
virtual bool ReadCenterOfRotationPoint(InputPointType &rotationPoint) const
void BeforeRegistration() override
~EulerTransformElastix() override=default
itk::SmartPointer< Self > Pointer
typename Superclass2::CombinationTransformType CombinationTransformType
ITK_DISALLOW_COPY_AND_MOVE(EulerTransformElastix)
typename FixedImageType::RegionType RegionType
typename FixedImageType::IndexType IndexType
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension)
typename FixedImageType::PointType PointType
typename EulerTransformType::Pointer EulerTransformPointer
This class is the elastix base class for all Transforms.
typename TElastix::FixedImageType FixedImageType
typename TElastix::ParameterMapType ParameterMapType
typename TElastix::MovingImageType MovingImageType
typename ElastixType::RegistrationBaseType RegistrationType
typename ITKBaseType::InputPointType InputPointType
itk::Optimizer::ScalesType ScalesType
This class combines two transforms: an 'initial transform' with a 'current transform'.
This class combines the Euler2DTransform with the Euler3DTransform.


Generated on 2024-07-17 for elastix by doxygen 1.11.0 (9b424b03c9833626cd435af22a444888fbbb192d) elastix logo