go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxTranslationStackTransform.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 elxTranslationStackTransform_h
19#define elxTranslationStackTransform_h
20
21#include "elxIncludes.h" // include first to avoid MSVS warning
25
26
54namespace elastix
55{
56template <class TElastix>
57class ITK_TEMPLATE_EXPORT TranslationStackTransform
58 : public itk::AdvancedCombinationTransform<typename elx::TransformBase<TElastix>::CoordRepType,
59 elx::TransformBase<TElastix>::FixedImageDimension>
60 , public elx::TransformBase<TElastix>
61{
62public:
64
70 using Pointer = itk::SmartPointer<Self>;
71 using ConstPointer = itk::SmartPointer<const Self>;
72
74 itkNewMacro(Self);
75
78
83 elxClassNameMacro("TranslationStackTransform");
84
86 itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension);
87 itkStaticConstMacro(ReducedSpaceDimension, unsigned int, Superclass2::FixedImageDimension - 1);
88
95
100
102 using typename Superclass1::ParametersType;
103 using typename Superclass1::NumberOfParametersType;
104
106 using typename Superclass2::ElastixType;
107 using typename Superclass2::ParameterMapType;
108 using typename Superclass2::RegistrationType;
109 using typename Superclass2::CoordRepType;
110 using typename Superclass2::FixedImageType;
111 using typename Superclass2::MovingImageType;
114
116 using SizeType = typename FixedImageType::SizeType;
117
123 int
124 BeforeAll() override;
125
126 void
128
130 void
131 ReadFromFile() override;
132
133protected:
135 TranslationStackTransform() { this->Superclass1::SetCurrentTransform(m_StackTransform); }
136
138 ~TranslationStackTransform() override = default;
139
140private:
142
143 void
145
149
153
155 const typename StackTransformType::Pointer m_StackTransform{ StackTransformType::New() };
156
159
162 double m_StackOrigin, m_StackSpacing;
163
164 unsigned int
166};
167
168
169} // end namespace elastix
170
171#ifndef ITK_MANUAL_INSTANTIATION
172# include "elxTranslationStackTransform.hxx"
173#endif
174
175#endif // end #ifndef elxTranslationStackTransform_h
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
~TranslationStackTransform() override=default
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension)
unsigned int InitializeTranslationTransform()
typename TranslationTransformType::Pointer TranslationTransformPointer
typename Superclass2::ITKBaseType ITKBaseType
typename FixedImageType::SizeType SizeType
ParameterMapType CreateDerivedTransformParameterMap() const override
itk::SmartPointer< const Self > ConstPointer
typename TElastix::ParameterMapType ParameterMapType
elxClassNameMacro("TranslationStackTransform")
ITK_DISALLOW_COPY_AND_MOVE(TranslationStackTransform)
typename Superclass2::CombinationTransformType CombinationTransformType
itkStaticConstMacro(ReducedSpaceDimension, unsigned int, Superclass2::FixedImageDimension - 1)
ReducedDimensionTranslationTransformPointer m_DummySubTransform
typename ReducedDimensionTranslationTransformType::Pointer ReducedDimensionTranslationTransformPointer
This class combines two transforms: an 'initial transform' with a 'current transform'.
Translation transformation of a vector space (e.g. space coordinates)
itk::SmartPointer< TranslationStackTransform > Pointer


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