ITK  5.2.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  * 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 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 
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 ParametersType = typename Superclass::ParametersType;
61  using ParametersValueType = typename Superclass::ParametersValueType;
62  using FixedParametersType = typename Superclass::FixedParametersType;
63  using FixedParametersValueType = typename Superclass::FixedParametersValueType;
64  using JacobianType = typename Superclass::JacobianType;
65  using JacobianPositionType = typename Superclass::JacobianPositionType;
66  using InverseJacobianPositionType = typename Superclass::InverseJacobianPositionType;
67  using ScalarType = typename Superclass::ScalarType;
68  using InputVectorType = typename Superclass::InputVectorType;
69  using OutputVectorType = typename Superclass::OutputVectorType;
70  using InputCovariantVectorType = typename Superclass::InputCovariantVectorType;
71  using OutputCovariantVectorType = typename Superclass::OutputCovariantVectorType;
72 
73  using InputVnlVectorType = typename Superclass::InputVnlVectorType;
74  using OutputVnlVectorType = typename Superclass::OutputVnlVectorType;
75  using InputPointType = typename Superclass::InputPointType;
76  using OutputPointType = typename Superclass::OutputPointType;
77  using MatrixType = typename Superclass::MatrixType;
78  using InverseMatrixType = typename Superclass::InverseMatrixType;
79  using CenterType = typename Superclass::CenterType;
80  using TranslationType = typename Superclass::TranslationType;
81  using TranslationValueType = typename Superclass::TranslationValueType;
82  using OffsetType = typename Superclass::OffsetType;
83 
86  using InverseTransformBaseType = typename Superclass::InverseTransformBaseType;
87  using InverseTransformBasePointer = typename InverseTransformBaseType::Pointer;
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 */
itk::Euler3DTransform
Euler3DTransform of a vector space (e.g. space coordinates)
Definition: itkEuler3DTransform.h:47
itk::CenteredEuler3DTransform::CenterType
typename Superclass::CenterType CenterType
Definition: itkCenteredEuler3DTransform.h:79
itk::CenteredEuler3DTransform::InverseMatrixType
typename Superclass::InverseMatrixType InverseMatrixType
Definition: itkCenteredEuler3DTransform.h:78
itk::CenteredEuler3DTransform::TranslationType
typename Superclass::TranslationType TranslationType
Definition: itkCenteredEuler3DTransform.h:80
itk::CenteredEuler3DTransform::ParametersValueType
typename Superclass::ParametersValueType ParametersValueType
Definition: itkCenteredEuler3DTransform.h:61
itk::CenteredEuler3DTransform::JacobianPositionType
typename Superclass::JacobianPositionType JacobianPositionType
Definition: itkCenteredEuler3DTransform.h:65
itk::CenteredEuler3DTransform::FixedParametersType
typename Superclass::FixedParametersType FixedParametersType
Definition: itkCenteredEuler3DTransform.h:62
itk::CenteredEuler3DTransform::InverseJacobianPositionType
typename Superclass::InverseJacobianPositionType InverseJacobianPositionType
Definition: itkCenteredEuler3DTransform.h:66
itk::CenteredEuler3DTransform::TranslationValueType
typename Superclass::TranslationValueType TranslationValueType
Definition: itkCenteredEuler3DTransform.h:81
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::InputPointType
typename Superclass::InputPointType InputPointType
Definition: itkCenteredEuler3DTransform.h:75
itk::CenteredEuler3DTransform::InputCovariantVectorType
typename Superclass::InputCovariantVectorType InputCovariantVectorType
Definition: itkCenteredEuler3DTransform.h:70
itk::CenteredEuler3DTransform::InputVnlVectorType
typename Superclass::InputVnlVectorType InputVnlVectorType
Definition: itkCenteredEuler3DTransform.h:73
itk::CenteredEuler3DTransform
CenteredEuler3DTransform of a vector space (e.g. space coordinates)
Definition: itkCenteredEuler3DTransform.h:37
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::CenteredEuler3DTransform::JacobianType
typename Superclass::JacobianType JacobianType
Definition: itkCenteredEuler3DTransform.h:64
itkMacro.h
itk::CenteredEuler3DTransform::OutputCovariantVectorType
typename Superclass::OutputCovariantVectorType OutputCovariantVectorType
Definition: itkCenteredEuler3DTransform.h:71
itkVersor.h
itkEuler3DTransform.h
itk::CenteredEuler3DTransform::FixedParametersValueType
typename Superclass::FixedParametersValueType FixedParametersValueType
Definition: itkCenteredEuler3DTransform.h:63
itk::CenteredEuler3DTransform::OutputPointType
typename Superclass::OutputPointType OutputPointType
Definition: itkCenteredEuler3DTransform.h:76
itk::CenteredEuler3DTransform::ScalarType
typename Superclass::ScalarType ScalarType
Definition: itkCenteredEuler3DTransform.h:67
itk::CenteredEuler3DTransform::OutputVectorType
typename Superclass::OutputVectorType OutputVectorType
Definition: itkCenteredEuler3DTransform.h:69
itk::CenteredEuler3DTransform::OutputVnlVectorType
typename Superclass::OutputVnlVectorType OutputVnlVectorType
Definition: itkCenteredEuler3DTransform.h:74
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::CenteredEuler3DTransform::MatrixType
typename Superclass::MatrixType MatrixType
Definition: itkCenteredEuler3DTransform.h:77
itk::CenteredEuler3DTransform::ParametersType
typename Superclass::ParametersType ParametersType
Definition: itkCenteredEuler3DTransform.h:60
itk::CenteredEuler3DTransform::InputVectorType
typename Superclass::InputVectorType InputVectorType
Definition: itkCenteredEuler3DTransform.h:68
itk::CenteredEuler3DTransform::OffsetType
typename Superclass::OffsetType OffsetType
Definition: itkCenteredEuler3DTransform.h:82
itk::CenteredEuler3DTransform::InverseTransformBaseType
typename Superclass::InverseTransformBaseType InverseTransformBaseType
Definition: itkCenteredEuler3DTransform.h:86