go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkAdvancedSimilarity2DTransform.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/*=========================================================================
19
20 Program: Insight Segmentation & Registration Toolkit
21 Module: $RCSfile: itkAdvancedSimilarity2DTransform.h,v $
22 Date: $Date: 2006-06-07 16:06:32 $
23 Version: $Revision: 1.11 $
24
25 Copyright (c) Insight Software Consortium. All rights reserved.
26 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
27
28 This software is distributed WITHOUT ANY WARRANTY; without even
29 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
30 PURPOSE. See the above copyright notices for more information.
31
32=========================================================================*/
33#ifndef itkAdvancedSimilarity2DTransform_h
34#define itkAdvancedSimilarity2DTransform_h
35
36#include <iostream>
38
39namespace itk
40{
41
76template <class TScalarType = double>
77// Data type for scalars (float or double)
78class ITK_TEMPLATE_EXPORT AdvancedSimilarity2DTransform : public AdvancedRigid2DTransform<TScalarType>
79{
80public:
82
86 using Pointer = SmartPointer<Self>;
87 using ConstPointer = SmartPointer<const Self>;
88
90 itkNewMacro(Self);
91
94
96 itkStaticConstMacro(SpaceDimension, unsigned int, 2);
97 itkStaticConstMacro(InputSpaceDimension, unsigned int, 2);
98 itkStaticConstMacro(OutputSpaceDimension, unsigned int, 2);
99 itkStaticConstMacro(ParametersDimension, unsigned int, 4);
100
102 using typename Superclass::ScalarType;
104
106 using typename Superclass::ParametersType;
107 using typename Superclass::NumberOfParametersType;
108
110 using typename Superclass::JacobianType;
111
113 using typename Superclass::OffsetType;
114
116 using typename Superclass::MatrixType;
117
119 using typename Superclass::InputPointType;
120 using typename Superclass::OutputPointType;
121
123 using typename Superclass::InputVectorType;
124 using typename Superclass::OutputVectorType;
125
127 using typename Superclass::InputCovariantVectorType;
128 using typename Superclass::OutputCovariantVectorType;
129
131 using typename Superclass::InputVnlVectorType;
132 using typename Superclass::OutputVnlVectorType;
133
135 using typename Superclass::SpatialJacobianType;
137 using typename Superclass::SpatialHessianType;
139 using typename Superclass::InternalMatrixType;
140
142 void
144
145 itkGetConstReferenceMacro(Scale, ScaleType);
146
156 void
157 SetParameters(const ParametersType & parameters) override;
158
168 const ParametersType &
169 GetParameters() const override;
170
177 void
178 GetJacobian(const InputPointType &, JacobianType &, NonZeroJacobianIndicesType &) const override;
179
181 void
182 SetIdentity() override;
183
197 void
198 SetMatrix(const MatrixType & matrix) override;
199
200protected:
202 ~AdvancedSimilarity2DTransform() override = default;
203 void
204 PrintSelf(std::ostream & os, Indent indent) const override;
205
209 void
210 ComputeMatrix() override;
211
216 void
218
220 void
222 {
223 m_Scale = scale;
224 }
225
227 void
229
230private:
231 ScaleType m_Scale{};
232};
233
234// class AdvancedSimilarity2DTransform
235
236} // namespace itk
237
238#ifndef ITK_MANUAL_INSTANTIATION
239# include "itkAdvancedSimilarity2DTransform.hxx"
240#endif
241
242#endif /* itkAdvancedSimilarity2DTransform_h */
AdvancedRigid2DTransform of a vector space (e.g. space coordinates)
Matrix< TScalarType, Self::OutputSpaceDimension, Self::InputSpaceDimension > MatrixType
AdvancedSimilarity2DTransform of a vector space (e.g. space coordinates)
void SetScale(ScaleType scale)
void GetJacobian(const InputPointType &, JacobianType &, NonZeroJacobianIndicesType &) const override
~AdvancedSimilarity2DTransform() override=default
itkStaticConstMacro(SpaceDimension, unsigned int, 2)
void PrintSelf(std::ostream &os, Indent indent) const override
ITK_DISALLOW_COPY_AND_MOVE(AdvancedSimilarity2DTransform)
void PrecomputeJacobianOfSpatialJacobian() override
void SetParameters(const ParametersType &parameters) override
itkStaticConstMacro(ParametersDimension, unsigned int, 4)
void SetMatrix(const MatrixType &matrix) override
itkStaticConstMacro(InputSpaceDimension, unsigned int, 2)
const ParametersType & GetParameters() const override
Matrix< TScalarType, Self::OutputSpaceDimension, Self::InputSpaceDimension > MatrixType
itkStaticConstMacro(OutputSpaceDimension, unsigned int, 2)
typename SpatialJacobianType::InternalMatrixType InternalMatrixType
FixedArray< Matrix< ScalarType, InputSpaceDimension, InputSpaceDimension >, OutputSpaceDimension > SpatialHessianType
Matrix< ScalarType, OutputSpaceDimension, InputSpaceDimension > SpatialJacobianType


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