ITK  6.0.0
Insight Toolkit
itkSimilarity3DTransform.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 itkSimilarity3DTransform_h
19#define itkSimilarity3DTransform_h
20
21#include <iostream>
23
24namespace itk
25{
46template <typename TParametersValueType = double>
47class ITK_TEMPLATE_EXPORT Similarity3DTransform : public VersorRigid3DTransform<TParametersValueType>
48{
49public:
50 ITK_DISALLOW_COPY_AND_MOVE(Similarity3DTransform);
51
57
59 itkNewMacro(Self);
60
62 itkOverrideGetNameOfClassMacro(Similarity3DTransform);
63
65 static constexpr unsigned int SpaceDimension = 3;
66 static constexpr unsigned int InputSpaceDimension = 3;
67 static constexpr unsigned int OutputSpaceDimension = 3;
68 static constexpr unsigned int ParametersDimension = 7;
69
71 using typename Superclass::ParametersType;
73 using typename Superclass::JacobianType;
76 using typename Superclass::ScalarType;
77 using typename Superclass::InputPointType;
78 using typename Superclass::OutputPointType;
79 using typename Superclass::InputVectorType;
80 using typename Superclass::OutputVectorType;
81 using typename Superclass::InputVnlVectorType;
85 using typename Superclass::MatrixType;
86 using typename Superclass::InverseMatrixType;
87 using typename Superclass::CenterType;
88 using typename Superclass::OffsetType;
89 using typename Superclass::TranslationType;
90
92 using typename Superclass::VersorType;
93 using typename Superclass::AxisType;
94 using typename Superclass::AngleType;
95 using ScaleType = TParametersValueType;
96
98 void
99 SetIdentity() override;
100
107 void
108 SetMatrix(const MatrixType & matrix) override;
109
116 void
117 SetMatrix(const MatrixType & matrix, const TParametersValueType tolerance) override;
118
123 void
124 SetParameters(const ParametersType & parameters) override;
125
126 const ParametersType &
127 GetParameters() const override;
128
130 void
132
133 itkGetConstReferenceMacro(Scale, ScaleType);
134
139 void
141
142protected:
143#if !defined(ITK_LEGACY_REMOVE)
144 [[deprecated("Removed unused constructor")]] Similarity3DTransform(const MatrixType & matrix,
145 const OutputVectorType & offset);
146#endif
147 Similarity3DTransform(unsigned int paramDim);
149 ~Similarity3DTransform() override = default;
150
151 void
152 PrintSelf(std::ostream & os, Indent indent) const override;
153
156 void
157 ComputeMatrix() override;
158
160 void
162
163private:
164 ScaleType m_Scale{};
165}; // class Similarity3DTransform
166} // namespace itk
167
168#ifndef ITK_MANUAL_INSTANTIATION
169# include "itkSimilarity3DTransform.hxx"
170#endif
171
172#endif /* itkSimilarity3DTransform_h */
Array2D class representing a 2D array.
Definition: itkArray2D.h:43
A templated class holding a n-Dimensional covariant vector.
Control indentation during Print() invocation.
Definition: itkIndent.h:50
vnl_vector_fixed< double, Self::InputSpaceDimension > InputVnlVectorType
vnl_vector_fixed< double, Self::OutputSpaceDimension > OutputVnlVectorType
vnl_matrix_fixed< ParametersValueType, VOutputDimension, VInputDimension > JacobianPositionType
Definition: itkTransform.h:131
vnl_matrix_fixed< ParametersValueType, VInputDimension, VOutputDimension > InverseJacobianPositionType
Definition: itkTransform.h:132
Class to hold and manage different parameter types used during optimization.
Similarity3DTransform of a vector space (e.g. space coordinates)
const ParametersType & GetParameters() const override
void SetMatrix(const MatrixType &matrix, const TParametersValueType tolerance) override
Similarity3DTransform(unsigned int paramDim)
void ComputeMatrix() override
void SetIdentity() override
~Similarity3DTransform() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
void SetMatrix(const MatrixType &matrix) override
void SetParameters(const ParametersType &parameters) override
void ComputeMatrixParameters() override
void SetScale(ScaleType scale)
void ComputeJacobianWithRespectToParameters(const InputPointType &p, JacobianType &jacobian) const override
VersorRigid3DTransform of a vector space (e.g. space coordinates)
typename VersorType::VectorType AxisType
typename VersorType::ValueType AngleType
A templated class holding a unit quaternion.
Definition: itkVersor.h:53
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....