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
73template <class TElastix>
74class ITK_TEMPLATE_EXPORT EulerTransformElastix
75 : public itk::AdvancedCombinationTransform<typename elx::TransformBase<TElastix>::CoordRepType,
76 elx::TransformBase<TElastix>::FixedImageDimension>
77 , public elx::TransformBase<TElastix>
78{
79public:
81
84
87
89
94
95 using Pointer = itk::SmartPointer<Self>;
96 using ConstPointer = itk::SmartPointer<const Self>;
97
99 itkNewMacro(Self);
100
102 // itkTypeMacro( EulerTransformElastix, EulerTransform );
104
109 elxClassNameMacro("EulerTransform");
110
112 itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension);
113
117 using typename Superclass1::ScalarType;
118 using typename Superclass1::ParametersType;
119 using typename Superclass1::NumberOfParametersType;
120 using typename Superclass1::JacobianType;
121
122 using typename Superclass1::InputPointType;
123 using typename Superclass1::OutputPointType;
124 using typename Superclass1::InputVectorType;
125 using typename Superclass1::OutputVectorType;
126 using typename Superclass1::InputCovariantVectorType;
127 using typename Superclass1::OutputCovariantVectorType;
128 using typename Superclass1::InputVnlVectorType;
129 using typename Superclass1::OutputVnlVectorType;
130
132 using OffsetType = typename EulerTransformType::OffsetType;
133
135 using typename Superclass2::ElastixType;
136 using typename Superclass2::ParameterMapType;
137 using typename Superclass2::RegistrationType;
138 using typename Superclass2::CoordRepType;
139 using typename Superclass2::FixedImageType;
140 using typename Superclass2::MovingImageType;
143
145 using IndexType = typename FixedImageType::IndexType;
146 using IndexValueType = typename IndexType::IndexValueType;
147 using SizeType = typename FixedImageType::SizeType;
148 using PointType = typename FixedImageType::PointType;
149 using SpacingType = typename FixedImageType::SpacingType;
150 using RegionType = typename FixedImageType::RegionType;
151 using DirectionType = typename FixedImageType::DirectionType;
152
154 itk::CenteredTransformInitializer<EulerTransformType, FixedImageType, MovingImageType>;
155 using TransformInitializerPointer = typename TransformInitializerType::Pointer;
156
158 using typename Superclass2::ScalesType;
159
164 void
166
174 virtual void
176
181 void
182 ReadFromFile() override;
183
184protected:
188 ~EulerTransformElastix() override = default;
189
195 virtual bool
197
198private:
200
216 void
218
222
223 const EulerTransformPointer m_EulerTransform{ EulerTransformType::New() };
224};
225
226} // end namespace elastix
227
228#ifndef ITK_MANUAL_INSTANTIATION
229# include "elxEulerTransform.hxx"
230#endif
231
232#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
typename IndexType::IndexValueType IndexValueType
typename FixedImageType::SizeType SizeType
typename TransformInitializerType::Pointer TransformInitializerPointer
itk::CenteredTransformInitializer< EulerTransformType, FixedImageType, MovingImageType > TransformInitializerType
elxClassNameMacro("EulerTransform")
ParameterMapType CreateDerivedTransformParametersMap() const override
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 OptimizerType::ScalesType ScalesType
typename TElastix::ParameterMapType ParameterMapType
typename TElastix::MovingImageType MovingImageType
typename ElastixType::RegistrationBaseType RegistrationType
typename ITKBaseType::InputPointType InputPointType
This class combines two transforms: an 'initial transform' with a 'current transform'.
This class combines the Euler2DTransform with the Euler3DTransform.


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