ITK  5.2.0
Insight Toolkit
itkEuler2DTransform.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 itkEuler2DTransform_h
19 #define itkEuler2DTransform_h
20 
21 #include <iostream>
22 #include "itkRigid2DTransform.h"
23 
24 namespace itk
25 {
40 template <typename TParametersValueType = double>
41 class ITK_TEMPLATE_EXPORT Euler2DTransform : public Rigid2DTransform<TParametersValueType>
42 {
43 public:
44  ITK_DISALLOW_COPY_AND_MOVE(Euler2DTransform);
45 
51 
53  itkNewMacro(Self);
54 
56  itkTypeMacro(Euler2DTransform, Rigid2DTransform);
57 
59  static constexpr unsigned int SpaceDimension = 2;
60  static constexpr unsigned int ParametersDimension = 3;
61 
62 
64  using ScalarType = typename Superclass::ScalarType;
65  using ParametersType = typename Superclass::ParametersType;
66  using FixedParametersType = typename Superclass::FixedParametersType;
67 
69  using JacobianType = typename Superclass::JacobianType;
70  using JacobianPositionType = typename Superclass::JacobianPositionType;
71  using InverseJacobianPositionType = typename Superclass::InverseJacobianPositionType;
72 
74  using InputPointType = typename Superclass::InputPointType;
75  using OutputPointType = typename Superclass::OutputPointType;
76 
78  using InputVectorType = typename Superclass::InputVectorType;
79  using OutputVectorType = typename Superclass::OutputVectorType;
80 
82  using InputCovariantVectorType = typename Superclass::InputCovariantVectorType;
83  using OutputCovariantVectorType = typename Superclass::OutputCovariantVectorType;
84 
86  using InputVnlVectorType = typename Superclass::InputVnlVectorType;
87  using OutputVnlVectorType = typename Superclass::OutputVnlVectorType;
88  using MatrixType = typename Superclass::MatrixType;
89 
92  using InverseTransformBaseType = typename Superclass::InverseTransformBaseType;
93  using InverseTransformBasePointer = typename InverseTransformBaseType::Pointer;
94 
99  void
100  CloneInverseTo(Pointer & result) const;
101 
103  bool
104  GetInverse(Self * inverse) const;
105 
108  GetInverseTransform() const override;
109 
114  void
115  CloneTo(Pointer & result) const;
116 
121  void
123  {
124  this->ComputeMatrixParameters();
125  }
126 
127 protected:
128  Euler2DTransform(unsigned int parametersDimension);
130  ~Euler2DTransform() override = default;
131 
132  void
133  PrintSelf(std::ostream & os, Indent indent) const override;
134 }; // class Euler2DTransform
135 } // namespace itk
136 
137 #ifndef ITK_MANUAL_INSTANTIATION
138 # include "itkEuler2DTransform.hxx"
139 #endif
140 
141 #endif /* itkEuler2DTransform_h */
itk::Euler2DTransform::InverseTransformBasePointer
typename InverseTransformBaseType::Pointer InverseTransformBasePointer
Definition: itkEuler2DTransform.h:93
itk::Euler2DTransform::ScalarType
typename Superclass::ScalarType ScalarType
Definition: itkEuler2DTransform.h:64
itkRigid2DTransform.h
itk::Euler2DTransform::JacobianType
typename Superclass::JacobianType JacobianType
Definition: itkEuler2DTransform.h:69
itk::Euler2DTransform::JacobianPositionType
typename Superclass::JacobianPositionType JacobianPositionType
Definition: itkEuler2DTransform.h:70
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::Euler2DTransform::FixedParametersType
typename Superclass::FixedParametersType FixedParametersType
Definition: itkEuler2DTransform.h:66
itk::Euler2DTransform::InverseTransformBaseType
typename Superclass::InverseTransformBaseType InverseTransformBaseType
Definition: itkEuler2DTransform.h:92
itk::Euler2DTransform::OutputVectorType
typename Superclass::OutputVectorType OutputVectorType
Definition: itkEuler2DTransform.h:79
itk::Rigid2DTransform
Rigid2DTransform of a vector space (e.g. space coordinates)
Definition: itkRigid2DTransform.h:56
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::Euler2DTransform::OutputVnlVectorType
typename Superclass::OutputVnlVectorType OutputVnlVectorType
Definition: itkEuler2DTransform.h:87
itk::Euler2DTransform::MatrixType
typename Superclass::MatrixType MatrixType
Definition: itkEuler2DTransform.h:88
itk::Euler2DTransform::InverseJacobianPositionType
typename Superclass::InverseJacobianPositionType InverseJacobianPositionType
Definition: itkEuler2DTransform.h:71
itk::Euler2DTransform::InputPointType
typename Superclass::InputPointType InputPointType
Definition: itkEuler2DTransform.h:74
itk::Euler2DTransform::ComputeAngleFromMatrix
void ComputeAngleFromMatrix()
Definition: itkEuler2DTransform.h:122
itk::Euler2DTransform
Euler2DTransform of a vector space (e.g. space coordinates)
Definition: itkEuler2DTransform.h:41
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::Euler2DTransform::OutputCovariantVectorType
typename Superclass::OutputCovariantVectorType OutputCovariantVectorType
Definition: itkEuler2DTransform.h:83
itk::Euler2DTransform::InputVectorType
typename Superclass::InputVectorType InputVectorType
Definition: itkEuler2DTransform.h:78
itk::Euler2DTransform::OutputPointType
typename Superclass::OutputPointType OutputPointType
Definition: itkEuler2DTransform.h:75
itk::Euler2DTransform::InputCovariantVectorType
typename Superclass::InputCovariantVectorType InputCovariantVectorType
Definition: itkEuler2DTransform.h:82
itk::Euler2DTransform::InputVnlVectorType
typename Superclass::InputVnlVectorType InputVnlVectorType
Definition: itkEuler2DTransform.h:86
itk::Euler2DTransform::ParametersType
typename Superclass::ParametersType ParametersType
Definition: itkEuler2DTransform.h:65