ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkScaleVersor3DTransform.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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 SetMatrix(const MatrixType & matrix) override;
105  void SetMatrix(const MatrixType & matrix, const TParametersValueType tolerance) override;
107 
115  void SetParameters(const ParametersType & parameters) override;
116 
117  const ParametersType & GetParameters() const override;
118 
121  void SetScale(const ScaleVectorType & scale);
122 
123  itkGetConstReferenceMacro(Scale, ScaleVectorType);
124 
127  void SetIdentity() override;
128 
133  void ComputeJacobianWithRespectToParameters( const InputPointType & p, JacobianType & jacobian) const override;
134 
135 protected:
137  ScaleVersor3DTransform(const MatrixType & matrix, const OutputVectorType & offset);
138  ScaleVersor3DTransform(unsigned int paramDims);
139  ~ScaleVersor3DTransform() override = default;
140 
141  void PrintSelf(std::ostream & os, Indent indent) const override;
142 
143  void SetVarScale(const ScaleVectorType & scale)
144  {
145  m_Scale = scale;
146  }
147 
149  void ComputeMatrix() override;
150 
151  void ComputeMatrixParameters() override;
152 
153 private:
156 }; // class ScaleVersor3DTransform
157 } // namespace itk
158 
159 #ifndef ITK_MANUAL_INSTANTIATION
160 #include "itkScaleVersor3DTransform.hxx"
161 #endif
162 
163 #endif /* __ScaleVersor3DTransform_h */
typename Superclass::FixedParametersType FixedParametersType
typename Superclass::OutputCovariantVectorType OutputCovariantVectorType
Light weight base class for most itk classes.
typename Superclass::AxisType AxisType
typename Superclass::MatrixType MatrixType
typename Superclass::JacobianType JacobianType
typename Superclass::InputCovariantVectorType InputCovariantVectorType
VersorRigid3DTransform of a vector space (e.g. space coordinates)
typename Superclass::OutputVnlVectorType OutputVnlVectorType
typename Superclass::ParametersType ParametersType
typename Superclass::OutputVectorType OutputVectorType
typename Superclass::InverseMatrixType InverseMatrixType
This transform applies a Versor rotation, translation and anisotropic scale to the space...
typename Superclass::AngleType AngleType
typename Superclass::InputVnlVectorType InputVnlVectorType
typename Superclass::CenterType CenterType
typename Superclass::OutputPointType OutputPointType
typename Superclass::TranslationType TranslationType
typename Superclass::InputPointType InputPointType
typename Superclass::InputVectorType InputVectorType
void SetVarScale(const ScaleVectorType &scale)
typename Superclass::JacobianPositionType JacobianPositionType
typename Superclass::OffsetType OffsetType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
typename Superclass::InverseJacobianPositionType InverseJacobianPositionType
typename Superclass::ScalarType ScalarType
typename Superclass::VersorType VersorType