ITK  6.0.0
Insight Toolkit
itkScaleSkewVersor3DTransform.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 itkScaleSkewVersor3DTransform_h
19#define itkScaleSkewVersor3DTransform_h
20
21#include <iostream>
23
24namespace itk
25{
53template <typename TParametersValueType = double>
54class ITK_TEMPLATE_EXPORT ScaleSkewVersor3DTransform : public VersorRigid3DTransform<TParametersValueType>
55{
56public:
57 ITK_DISALLOW_COPY_AND_MOVE(ScaleSkewVersor3DTransform);
58
64
66 itkNewMacro(Self);
67
69 itkOverrideGetNameOfClassMacro(ScaleSkewVersor3DTransform);
70
72 static constexpr unsigned int InputSpaceDimension = 3;
73 static constexpr unsigned int OutputSpaceDimension = 3;
74 static constexpr unsigned int ParametersDimension = 15;
75
77 using typename Superclass::ParametersType;
79 using typename Superclass::JacobianType;
82 using typename Superclass::ScalarType;
83 using typename Superclass::InputPointType;
84 using typename Superclass::OutputPointType;
85 using typename Superclass::InputVectorType;
86 using typename Superclass::OutputVectorType;
87 using typename Superclass::InputVnlVectorType;
91 using typename Superclass::MatrixType;
92 using typename Superclass::InverseMatrixType;
93 using typename Superclass::CenterType;
94 using typename Superclass::OffsetType;
95 using typename Superclass::TranslationType;
96
97 using typename Superclass::VersorType;
98 using typename Superclass::AxisType;
99 using typename Superclass::AngleType;
100
104
108
109 using typename Superclass::AxisValueType;
110 using typename Superclass::ParametersValueType;
111
117 void
118 SetMatrix(const MatrixType & matrix) override;
119 void
120 SetMatrix(const MatrixType & matrix, const TParametersValueType tolerance) override;
131 void
132 SetParameters(const ParametersType & parameters) override;
133
134 const ParametersType &
135 GetParameters() const override;
136
137 void
138 SetScale(const ScaleVectorType & scale);
139
140 itkGetConstReferenceMacro(Scale, ScaleVectorType);
141
142 void
143 SetSkew(const SkewVectorType & skew);
144
145 itkGetConstReferenceMacro(Skew, SkewVectorType);
146
147 void
148 SetIdentity() override;
149
154 void
156
157protected:
159#if !defined(ITK_LEGACY_REMOVE)
160 [[deprecated("Removed unused constructor")]] ScaleSkewVersor3DTransform(const MatrixType & matrix,
161 const OutputVectorType & offset);
162#endif
163 ScaleSkewVersor3DTransform(unsigned int parametersDimension);
164 ~ScaleSkewVersor3DTransform() override = default;
165
166 void
167 PrintSelf(std::ostream & os, Indent indent) const override;
168
169 void
171 {
172 m_Scale = scale;
173 }
174
175 void
177 {
178 m_Skew = skew;
179 }
180
182 void
183 ComputeMatrix() override;
184
185 void
187
188private:
191
194}; // class ScaleSkewVersor3DTransform
195} // namespace itk
196
197#ifndef ITK_MANUAL_INSTANTIATION
198# include "itkScaleSkewVersor3DTransform.hxx"
199#endif
200
201#endif /* __ScaleSkewVersor3DTransform_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.
ScaleSkewVersor3DTransform of a vector space (e.g. space coordinates)
ScaleSkewVersor3DTransform(unsigned int parametersDimension)
void SetSkew(const SkewVectorType &skew)
void SetMatrix(const MatrixType &matrix, const TParametersValueType tolerance) override
void SetVarScale(const ScaleVectorType &scale)
void SetParameters(const ParametersType &parameters) override
const ParametersType & GetParameters() const override
void SetVarSkew(const SkewVectorType &skew)
~ScaleSkewVersor3DTransform() override=default
typename SkewVectorType::ValueType SkewVectorValueType
void SetScale(const ScaleVectorType &scale)
void ComputeMatrixParameters() override
typename ScaleVectorType::ValueType ScaleVectorValueType
void PrintSelf(std::ostream &os, Indent indent) const override
typename TranslationType::ValueType TranslationValueType
void ComputeJacobianWithRespectToParameters(const InputPointType &p, JacobianType &jacobian) const override
void SetMatrix(const MatrixType &matrix) override
VersorRigid3DTransform of a vector space (e.g. space coordinates)
typename AxisType::ValueType AxisValueType
typename VersorType::VectorType AxisType
typename VersorType::ValueType AngleType
typename ParametersType::ValueType ParametersValueType
A templated class holding a unit quaternion.
Definition: itkVersor.h:53
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....