go home Home | Main Page | Topics | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
Loading...
Searching...
No Matches
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
71
72template <typename TElastix>
73class ITK_TEMPLATE_EXPORT EulerTransformElastix
74 : public itk::AdvancedCombinationTransform<typename elx::TransformBase<TElastix>::CoordinateType,
75 elx::TransformBase<TElastix>::FixedImageDimension>
76 , public elx::TransformBase<TElastix>
77{
78public:
80
83
86
88
93
94 using Pointer = itk::SmartPointer<Self>;
95 using ConstPointer = itk::SmartPointer<const Self>;
96
98 itkNewMacro(Self);
99
101 // itkTypeMacro( EulerTransformElastix, EulerTransform );
103
108 elxClassNameMacro("EulerTransform");
109
111 itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension);
112
114
116 using typename Superclass1::ScalarType;
117 using typename Superclass1::ParametersType;
118 using typename Superclass1::NumberOfParametersType;
119 using typename Superclass1::JacobianType;
120
121 using typename Superclass1::InputPointType;
122 using typename Superclass1::OutputPointType;
123 using typename Superclass1::InputVectorType;
124 using typename Superclass1::OutputVectorType;
125 using typename Superclass1::InputCovariantVectorType;
126 using typename Superclass1::OutputCovariantVectorType;
127 using typename Superclass1::InputVnlVectorType;
128 using typename Superclass1::OutputVnlVectorType;
129
130 using EulerTransformPointer = typename EulerTransformType::Pointer;
131 using OffsetType = typename EulerTransformType::OffsetType;
132
134 using typename Superclass2::ElastixType;
135 using typename Superclass2::ParameterMapType;
136 using typename Superclass2::RegistrationType;
137 using typename Superclass2::CoordinateType;
138 using typename Superclass2::FixedImageType;
139 using typename Superclass2::MovingImageType;
142
144 using IndexType = typename FixedImageType::IndexType;
145 using IndexValueType = typename IndexType::IndexValueType;
146 using SizeType = typename FixedImageType::SizeType;
147 using PointType = typename FixedImageType::PointType;
148 using SpacingType = typename FixedImageType::SpacingType;
149 using RegionType = typename FixedImageType::RegionType;
150 using DirectionType = typename FixedImageType::DirectionType;
151
153 itk::CenteredTransformInitializer<EulerTransformType, FixedImageType, MovingImageType>;
154 using TransformInitializerPointer = typename TransformInitializerType::Pointer;
155
157 using typename Superclass2::ScalesType;
158
163 void
165
173 virtual void
175
180 void
181 ReadFromFile() override;
182
183protected:
187 ~EulerTransformElastix() override = default;
188
189private:
191
197 bool
199
215 void
217
221
222 const EulerTransformPointer m_EulerTransform{ EulerTransformType::New() };
223};
224
225} // end namespace elastix
226
227#ifndef ITK_MANUAL_INSTANTIATION
228# include "elxEulerTransform.hxx"
229#endif
230
231#endif // end #ifndef elxEulerTransform_h
const EulerTransformPointer m_EulerTransform
typename Superclass2::ITKBaseType ITKBaseType
typename FixedImageType::DirectionType DirectionType
typename EulerTransformType::OffsetType OffsetType
bool ReadCenterOfRotationPoint(InputPointType &rotationPoint) const
itk::SmartPointer< const Self > ConstPointer
itk::EulerTransform< typename elx::TransformBase< TElastix >::CoordinateType, elx::TransformBase< TElastix >::FixedImageDimension > EulerTransformType
itk::CenteredTransformInitializer< EulerTransformType, FixedImageType, MovingImageType > TransformInitializerType
typename IndexType::IndexValueType IndexValueType
typename FixedImageType::SizeType SizeType
typename TransformInitializerType::Pointer TransformInitializerPointer
ParameterMapType CreateDerivedTransformParameterMap() const override
itkOverrideGetNameOfClassMacro(EulerTransformElastix)
elxClassNameMacro("EulerTransform")
typename FixedImageType::SpacingType SpacingType
typename TElastix::ParameterMapType ParameterMapType
void BeforeRegistration() override
~EulerTransformElastix() override=default
itk::SmartPointer< Self > Pointer
typename Superclass2::CombinationTransformType CombinationTransformType
ITK_DISALLOW_COPY_AND_MOVE(EulerTransformElastix)
typename FixedImageType::RegionType RegionType
elx::TransformBase< TElastix > Superclass2
typename FixedImageType::IndexType IndexType
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension)
itk::AdvancedCombinationTransform< typename elx::TransformBase< TElastix >::CoordinateType, elx::TransformBase< TElastix >::FixedImageDimension > Superclass1
typename FixedImageType::PointType PointType
typename EulerTransformType::Pointer EulerTransformPointer
This class is the elastix base class for all Transforms.
typename TElastix::FixedImageType FixedImageType
ElastixBase::CoordinateType CoordinateType
typename TElastix::ParameterMapType ParameterMapType
typename TElastix::MovingImageType MovingImageType
typename ElastixType::RegistrationBaseType RegistrationType
itk::AdvancedCombinationTransform< CoordinateType, Self::FixedImageDimension > CombinationTransformType
typename ITKBaseType::InputPointType InputPointType
itk::Optimizer::ScalesType ScalesType
CombinationTransformType ITKBaseType
This class combines two transforms: an 'initial transform' with a 'current transform'.
This class combines the Euler2DTransform with the Euler3DTransform.


Generated on 1774142652 for elastix by doxygen 1.15.0 elastix logo