ITK  6.0.0
Insight Toolkit
itkCenteredEuler3DTransform.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 itkCenteredEuler3DTransform_h
19 #define itkCenteredEuler3DTransform_h
20 
21 #include <iostream>
22 #include "itkEuler3DTransform.h"
23 #include "itkMacro.h"
24 #include "itkVersor.h"
25 
26 namespace itk
27 {
36 template <typename TParametersValueType = double>
37 class ITK_TEMPLATE_EXPORT CenteredEuler3DTransform : public Euler3DTransform<TParametersValueType>
38 {
39 public:
40  ITK_DISALLOW_COPY_AND_MOVE(CenteredEuler3DTransform);
41 
47 
49  itkNewMacro(Self);
50 
52  itkOverrideGetNameOfClassMacro(CenteredEuler3DTransform);
53 
55  static constexpr unsigned int SpaceDimension = 3;
56  static constexpr unsigned int InputSpaceDimension = 3;
57  static constexpr unsigned int OutputSpaceDimension = 3;
58  static constexpr unsigned int ParametersDimension = 9;
59 
60  using typename Superclass::ParametersType;
61  using typename Superclass::ParametersValueType;
62  using typename Superclass::FixedParametersType;
63  using typename Superclass::FixedParametersValueType;
64  using typename Superclass::JacobianType;
65  using typename Superclass::JacobianPositionType;
67  using typename Superclass::ScalarType;
68  using typename Superclass::InputVectorType;
69  using typename Superclass::OutputVectorType;
72 
73  using typename Superclass::InputVnlVectorType;
74  using typename Superclass::OutputVnlVectorType;
75  using typename Superclass::InputPointType;
76  using typename Superclass::OutputPointType;
77  using typename Superclass::MatrixType;
78  using typename Superclass::InverseMatrixType;
79  using typename Superclass::CenterType;
80  using typename Superclass::TranslationType;
81  using typename Superclass::TranslationValueType;
82  using typename Superclass::OffsetType;
83 
88 
95  void
96  SetParameters(const ParametersType & parameters) override;
97 
104  const ParametersType &
105  GetParameters() const override;
106 
111  void
112  ComputeJacobianWithRespectToParameters(const InputPointType & p, JacobianType & jacobian) const override;
113 
115  bool
116  GetInverse(Self * inverse) const;
117 
120  GetInverseTransform() const override;
121 
122 protected:
124  CenteredEuler3DTransform(const MatrixType & matrix, const OutputPointType & offset);
125  CenteredEuler3DTransform(unsigned int parametersDimension);
126  ~CenteredEuler3DTransform() override = default;
127 
131  void
132  PrintSelf(std::ostream & os, Indent indent) const override;
133 }; // class CenteredEuler3DTransform
134 } // namespace itk
135 
136 #ifndef ITK_MANUAL_INSTANTIATION
137 # include "itkCenteredEuler3DTransform.hxx"
138 #endif
139 
140 #endif /* itkCenteredEuler3DTransform_h */
Pointer
SmartPointer< Self > Pointer
Definition: itkAddImageFilter.h:93
itk::Euler3DTransform
Euler3DTransform of a vector space (e.g. space coordinates)
Definition: itkEuler3DTransform.h:48
itk::Transform::OutputVnlVectorType
vnl_vector_fixed< TParametersValueType, VOutputDimension > OutputVnlVectorType
Definition: itkTransform.h:157
itk::Rigid3DTransform::InverseTransformBaseType
typename Superclass::InverseTransformBaseType InverseTransformBaseType
Definition: itkRigid3DTransform.h:106
itk::Vector
A templated class holding a n-Dimensional vector.
Definition: itkVector.h:62
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::CenteredEuler3DTransform::InverseTransformBasePointer
typename InverseTransformBaseType::Pointer InverseTransformBasePointer
Definition: itkCenteredEuler3DTransform.h:87
itk::CenteredEuler3DTransform
CenteredEuler3DTransform of a vector space (e.g. space coordinates)
Definition: itkCenteredEuler3DTransform.h:37
itkMacro.h
itkVersor.h
itk::MatrixOffsetTransformBase< TParametersValueType, 3, 3 >::TranslationValueType
typename TranslationType::ValueType TranslationValueType
Definition: itkMatrixOffsetTransformBase.h:193
itkEuler3DTransform.h
itk::Transform::ScalarType
ParametersValueType ScalarType
Definition: itkTransform.h:127
itk::Matrix< TParametersValueType, Self::OutputSpaceDimension, Self::InputSpaceDimension >
itk::CovariantVector
A templated class holding a n-Dimensional covariant vector.
Definition: itkCovariantVector.h:70
itk::Transform::JacobianPositionType
vnl_matrix_fixed< ParametersValueType, VOutputDimension, VInputDimension > JacobianPositionType
Definition: itkTransform.h:131
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnatomicalOrientation.h:29
itk::Transform::InverseJacobianPositionType
vnl_matrix_fixed< ParametersValueType, VInputDimension, VOutputDimension > InverseJacobianPositionType
Definition: itkTransform.h:132
itk::Point
A templated class holding a geometric point in n-Dimensional space.
Definition: itkPoint.h:53
itk::Array2D
Array2D class representing a 2D array.
Definition: itkArray2D.h:42
itk::CenteredEuler3DTransform::InverseTransformBaseType
typename Superclass::InverseTransformBaseType InverseTransformBaseType
Definition: itkCenteredEuler3DTransform.h:86
itk::Transform::InputVnlVectorType
vnl_vector_fixed< TParametersValueType, VInputDimension > InputVnlVectorType
Definition: itkTransform.h:156