ITK  5.1.0
Insight Toolkit
itkScaleVersor3DTransform.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 itkScaleVersor3DTransform_h
19 #define itkScaleVersor3DTransform_h
20 
22 
23 namespace itk
24 {
48 template <typename TParametersValueType = double>
49 class ITK_TEMPLATE_EXPORT ScaleVersor3DTransform : public VersorRigid3DTransform<TParametersValueType>
50 {
51 public:
52  ITK_DISALLOW_COPY_AND_ASSIGN(ScaleVersor3DTransform);
53 
59 
61  itkNewMacro(Self);
62 
65 
67  static constexpr unsigned int InputSpaceDimension = 3;
68  static constexpr unsigned int OutputSpaceDimension = 3;
69  static constexpr unsigned int ParametersDimension = 9;
70 
72  using ParametersType = typename Superclass::ParametersType;
73  using FixedParametersType = typename Superclass::FixedParametersType;
74  using JacobianType = typename Superclass::JacobianType;
75  using JacobianPositionType = typename Superclass::JacobianPositionType;
76  using InverseJacobianPositionType = typename Superclass::InverseJacobianPositionType;
77  using ScalarType = typename Superclass::ScalarType;
78  using InputPointType = typename Superclass::InputPointType;
79  using OutputPointType = typename Superclass::OutputPointType;
80  using InputVectorType = typename Superclass::InputVectorType;
81  using OutputVectorType = typename Superclass::OutputVectorType;
82  using InputVnlVectorType = typename Superclass::InputVnlVectorType;
83  using OutputVnlVectorType = typename Superclass::OutputVnlVectorType;
84  using InputCovariantVectorType = typename Superclass::InputCovariantVectorType;
85  using OutputCovariantVectorType = typename Superclass::OutputCovariantVectorType;
86  using MatrixType = typename Superclass::MatrixType;
87  using InverseMatrixType = typename Superclass::InverseMatrixType;
88  using CenterType = typename Superclass::CenterType;
89  using OffsetType = typename Superclass::OffsetType;
90  using TranslationType = typename Superclass::TranslationType;
91 
92  using VersorType = typename Superclass::VersorType;
93  using AxisType = typename Superclass::AxisType;
94  using AngleType = typename Superclass::AngleType;
95 
98 
104  void
105  SetMatrix(const MatrixType & matrix) override;
106  void
107  SetMatrix(const MatrixType & matrix, const TParametersValueType tolerance) override;
109 
117  void
118  SetParameters(const ParametersType & parameters) override;
119 
120  const ParametersType &
121  GetParameters() const override;
122 
125  void
126  SetScale(const ScaleVectorType & scale);
127 
128  itkGetConstReferenceMacro(Scale, ScaleVectorType);
129 
132  void
133  SetIdentity() override;
134 
139  void
140  ComputeJacobianWithRespectToParameters(const InputPointType & p, JacobianType & jacobian) const override;
141 
142 protected:
144  ScaleVersor3DTransform(const MatrixType & matrix, const OutputVectorType & offset);
145  ScaleVersor3DTransform(unsigned int paramDims);
146  ~ScaleVersor3DTransform() override = default;
147 
148  void
149  PrintSelf(std::ostream & os, Indent indent) const override;
150 
151  void
153  {
154  m_Scale = scale;
155  }
156 
158  void
159  ComputeMatrix() override;
160 
161  void
162  ComputeMatrixParameters() override;
163 
164 private:
167 }; // class ScaleVersor3DTransform
168 } // namespace itk
169 
170 #ifndef ITK_MANUAL_INSTANTIATION
171 # include "itkScaleVersor3DTransform.hxx"
172 #endif
173 
174 #endif /* __ScaleVersor3DTransform_h */
itk::Rigid3DTransform::InputPointType
typename Superclass::InputPointType InputPointType
Definition: itkRigid3DTransform.h:95
itk::Rigid3DTransform::JacobianType
typename Superclass::JacobianType JacobianType
Definition: itkRigid3DTransform.h:84
itk::Rigid3DTransform::OffsetType
typename Superclass::OffsetType OffsetType
Definition: itkRigid3DTransform.h:102
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::Vector< TParametersValueType, 3 >
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::ScaleVersor3DTransform::AngleType
typename Superclass::AngleType AngleType
Definition: itkScaleVersor3DTransform.h:94
itk::ScaleVersor3DTransform::m_Scale
ScaleVectorType m_Scale
Definition: itkScaleVersor3DTransform.h:166
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::ScaleVersor3DTransform
This transform applies a Versor rotation, translation and anisotropic scale to the space.
Definition: itkScaleVersor3DTransform.h:49
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::ScaleVersor3DTransform::SetVarScale
void SetVarScale(const ScaleVectorType &scale)
Definition: itkScaleVersor3DTransform.h:152
itk::ScaleVersor3DTransform::VersorType
typename Superclass::VersorType VersorType
Definition: itkScaleVersor3DTransform.h:92
itkVersorRigid3DTransform.h
itk::ScaleVersor3DTransform::AxisType
typename Superclass::AxisType AxisType
Definition: itkScaleVersor3DTransform.h:93
itk::Rigid3DTransform::ScalarType
typename Superclass::ScalarType ScalarType
Definition: itkRigid3DTransform.h:87
itk::Rigid3DTransform::OutputVnlVectorType
typename Superclass::OutputVnlVectorType OutputVnlVectorType
Definition: itkRigid3DTransform.h:94
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: itkArray.h:26
itk::Rigid3DTransform::OutputPointType
typename Superclass::OutputPointType OutputPointType
Definition: itkRigid3DTransform.h:96
itk::Rigid3DTransform::TranslationType
typename Superclass::TranslationType TranslationType
Definition: itkRigid3DTransform.h:101
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