ITK  5.2.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  * http://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 
24 namespace itk
25 {
53 template <typename TParametersValueType = double>
54 class ITK_TEMPLATE_EXPORT ScaleSkewVersor3DTransform : public VersorRigid3DTransform<TParametersValueType>
55 {
56 public:
57  ITK_DISALLOW_COPY_AND_MOVE(ScaleSkewVersor3DTransform);
58 
64 
66  itkNewMacro(Self);
67 
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 ParametersType = typename Superclass::ParametersType;
78  using FixedParametersType = typename Superclass::FixedParametersType;
79  using JacobianType = typename Superclass::JacobianType;
80  using JacobianPositionType = typename Superclass::JacobianPositionType;
81  using InverseJacobianPositionType = typename Superclass::InverseJacobianPositionType;
82  using ScalarType = typename Superclass::ScalarType;
83  using InputPointType = typename Superclass::InputPointType;
84  using OutputPointType = typename Superclass::OutputPointType;
85  using InputVectorType = typename Superclass::InputVectorType;
86  using OutputVectorType = typename Superclass::OutputVectorType;
87  using InputVnlVectorType = typename Superclass::InputVnlVectorType;
88  using OutputVnlVectorType = typename Superclass::OutputVnlVectorType;
89  using InputCovariantVectorType = typename Superclass::InputCovariantVectorType;
90  using OutputCovariantVectorType = typename Superclass::OutputCovariantVectorType;
91  using MatrixType = typename Superclass::MatrixType;
92  using InverseMatrixType = typename Superclass::InverseMatrixType;
93  using CenterType = typename Superclass::CenterType;
94  using OffsetType = typename Superclass::OffsetType;
95  using TranslationType = typename Superclass::TranslationType;
96 
97  using VersorType = typename Superclass::VersorType;
98  using AxisType = typename Superclass::AxisType;
99  using AngleType = typename Superclass::AngleType;
100 
104 
107  using TranslationValueType = typename TranslationType::ValueType;
108 
109  using AxisValueType = typename Superclass::AxisValueType;
110  using ParametersValueType = typename Superclass::ParametersValueType;
111 
117  void
118  SetMatrix(const MatrixType & matrix) override;
119  void
120  SetMatrix(const MatrixType & matrix, const TParametersValueType tolerance) override;
122 
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
155  ComputeJacobianWithRespectToParameters(const InputPointType & p, JacobianType & jacobian) const override;
156 
157 protected:
159  ScaleSkewVersor3DTransform(const MatrixType & matrix, const OutputVectorType & offset);
160  ScaleSkewVersor3DTransform(unsigned int parametersDimension);
161  ~ScaleSkewVersor3DTransform() override = default;
162 
163  void
164  PrintSelf(std::ostream & os, Indent indent) const override;
165 
166  void
168  {
169  m_Scale = scale;
170  }
171 
172  void
174  {
175  m_Skew = skew;
176  }
177 
179  void
180  ComputeMatrix() override;
181 
182  void
183  ComputeMatrixParameters() override;
184 
185 private:
188 
191 }; // class ScaleSkewVersor3DTransform
192 } // namespace itk
193 
194 #ifndef ITK_MANUAL_INSTANTIATION
195 # include "itkScaleSkewVersor3DTransform.hxx"
196 #endif
197 
198 #endif /* __ScaleSkewVersor3DTransform_h */
itk::Rigid3DTransform::InputPointType
typename Superclass::InputPointType InputPointType
Definition: itkRigid3DTransform.h:95
itk::ScaleSkewVersor3DTransform::SkewVectorValueType
typename SkewVectorType::ValueType SkewVectorValueType
Definition: itkScaleSkewVersor3DTransform.h:106
itk::Rigid3DTransform::JacobianType
typename Superclass::JacobianType JacobianType
Definition: itkRigid3DTransform.h:84
itk::Rigid3DTransform::OffsetType
typename Superclass::OffsetType OffsetType
Definition: itkRigid3DTransform.h:102
itk::ScaleSkewVersor3DTransform::m_Scale
ScaleVectorType m_Scale
Definition: itkScaleSkewVersor3DTransform.h:187
itk::VersorRigid3DTransform
VersorRigid3DTransform of a vector space (e.g. space coordinates)
Definition: itkVersorRigid3DTransform.h:46
itk::Rigid3DTransform::InputCovariantVectorType
typename Superclass::InputCovariantVectorType InputCovariantVectorType
Definition: itkRigid3DTransform.h:91
itk::Rigid3DTransform::ParametersType
typename Superclass::ParametersType ParametersType
Definition: itkRigid3DTransform.h:80
itk::ScaleSkewVersor3DTransform
ScaleSkewVersor3DTransform of a vector space (e.g. space coordinates)
Definition: itkScaleSkewVersor3DTransform.h:54
itk::Vector< TParametersValueType, 3 >
itk::Rigid3DTransform::ParametersValueType
typename Superclass::ParametersValueType ParametersValueType
Definition: itkRigid3DTransform.h:81
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::Rigid3DTransform::OutputVectorType
typename Superclass::OutputVectorType OutputVectorType
Definition: itkRigid3DTransform.h:89
itk::Rigid3DTransform::FixedParametersType
typename Superclass::FixedParametersType FixedParametersType
Definition: itkRigid3DTransform.h:82
itk::Rigid3DTransform::CenterType
typename Superclass::CenterType CenterType
Definition: itkRigid3DTransform.h:100
itk::Rigid3DTransform::JacobianPositionType
typename Superclass::JacobianPositionType JacobianPositionType
Definition: itkRigid3DTransform.h:85
itk::Rigid3DTransform::MatrixType
typename Superclass::MatrixType MatrixType
Definition: itkRigid3DTransform.h:97
itk::Rigid3DTransform::InputVectorType
typename Superclass::InputVectorType InputVectorType
Definition: itkRigid3DTransform.h:88
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::ScaleSkewVersor3DTransform::ScaleVectorValueType
typename ScaleVectorType::ValueType ScaleVectorValueType
Definition: itkScaleSkewVersor3DTransform.h:105
itkVersorRigid3DTransform.h
itk::Vector< TParametersValueType, 3 >::ValueType
TParametersValueType ValueType
Definition: itkVector.h:71
itk::Rigid3DTransform::ScalarType
typename Superclass::ScalarType ScalarType
Definition: itkRigid3DTransform.h:87
itk::Rigid3DTransform::OutputVnlVectorType
typename Superclass::OutputVnlVectorType OutputVnlVectorType
Definition: itkRigid3DTransform.h:94
itk::ScaleSkewVersor3DTransform::AngleType
typename Superclass::AngleType AngleType
Definition: itkScaleSkewVersor3DTransform.h:99
itk::ScaleSkewVersor3DTransform::m_Skew
SkewVectorType m_Skew
Definition: itkScaleSkewVersor3DTransform.h:190
itk::ScaleSkewVersor3DTransform::TranslationValueType
typename TranslationType::ValueType TranslationValueType
Definition: itkScaleSkewVersor3DTransform.h:107
itk::Rigid3DTransform::OutputCovariantVectorType
typename Superclass::OutputCovariantVectorType OutputCovariantVectorType
Definition: itkRigid3DTransform.h:92
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::ScaleSkewVersor3DTransform::SetVarSkew
void SetVarSkew(const SkewVectorType &skew)
Definition: itkScaleSkewVersor3DTransform.h:173
itk::Rigid3DTransform::OutputPointType
typename Superclass::OutputPointType OutputPointType
Definition: itkRigid3DTransform.h:96
itk::ScaleSkewVersor3DTransform::VersorType
typename Superclass::VersorType VersorType
Definition: itkScaleSkewVersor3DTransform.h:97
itk::Rigid3DTransform::TranslationType
typename Superclass::TranslationType TranslationType
Definition: itkRigid3DTransform.h:101
itk::ScaleSkewVersor3DTransform::AxisValueType
typename Superclass::AxisValueType AxisValueType
Definition: itkScaleSkewVersor3DTransform.h:109
itk::Rigid3DTransform::InputVnlVectorType
typename Superclass::InputVnlVectorType InputVnlVectorType
Definition: itkRigid3DTransform.h:93
itk::Rigid3DTransform::InverseMatrixType
typename Superclass::InverseMatrixType InverseMatrixType
Definition: itkRigid3DTransform.h:98
itk::Rigid3DTransform::InverseJacobianPositionType
typename Superclass::InverseJacobianPositionType InverseJacobianPositionType
Definition: itkRigid3DTransform.h:86
itk::ScaleSkewVersor3DTransform::SetVarScale
void SetVarScale(const ScaleVectorType &scale)
Definition: itkScaleSkewVersor3DTransform.h:167
itk::ScaleSkewVersor3DTransform::AxisType
typename Superclass::AxisType AxisType
Definition: itkScaleSkewVersor3DTransform.h:98