ITK  6.0.0
Insight Toolkit
itkCenteredSimilarity2DTransform.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 * https://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 itkCenteredSimilarity2DTransform_h
19#define itkCenteredSimilarity2DTransform_h
20
22
23namespace itk
24{
54template <typename TParametersValueType = double>
55class ITK_TEMPLATE_EXPORT CenteredSimilarity2DTransform : public Similarity2DTransform<TParametersValueType>
56{
57public:
58 ITK_DISALLOW_COPY_AND_MOVE(CenteredSimilarity2DTransform);
59
65
67 itkNewMacro(Self);
68
70 itkOverrideGetNameOfClassMacro(CenteredSimilarity2DTransform);
71
73 static constexpr unsigned int SpaceDimension = 2;
74 static constexpr unsigned int InputSpaceDimension = 2;
75 static constexpr unsigned int OutputSpaceDimension = 2;
76 static constexpr unsigned int ParametersDimension = 6;
77
79 using typename Superclass::ScalarType;
80
84 using typename Superclass::ParametersType;
86
88 using typename Superclass::JacobianType;
91
93 using typename Superclass::OffsetType;
94 using typename Superclass::OffsetValueType;
95
97 using typename Superclass::InputPointType;
98 using typename Superclass::OutputPointType;
100
102 using typename Superclass::InputVectorType;
103 using typename Superclass::OutputVectorType;
104
108
110 using typename Superclass::InputVnlVectorType;
111 using typename Superclass::OutputVnlVectorType;
112
117
127 void
128 SetParameters(const ParametersType & parameters) override;
129
139 const ParametersType &
140 GetParameters() const override;
141
143 void
145
148 void
150
153 const FixedParametersType &
154 GetFixedParameters() const override;
155
159 void
160 CloneInverseTo(Pointer & result) const;
161
163 bool
164 GetInverse(Self * inverse) const;
165
168 GetInverseTransform() const override;
169
173 void
174 CloneTo(Pointer & result) const;
175
176protected:
178 CenteredSimilarity2DTransform(unsigned int spaceDimension, unsigned int parametersDimension);
179
180 ~CenteredSimilarity2DTransform() override = default;
181 void
182 PrintSelf(std::ostream & os, Indent indent) const override;
183};
184
185} // end namespace itk
186
187#ifndef ITK_MANUAL_INSTANTIATION
188# include "itkCenteredSimilarity2DTransform.hxx"
189#endif
190
191#endif /* itkCenteredSimilarity2DTransform_h */
Array2D class representing a 2D array.
Definition: itkArray2D.h:43
CenteredSimilarity2DTransform of a vector space (e.g. space coordinates)
void CloneInverseTo(Pointer &result) const
void CloneTo(Pointer &result) const
const FixedParametersType & GetFixedParameters() const override
~CenteredSimilarity2DTransform() override=default
typename InverseTransformBaseType::Pointer InverseTransformBasePointer
InverseTransformBasePointer GetInverseTransform() const override
void SetParameters(const ParametersType &parameters) override
const ParametersType & GetParameters() const override
bool GetInverse(Self *inverse) const
void SetFixedParameters(const FixedParametersType &) override
typename InputPointType::ValueType InputPointValueType
CenteredSimilarity2DTransform(unsigned int spaceDimension, unsigned int parametersDimension)
void ComputeJacobianWithRespectToParameters(const InputPointType &p, JacobianType &jacobian) const override
typename Superclass::InverseTransformBaseType InverseTransformBaseType
void PrintSelf(std::ostream &os, Indent indent) const override
A templated class holding a n-Dimensional covariant vector.
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Class to hold and manage different parameter types used during optimization.
A templated class holding a geometric point in n-Dimensional space.
Definition: itkPoint.h:54
Similarity2DTransform of a vector space (e.g. space coordinates)
vnl_vector_fixed< TParametersValueType, Self::InputSpaceDimension > InputVnlVectorType
vnl_vector_fixed< TParametersValueType, Self::OutputSpaceDimension > OutputVnlVectorType
typename Superclass::InverseTransformBaseType InverseTransformBaseType
vnl_matrix_fixed< ParametersValueType, VOutputDimension, VInputDimension > JacobianPositionType
Definition: itkTransform.h:131
vnl_matrix_fixed< ParametersValueType, VInputDimension, VOutputDimension > InverseJacobianPositionType
Definition: itkTransform.h:132
ParametersValueType ScalarType
Definition: itkTransform.h:127
A templated class holding a n-Dimensional vector.
Definition: itkVector.h:63
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
long OffsetValueType
Definition: itkIntTypes.h:97