go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxDeformationFieldTransform.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 elxDeformationFieldTransform_h
19#define elxDeformationFieldTransform_h
20
21#include "elxIncludes.h" // include first to avoid MSVS warning
24
25namespace elastix
26{
27
53template <class TElastix>
54class ITK_TEMPLATE_EXPORT DeformationFieldTransform
55 : public itk::AdvancedCombinationTransform<typename elx::TransformBase<TElastix>::CoordRepType,
56 elx::TransformBase<TElastix>::FixedImageDimension>
57 , public TransformBase<TElastix>
58{
59public:
61
64
70 float>;
71
74
76
77 using Pointer = itk::SmartPointer<Self>;
78 using ConstPointer = itk::SmartPointer<const Self>;
79
81 itkNewMacro(Self);
82
85
90 elxClassNameMacro("DeformationFieldTransform");
91
93 itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension);
94
96 using typename Superclass1::ScalarType;
97 using typename Superclass1::ParametersType;
98 using typename Superclass1::NumberOfParametersType;
99 using typename Superclass1::JacobianType;
100 using typename Superclass1::InputVectorType;
101 using typename Superclass1::OutputVectorType;
102 using typename Superclass1::InputCovariantVectorType;
103 using typename Superclass1::OutputCovariantVectorType;
104 using typename Superclass1::InputVnlVectorType;
105 using typename Superclass1::OutputVnlVectorType;
106 using typename Superclass1::InputPointType;
107 using typename Superclass1::OutputPointType;
108
112
114
116 using typename Superclass2::ElastixType;
117 using typename Superclass2::ParameterMapType;
118 using typename Superclass2::RegistrationType;
119 using typename Superclass2::CoordRepType;
120 using typename Superclass2::FixedImageType;
121 using typename Superclass2::MovingImageType;
124
126 void
127 ReadFromFile() override;
128
129protected:
133 ~DeformationFieldTransform() override = default;
134
135private:
137
141
143 void
145
146 using DirectionType = typename DeformationFieldType::DirectionType;
147
150 const DeformationFieldInterpolatingTransformPointer m_DeformationFieldInterpolatingTransform{
151 DeformationFieldInterpolatingTransformType::New()
152 };
153
156};
157
158} // end namespace elastix
159
160#ifndef ITK_MANUAL_INSTANTIATION
161# include "elxDeformationFieldTransform.hxx"
162#endif
163
164#endif // end #ifndef elxDeformationFieldTransform_h
A transform based on a DeformationField.
elxClassNameMacro("DeformationFieldTransform")
void WriteDerivedTransformDataToFile() const override
itk::SmartPointer< const Self > ConstPointer
~DeformationFieldTransform() override=default
typename Superclass2::ITKBaseType ITKBaseType
typename DeformationFieldInterpolatingTransformType::DeformationFieldVectorType DeformationFieldVectorType
typename DeformationFieldInterpolatingTransformType::DeformationFieldType DeformationFieldType
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension)
typename TElastix::ParameterMapType ParameterMapType
typename Superclass2::CombinationTransformType CombinationTransformType
ITK_DISALLOW_COPY_AND_MOVE(DeformationFieldTransform)
typename DeformationFieldInterpolatingTransformType::Pointer DeformationFieldInterpolatingTransformPointer
typename DeformationFieldType::DirectionType DirectionType
ParameterMapType CreateDerivedTransformParameterMap() const override
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
This class combines two transforms: an 'initial transform' with a 'current transform'.
Transform that interpolates a given deformation field.
Vector< DeformationFieldComponentType, Self::OutputSpaceDimension > DeformationFieldVectorType


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