ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkComposeScaleSkewVersor3DTransform.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 itkComposeScaleSkewVersor3DTransform_h
19#define itkComposeScaleSkewVersor3DTransform_h
20
21#include <iostream>
23
24namespace itk
25{
52template <typename TParametersValueType = double>
53class ITK_TEMPLATE_EXPORT ComposeScaleSkewVersor3DTransform : public VersorRigid3DTransform<TParametersValueType>
54{
55public:
56 ITK_DISALLOW_COPY_AND_MOVE(ComposeScaleSkewVersor3DTransform);
57
63
65 itkNewMacro(Self);
66
68 itkOverrideGetNameOfClassMacro(ComposeScaleSkewVersor3DTransform);
69
71
75 GetInverseTransform() const override;
76
78 static constexpr unsigned int InputSpaceDimension = 3;
79 static constexpr unsigned int OutputSpaceDimension = 3;
80 static constexpr unsigned int ParametersDimension = 12;
81
83 using typename Superclass::ParametersType;
85 using typename Superclass::JacobianType;
88 using typename Superclass::ScalarType;
89 using typename Superclass::InputPointType;
90 using typename Superclass::OutputPointType;
91 using typename Superclass::InputVectorType;
92 using typename Superclass::OutputVectorType;
93 using typename Superclass::InputVnlVectorType;
97 using typename Superclass::MatrixType;
98 using typename Superclass::InverseMatrixType;
99 using typename Superclass::CenterType;
100 using typename Superclass::OffsetType;
101 using typename Superclass::TranslationType;
102
103 using typename Superclass::VersorType;
104 using typename Superclass::AxisType;
105 using typename Superclass::AngleType;
106
110
114
115 using typename Superclass::AxisValueType;
116 using typename Superclass::ParametersValueType;
117
124 void
125 SetMatrix(const MatrixType & matrix) override;
126 void
127 SetMatrix(const MatrixType & matrix, const TParametersValueType tolerance) override;
137 void
138 SetParameters(const ParametersType & parameters) override;
139
140 const ParametersType &
141 GetParameters() const override;
142
143 void
144 SetScale(const ScaleVectorType & scale);
145
146 itkGetConstReferenceMacro(Scale, ScaleVectorType);
147
148 void
149 SetSkew(const SkewVectorType & skew);
150
151 itkGetConstReferenceMacro(Skew, SkewVectorType);
152
153 void
154 SetIdentity() override;
155
156 /* This function is not implemented for this transform. An exception
157 * is thrown if this function is called. */
158 void
160
161protected:
163#if !defined(ITK_LEGACY_REMOVE)
164 [[deprecated("Removed unused constructor")]] ComposeScaleSkewVersor3DTransform(const MatrixType & matrix,
165 const OutputVectorType & offset);
166#endif
167 ComposeScaleSkewVersor3DTransform(unsigned int parametersDimension);
169
170 void
171 PrintSelf(std::ostream & os, Indent indent) const override;
172
173 void
175 {
176 m_Scale = scale;
177 }
178
179 void
181 {
182 m_Skew = skew;
183 }
184
186 void
187 ComputeMatrix() override;
188
189 void
191
192private:
195
198}; // class ComposeScaleSkewVersor3DTransform
199} // namespace itk
200
201#ifndef ITK_MANUAL_INSTANTIATION
202# include "itkComposeScaleSkewVersor3DTransform.hxx"
203#endif
204
205#endif /* __ComposeScaleSkewVersor3DTransform_h */
void ComputeJacobianWithRespectToParameters(const InputPointType &p, JacobianType &jacobian) const override
void SetMatrix(const MatrixType &matrix, const TParametersValueType tolerance) override
void SetParameters(const ParametersType &parameters) override
InverseTransformBasePointer GetInverseTransform() const override
void SetSkew(const SkewVectorType &skew)
const ParametersType & GetParameters() const override
VersorRigid3DTransform< TParametersValueType > Superclass
void SetMatrix(const MatrixType &matrix) override
ComposeScaleSkewVersor3DTransform(unsigned int parametersDimension)
~ComposeScaleSkewVersor3DTransform() override=default
void SetScale(const ScaleVectorType &scale)
typename Superclass::InverseTransformBasePointer InverseTransformBasePointer
void PrintSelf(std::ostream &os, Indent indent) const override
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
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....