ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
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
76 GetInverseTransform() const override;
77
79 static constexpr unsigned int InputSpaceDimension = 3;
80 static constexpr unsigned int OutputSpaceDimension = 3;
81 static constexpr unsigned int ParametersDimension = 15;
82
84 using typename Superclass::ParametersType;
86 using typename Superclass::JacobianType;
89 using typename Superclass::ScalarType;
90 using typename Superclass::InputPointType;
91 using typename Superclass::OutputPointType;
92 using typename Superclass::InputVectorType;
93 using typename Superclass::OutputVectorType;
94 using typename Superclass::InputVnlVectorType;
98 using typename Superclass::MatrixType;
99 using typename Superclass::InverseMatrixType;
100 using typename Superclass::CenterType;
101 using typename Superclass::OffsetType;
102 using typename Superclass::TranslationType;
103
104 using typename Superclass::VersorType;
105 using typename Superclass::AxisType;
106 using typename Superclass::AngleType;
107
111
115
116 using typename Superclass::AxisValueType;
117 using typename Superclass::ParametersValueType;
118
125 void
126 SetMatrix(const MatrixType & matrix) override;
127 void
128 SetMatrix(const MatrixType & matrix, const TParametersValueType tolerance) override;
138 void
139 SetParameters(const ParametersType & parameters) override;
140
141 const ParametersType &
142 GetParameters() const override;
143
144 void
145 SetScale(const ScaleVectorType & scale);
146
147 itkGetConstReferenceMacro(Scale, ScaleVectorType);
148
149 void
150 SetSkew(const SkewVectorType & skew);
151
152 itkGetConstReferenceMacro(Skew, SkewVectorType);
153
154 void
155 SetIdentity() override;
156
161 void
163
164protected:
166#if !defined(ITK_LEGACY_REMOVE)
167 [[deprecated("Removed unused constructor")]] ScaleSkewVersor3DTransform(const MatrixType & matrix,
168 const OutputVectorType & offset);
169#endif
170 ScaleSkewVersor3DTransform(unsigned int parametersDimension);
171 ~ScaleSkewVersor3DTransform() override = default;
172
173 void
174 PrintSelf(std::ostream & os, Indent indent) const override;
175
176 void
178 {
179 m_Scale = scale;
180 }
181
182 void
184 {
185 m_Skew = skew;
186 }
187
189 void
190 ComputeMatrix() override;
191
192 void
194
195private:
198
201}; // class ScaleSkewVersor3DTransform
202} // namespace itk
203
204#ifndef ITK_MANUAL_INSTANTIATION
205# include "itkScaleSkewVersor3DTransform.hxx"
206#endif
207
208#endif /* __ScaleSkewVersor3DTransform_h */
Control indentation during Print() invocation.
Definition itkIndent.h:53
Point< double, Self::InputSpaceDimension > InputPointType
Vector< double, Self::OutputSpaceDimension > OutputVectorType
Matrix< TParametersValueType, Self::InputSpaceDimension, Self::OutputSpaceDimension > InverseMatrixType
Matrix< double, Self::OutputSpaceDimension, Self::InputSpaceDimension > MatrixType
typename InverseTransformBaseType::Pointer InverseTransformBasePointer
ScaleSkewVersor3DTransform(unsigned int parametersDimension)
void SetSkew(const SkewVectorType &skew)
static constexpr unsigned int ParametersDimension
Vector< TParametersValueType, 3 > ScaleVectorType
typename Superclass::InverseTransformBasePointer InverseTransformBasePointer
void SetMatrix(const MatrixType &matrix, const TParametersValueType tolerance) override
void SetVarScale(const ScaleVectorType &scale)
VersorRigid3DTransform< TParametersValueType > Superclass
void SetParameters(const ParametersType &parameters) override
const ParametersType & GetParameters() const override
void SetVarSkew(const SkewVectorType &skew)
static constexpr unsigned int OutputSpaceDimension
~ScaleSkewVersor3DTransform() override=default
Vector< TParametersValueType, 6 > SkewVectorType
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
InverseTransformBasePointer GetInverseTransform() const override
typename TranslationType::ValueType TranslationValueType
void ComputeJacobianWithRespectToParameters(const InputPointType &p, JacobianType &jacobian) const override
void SetMatrix(const MatrixType &matrix) override
static constexpr unsigned int InputSpaceDimension
Implements transparent reference counting.
OptimizerParameters< ParametersValueType > ParametersType
OptimizerParameters< FixedParametersValueType > FixedParametersType
OptimizerParameters< ParametersValueType > ParametersType
Matrix< TParametersValueType, Self::OutputSpaceDimension, Self::InputSpaceDimension > MatrixType
Point< TParametersValueType, VOutputDimension > OutputPointType
CovariantVector< TParametersValueType, VOutputDimension > OutputCovariantVectorType
vnl_vector_fixed< TParametersValueType, VInputDimension > InputVnlVectorType
vnl_matrix_fixed< ParametersValueType, VOutputDimension, VInputDimension > JacobianPositionType
vnl_matrix_fixed< ParametersValueType, VInputDimension, VOutputDimension > InverseJacobianPositionType
Point< TParametersValueType, VInputDimension > InputPointType
CovariantVector< TParametersValueType, VInputDimension > InputCovariantVectorType
Vector< TParametersValueType, VInputDimension > InputVectorType
Vector< TParametersValueType, VOutputDimension > OutputVectorType
vnl_vector_fixed< TParametersValueType, VOutputDimension > OutputVnlVectorType
A templated class holding a n-Dimensional vector.
Definition itkVector.h:63
VersorRigid3DTransform(unsigned int paramDim)
typename ParametersType::ValueType ParametersValueType
Array2D< ParametersValueType > JacobianType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....