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
elxAffineDTITransform.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 elxAffineDTITransform_h
19#define elxAffineDTITransform_h
20
21#include "elxIncludes.h" // include first to avoid MSVS warning
23#include "itkAffineDTITransform.h"
24#include "itkCenteredTransformInitializer.h"
25
26namespace elastix
27{
28
73
74template <typename TElastix>
75class ITK_TEMPLATE_EXPORT AffineDTITransformElastix
76 : public itk::AdvancedCombinationTransform<typename elx::TransformBase<TElastix>::CoordinateType,
77 elx::TransformBase<TElastix>::FixedImageDimension>
78 , public elx::TransformBase<TElastix>
79{
80public:
82
88 using Pointer = itk::SmartPointer<Self>;
89 using ConstPointer = itk::SmartPointer<const Self>;
90
93 using AffineDTITransformType = itk::AffineDTITransform<typename elx::TransformBase<TElastix>::CoordinateType,
95
97 itkNewMacro(Self);
98
101
106 elxClassNameMacro("AffineDTITransform");
107
109 itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension);
110
112
114 using typename Superclass1::ScalarType;
115 using typename Superclass1::ParametersType;
116 using typename Superclass1::NumberOfParametersType;
117 using typename Superclass1::JacobianType;
118
119 using typename Superclass1::InputPointType;
120 using typename Superclass1::OutputPointType;
121 using typename Superclass1::InputVectorType;
122 using typename Superclass1::OutputVectorType;
123 using typename Superclass1::InputCovariantVectorType;
124 using typename Superclass1::OutputCovariantVectorType;
125 using typename Superclass1::InputVnlVectorType;
126 using typename Superclass1::OutputVnlVectorType;
127
128 using AffineDTITransformPointer = typename AffineDTITransformType::Pointer;
129 using OffsetType = typename AffineDTITransformType::OffsetType;
130
132 using typename Superclass2::ElastixType;
133 using typename Superclass2::ParameterMapType;
134 using typename Superclass2::RegistrationType;
135 using typename Superclass2::CoordinateType;
136 using typename Superclass2::FixedImageType;
137 using typename Superclass2::MovingImageType;
140
142 using IndexType = typename FixedImageType::IndexType;
143 using IndexValueType = typename IndexType::IndexValueType;
144 using SizeType = typename FixedImageType::SizeType;
145 using PointType = typename FixedImageType::PointType;
146 using SpacingType = typename FixedImageType::SpacingType;
147 using RegionType = typename FixedImageType::RegionType;
148 using DirectionType = typename FixedImageType::DirectionType;
149
151 itk::CenteredTransformInitializer<AffineDTITransformType, FixedImageType, MovingImageType>;
152 using TransformInitializerPointer = typename TransformInitializerType::Pointer;
153
155 using typename Superclass2::ScalesType;
156
161 void
163
171 virtual void
173
178 void
179 ReadFromFile() override;
180
181protected:
185 ~AffineDTITransformElastix() override = default;
186
187private:
189
192 bool
194
210 void
212
216
217 const AffineDTITransformPointer m_AffineDTITransform{ AffineDTITransformType::New() };
218};
219
220} // end namespace elastix
221
222#ifndef ITK_MANUAL_INSTANTIATION
223# include "elxAffineDTITransform.hxx"
224#endif
225
226#endif // end #ifndef elxAffineDTITransform_h
ParameterMapType CreateDerivedTransformParameterMap() const override
ITK_DISALLOW_COPY_AND_MOVE(AffineDTITransformElastix)
const AffineDTITransformPointer m_AffineDTITransform
typename Superclass2::ITKBaseType ITKBaseType
typename FixedImageType::SizeType SizeType
itk::SmartPointer< const Self > ConstPointer
typename IndexType::IndexValueType IndexValueType
typename AffineDTITransformType::OffsetType OffsetType
typename AffineDTITransformType::Pointer AffineDTITransformPointer
typename FixedImageType::RegionType RegionType
elx::TransformBase< TElastix > Superclass2
typename FixedImageType::SpacingType SpacingType
itk::CenteredTransformInitializer< AffineDTITransformType, FixedImageType, MovingImageType > TransformInitializerType
itk::AdvancedCombinationTransform< typename elx::TransformBase< TElastix >::CoordinateType, elx::TransformBase< TElastix >::FixedImageDimension > Superclass1
typename TElastix::ParameterMapType ParameterMapType
bool ReadCenterOfRotationPoint(InputPointType &rotationPoint) const
~AffineDTITransformElastix() override=default
typename TransformInitializerType::Pointer TransformInitializerPointer
elxClassNameMacro("AffineDTITransform")
typename FixedImageType::PointType PointType
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension)
typename FixedImageType::IndexType IndexType
typename Superclass2::CombinationTransformType CombinationTransformType
itkOverrideGetNameOfClassMacro(AffineDTITransformElastix)
itk::AffineDTITransform< typename elx::TransformBase< TElastix >::CoordinateType, elx::TransformBase< TElastix >::FixedImageDimension > AffineDTITransformType
typename FixedImageType::DirectionType DirectionType
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'.


Generated on 1774142652 for elastix by doxygen 1.15.0 elastix logo