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
elxSimilarityTransform.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 elxSimilarityTransform_h
19#define elxSimilarityTransform_h
20
21#include "elxIncludes.h" // include first to avoid MSVS warning
22#include "itkSimilarityTransform.h"
23#include "itkCenteredTransformInitializer.h"
24
25namespace elastix
26{
27
74
75template <typename TElastix>
76class ITK_TEMPLATE_EXPORT SimilarityTransformElastix
77 : public itk::AdvancedCombinationTransform<typename elx::TransformBase<TElastix>::CoordinateType,
78 elx::TransformBase<TElastix>::FixedImageDimension>
79 , public elx::TransformBase<TElastix>
80{
81public:
83
89 using Pointer = itk::SmartPointer<Self>;
90 using ConstPointer = itk::SmartPointer<const Self>;
91
94 using SimilarityTransformType = itk::SimilarityTransform<typename elx::TransformBase<TElastix>::CoordinateType,
96
98 itkNewMacro(Self);
99
102
107 elxClassNameMacro("SimilarityTransform");
108
110 itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension);
111
113
115 using typename Superclass1::ScalarType;
116 using typename Superclass1::ParametersType;
117 using typename Superclass1::NumberOfParametersType;
118 using typename Superclass1::JacobianType;
119
120 using typename Superclass1::InputPointType;
121 using typename Superclass1::OutputPointType;
122 using typename Superclass1::InputVectorType;
123 using typename Superclass1::OutputVectorType;
124 using typename Superclass1::InputCovariantVectorType;
125 using typename Superclass1::OutputCovariantVectorType;
126 using typename Superclass1::InputVnlVectorType;
127 using typename Superclass1::OutputVnlVectorType;
128
130 using SimilarityTransformPointer = typename SimilarityTransformType::Pointer;
131 using OffsetType = typename SimilarityTransformType::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<SimilarityTransformType, 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 ~SimilarityTransformElastix() override = default;
188
189private:
191
197 bool
199
215 void
217
221
222 const SimilarityTransformPointer m_SimilarityTransform{ SimilarityTransformType::New() };
223};
224
225} // end namespace elastix
226
227#ifndef ITK_MANUAL_INSTANTIATION
228# include "elxSimilarityTransform.hxx"
229#endif
230
231#endif // end #ifndef elxSimilarityTransform_h
itk::SmartPointer< const Self > ConstPointer
typename IndexType::IndexValueType IndexValueType
elxClassNameMacro("SimilarityTransform")
const SimilarityTransformPointer m_SimilarityTransform
typename Superclass2::CombinationTransformType CombinationTransformType
~SimilarityTransformElastix() override=default
itk::CenteredTransformInitializer< SimilarityTransformType, FixedImageType, MovingImageType > TransformInitializerType
typename SimilarityTransformType::OffsetType OffsetType
typename FixedImageType::SpacingType SpacingType
typename FixedImageType::SizeType SizeType
itk::SimilarityTransform< typename elx::TransformBase< TElastix >::CoordinateType, elx::TransformBase< TElastix >::FixedImageDimension > SimilarityTransformType
typename FixedImageType::DirectionType DirectionType
typename TElastix::ParameterMapType ParameterMapType
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension)
itkOverrideGetNameOfClassMacro(SimilarityTransformElastix)
typename FixedImageType::IndexType IndexType
ParameterMapType CreateDerivedTransformParameterMap() const override
typename FixedImageType::PointType PointType
itk::AdvancedCombinationTransform< typename elx::TransformBase< TElastix >::CoordinateType, elx::TransformBase< TElastix >::FixedImageDimension > Superclass1
elx::TransformBase< TElastix > Superclass2
typename FixedImageType::RegionType RegionType
typename TransformInitializerType::Pointer TransformInitializerPointer
typename SimilarityTransformType::Pointer SimilarityTransformPointer
ITK_DISALLOW_COPY_AND_MOVE(SimilarityTransformElastix)
typename Superclass2::ITKBaseType ITKBaseType
bool ReadCenterOfRotationPoint(InputPointType &rotationPoint) const
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