go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxAdvancedAffineTransform.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 elxAdvancedAffineTransform_h
19#define elxAdvancedAffineTransform_h
20
21#include "elxIncludes.h" // include first to avoid MSVS warning
25
26namespace elastix
27{
28
76template <class TElastix>
77class ITK_TEMPLATE_EXPORT AdvancedAffineTransformElastix
78 : public itk::AdvancedCombinationTransform<typename elx::TransformBase<TElastix>::CoordRepType,
79 elx::TransformBase<TElastix>::FixedImageDimension>
80 , public elx::TransformBase<TElastix>
81{
82public:
84
90 using Pointer = itk::SmartPointer<Self>;
91 using ConstPointer = itk::SmartPointer<const Self>;
92
99
101 itkNewMacro(Self);
102
105
110 elxClassNameMacro("AffineTransform");
111
113 itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension);
114
116 using typename Superclass1::ScalarType;
117 using typename Superclass1::ParametersType;
118 using typename Superclass1::NumberOfParametersType;
119 using typename Superclass1::JacobianType;
120 using typename Superclass1::InputVectorType;
121 using typename Superclass1::OutputVectorType;
122 using typename Superclass1::InputCovariantVectorType;
123 using typename Superclass1::OutputCovariantVectorType;
124 using typename Superclass1::InputVnlVectorType;
125 using typename Superclass1::OutputVnlVectorType;
126 using typename Superclass1::InputPointType;
127 using typename Superclass1::OutputPointType;
128
130 using typename Superclass2::ElastixType;
131 using typename Superclass2::ParameterMapType;
132 using typename Superclass2::RegistrationType;
133 using typename Superclass2::CoordRepType;
134 using typename Superclass2::FixedImageType;
135 using typename Superclass2::MovingImageType;
138
140 using IndexType = typename FixedImageType::IndexType;
141 using IndexValueType = typename IndexType::IndexValueType;
142 using SizeType = typename FixedImageType::SizeType;
143 using PointType = typename FixedImageType::PointType;
144 using SpacingType = typename FixedImageType::SpacingType;
145 using RegionType = typename FixedImageType::RegionType;
146 using DirectionType = typename FixedImageType::DirectionType;
147
148 // typedef CenteredTransformInitializer<
153
155 using typename Superclass2::ScalesType;
156
161 void
163
171 virtual void
173
178 void
179 ReadFromFile() override;
180
181protected:
186
192 virtual bool
194
195private:
197
213 void
215
219
220 const AffineTransformPointer m_AffineTransform{ AffineTransformType::New() };
221};
222
223} // end namespace elastix
224
225#ifndef ITK_MANUAL_INSTANTIATION
226# include "elxAdvancedAffineTransform.hxx"
227#endif
228
229#endif // end #ifndef elxAdvancedAffineTransform_h
A transform based on the itk::AdvancedMatrixOffsetTransformBase.
typename FixedImageType::PointType PointType
typename IndexType::IndexValueType IndexValueType
typename FixedImageType::RegionType RegionType
typename TransformInitializerType::Pointer TransformInitializerPointer
typename Superclass2::CombinationTransformType CombinationTransformType
typename FixedImageType::IndexType IndexType
ITK_DISALLOW_COPY_AND_MOVE(AdvancedAffineTransformElastix)
itk::SmartPointer< const Self > ConstPointer
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension)
typename TElastix::ParameterMapType ParameterMapType
typename Superclass2::ITKBaseType ITKBaseType
ParameterMapType CreateDerivedTransformParametersMap() const override
typename FixedImageType::SizeType SizeType
typename FixedImageType::DirectionType DirectionType
typename FixedImageType::SpacingType SpacingType
~AdvancedAffineTransformElastix() override=default
typename AffineTransformType::Pointer AffineTransformPointer
virtual bool ReadCenterOfRotationPoint(InputPointType &rotationPoint) const
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'.
CenteredTransformInitializer2 is a helper class intended to initialize the center of rotation and the...


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