ITK  6.0.0
Insight Toolkit
itkVersorRigid3DTransform.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 itkVersorRigid3DTransform_h
19 #define itkVersorRigid3DTransform_h
20 
21 #include <iostream>
22 #include "itkVersorTransform.h"
23 
24 namespace itk
25 {
45 template <typename TParametersValueType = double>
46 class ITK_TEMPLATE_EXPORT VersorRigid3DTransform : public VersorTransform<TParametersValueType>
47 {
48 public:
49  ITK_DISALLOW_COPY_AND_MOVE(VersorRigid3DTransform);
50 
56 
58  itkNewMacro(Self);
59 
61  itkOverrideGetNameOfClassMacro(VersorRigid3DTransform);
62 
64  static constexpr unsigned int SpaceDimension = 3;
65  static constexpr unsigned int InputSpaceDimension = 3;
66  static constexpr unsigned int OutputSpaceDimension = 3;
67  static constexpr unsigned int ParametersDimension = 6;
68 
70  using typename Superclass::ScalarType;
71  using typename Superclass::ParametersType;
72  using typename Superclass::FixedParametersType;
73  using typename Superclass::JacobianType;
74  using typename Superclass::JacobianPositionType;
76  using typename Superclass::InputPointType;
77  using typename Superclass::OutputPointType;
78  using typename Superclass::InputVectorType;
79  using typename Superclass::OutputVectorType;
80  using typename Superclass::InputVnlVectorType;
81  using typename Superclass::OutputVnlVectorType;
84  using typename Superclass::MatrixType;
85  using typename Superclass::InverseMatrixType;
86  using typename Superclass::CenterType;
87  using typename Superclass::OffsetType;
88  using typename Superclass::TranslationType;
89 
91  using typename Superclass::VersorType;
93 
94  using typename Superclass::AxisType;
95  using typename Superclass::AngleType;
96 
97  using typename Superclass::AxisValueType;
98  using typename Superclass::TranslationValueType;
99  using typename Superclass::ParametersValueType;
100 
102 
107  void
108  SetParameters(const ParametersType & parameters) override;
109 
110  const ParametersType &
111  GetParameters() const override;
112 
120  void
121  UpdateTransformParameters(const DerivativeType & update, TParametersValueType factor = 1.0) override;
122 
127  void
128  ComputeJacobianWithRespectToParameters(const InputPointType & p, JacobianType & jacobian) const override;
129 
130 protected:
131 #if !defined(ITK_LEGACY_REMOVE)
132  [[deprecated("Removed unused constructor")]] VersorRigid3DTransform(const MatrixType & matrix,
133  const OutputVectorType & offset);
134 #endif
135  VersorRigid3DTransform(unsigned int paramDim);
137  ~VersorRigid3DTransform() override = default;
138 
139  void
140  PrintSelf(std::ostream & os, Indent indent) const override;
141 }; // class VersorRigid3DTransform
142 } // namespace itk
143 
144 #ifndef ITK_MANUAL_INSTANTIATION
145 # include "itkVersorRigid3DTransform.hxx"
146 #endif
147 
148 #endif /* itkVersorRigid3DTransform_h */
itk::MatrixOffsetTransformBase< TParametersValueType, 3, 3 >::OutputVnlVectorType
vnl_vector_fixed< TParametersValueType, Self::OutputSpaceDimension > OutputVnlVectorType
Definition: itkMatrixOffsetTransformBase.h:171
itk::Rigid3DTransform
Rigid3DTransform of a vector space (e.g. space coordinates)
Definition: itkRigid3DTransform.h:57
itk::VersorRigid3DTransform
VersorRigid3DTransform of a vector space (e.g. space coordinates)
Definition: itkVersorRigid3DTransform.h:46
itk::GTest::TypedefsAndConstructors::Dimension2::VectorType
ImageBaseType::SpacingType VectorType
Definition: itkGTestTypedefsAndConstructors.h:53
itk::Vector< TParametersValueType, Self::InputSpaceDimension >
itk::MatrixOffsetTransformBase< TParametersValueType, 3, 3 >
itkVersorTransform.h
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::MatrixOffsetTransformBase< TParametersValueType, 3, 3 >::InverseJacobianPositionType
vnl_matrix_fixed< ParametersValueType, VInputDimension, VOutputDimension > InverseJacobianPositionType
Definition: itkTransform.h:132
itk::MatrixOffsetTransformBase< TParametersValueType, 3, 3 >::ScalarType
ParametersValueType ScalarType
Definition: itkTransform.h:127
itk::MatrixOffsetTransformBase< TParametersValueType, 3, 3 >::JacobianPositionType
vnl_matrix_fixed< ParametersValueType, VOutputDimension, VInputDimension > JacobianPositionType
Definition: itkTransform.h:131
itk::MatrixOffsetTransformBase< TParametersValueType, 3, 3 >::InputVnlVectorType
vnl_vector_fixed< TParametersValueType, Self::InputSpaceDimension > InputVnlVectorType
Definition: itkMatrixOffsetTransformBase.h:170
itk::VersorTransform
Definition: itkVersorTransform.h:47
itk::MatrixOffsetTransformBase< TParametersValueType, 3, 3 >::TranslationValueType
typename TranslationType::ValueType TranslationValueType
Definition: itkMatrixOffsetTransformBase.h:193
itk::Matrix< TParametersValueType, Self::OutputSpaceDimension, Self::InputSpaceDimension >
itk::CovariantVector
A templated class holding a n-Dimensional covariant vector.
Definition: itkCovariantVector.h:70
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnatomicalOrientation.h:29
itk::Array
Array class with size defined at construction time.
Definition: itkArray.h:47
itk::VersorRigid3DTransform::VectorType
typename VersorType::VectorType VectorType
Definition: itkVersorRigid3DTransform.h:92
itk::Point< TParametersValueType, Self::InputSpaceDimension >
itk::Array2D
Array2D class representing a 2D array.
Definition: itkArray2D.h:42