ITK  5.2.0
Insight Toolkit
itkCenteredRigid2DTransform.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 itkCenteredRigid2DTransform_h
19 #define itkCenteredRigid2DTransform_h
20 
21 #include <iostream>
22 #include "itkRigid2DTransform.h"
23 
24 namespace itk
25 {
51 template <typename TParametersValueType = double>
52 class ITK_TEMPLATE_EXPORT CenteredRigid2DTransform : public Rigid2DTransform<TParametersValueType>
53 {
54 public:
55  ITK_DISALLOW_COPY_AND_MOVE(CenteredRigid2DTransform);
56 
62 
64  itkNewMacro(Self);
65 
68 
70  static constexpr unsigned int SpaceDimension = 2;
71  static constexpr unsigned int OutputSpaceDimension = 2;
72  static constexpr unsigned int ParametersDimension = 5;
73 
75  using ScalarType = typename Superclass::ScalarType;
76  using FixedParametersType = typename Superclass::FixedParametersType;
77  using FixedParametersValueType = typename Superclass::FixedParametersValueType;
78  using ParametersType = typename Superclass::ParametersType;
79  using ParametersValueType = typename Superclass::ParametersValueType;
80 
82  using JacobianType = typename Superclass::JacobianType;
83  using JacobianPositionType = typename Superclass::JacobianPositionType;
84  using InverseJacobianPositionType = typename Superclass::InverseJacobianPositionType;
85 
87  using OffsetType = typename Superclass::OffsetType;
88 
90  using InputPointType = typename Superclass::InputPointType;
91  using OutputPointType = typename Superclass::OutputPointType;
92  using InputPointValueType = typename Superclass::InputPointValueType;
93 
95  using InputVectorType = typename Superclass::InputVectorType;
96  using OutputVectorType = typename Superclass::OutputVectorType;
97  using OutputVectorValueType = typename Superclass::OutputVectorValueType;
98 
100  using InputCovariantVectorType = typename Superclass::InputCovariantVectorType;
101  using OutputCovariantVectorType = typename Superclass::OutputCovariantVectorType;
102 
104  using InputVnlVectorType = typename Superclass::InputVnlVectorType;
105  using OutputVnlVectorType = typename Superclass::OutputVnlVectorType;
106 
109  using InverseTransformBaseType = typename Superclass::InverseTransformBaseType;
110  using InverseTransformBasePointer = typename InverseTransformBaseType::Pointer;
111 
120  void
121  SetParameters(const ParametersType & parameters) override;
122 
131  const ParametersType &
132  GetParameters() const override;
133 
137  void
138  ComputeJacobianWithRespectToParameters(const InputPointType & p, JacobianType & jacobian) const override;
139 
142  void
143  SetFixedParameters(const FixedParametersType &) override;
144 
147  const FixedParametersType &
148  GetFixedParameters() const override;
149 
153  void
154  CloneInverseTo(Pointer & result) const;
155 
157  bool
158  GetInverse(Self * inverse) const;
159 
162  GetInverseTransform() const override;
163 
167  void
168  CloneTo(Pointer & result) const;
169 
170 protected:
172  ~CenteredRigid2DTransform() override = default;
173 
174  CenteredRigid2DTransform(unsigned int spaceDimension, unsigned int parametersDimension);
175 
176  void
177  PrintSelf(std::ostream & os, Indent indent) const override;
178 }; // class CenteredRigid2DTransform
179 } // namespace itk
180 
181 #ifndef ITK_MANUAL_INSTANTIATION
182 # include "itkCenteredRigid2DTransform.hxx"
183 #endif
184 
185 #endif /* itkCenteredRigid2DTransform_h */
itk::CenteredRigid2DTransform::InputVnlVectorType
typename Superclass::InputVnlVectorType InputVnlVectorType
Definition: itkCenteredRigid2DTransform.h:104
itk::CenteredRigid2DTransform::JacobianPositionType
typename Superclass::JacobianPositionType JacobianPositionType
Definition: itkCenteredRigid2DTransform.h:83
itkRigid2DTransform.h
itk::CenteredRigid2DTransform::InverseJacobianPositionType
typename Superclass::InverseJacobianPositionType InverseJacobianPositionType
Definition: itkCenteredRigid2DTransform.h:84
itk::CenteredRigid2DTransform::OutputPointType
typename Superclass::OutputPointType OutputPointType
Definition: itkCenteredRigid2DTransform.h:91
itk::CenteredRigid2DTransform::OutputCovariantVectorType
typename Superclass::OutputCovariantVectorType OutputCovariantVectorType
Definition: itkCenteredRigid2DTransform.h:101
itk::CenteredRigid2DTransform::JacobianType
typename Superclass::JacobianType JacobianType
Definition: itkCenteredRigid2DTransform.h:82
itk::CenteredRigid2DTransform
CenteredRigid2DTransform of a vector space (e.g. space coordinates)
Definition: itkCenteredRigid2DTransform.h:52
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::CenteredRigid2DTransform::FixedParametersType
typename Superclass::FixedParametersType FixedParametersType
Definition: itkCenteredRigid2DTransform.h:76
itk::CenteredRigid2DTransform::InputVectorType
typename Superclass::InputVectorType InputVectorType
Definition: itkCenteredRigid2DTransform.h:95
itk::CenteredRigid2DTransform::ParametersValueType
typename Superclass::ParametersValueType ParametersValueType
Definition: itkCenteredRigid2DTransform.h:79
itk::CenteredRigid2DTransform::InputCovariantVectorType
typename Superclass::InputCovariantVectorType InputCovariantVectorType
Definition: itkCenteredRigid2DTransform.h:100
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::CenteredRigid2DTransform::ScalarType
typename Superclass::ScalarType ScalarType
Definition: itkCenteredRigid2DTransform.h:75
itk::CenteredRigid2DTransform::OutputVectorType
typename Superclass::OutputVectorType OutputVectorType
Definition: itkCenteredRigid2DTransform.h:96
itk::CenteredRigid2DTransform::FixedParametersValueType
typename Superclass::FixedParametersValueType FixedParametersValueType
Definition: itkCenteredRigid2DTransform.h:77
itk::CenteredRigid2DTransform::InverseTransformBaseType
typename Superclass::InverseTransformBaseType InverseTransformBaseType
Definition: itkCenteredRigid2DTransform.h:109
itk::CenteredRigid2DTransform::InputPointType
typename Superclass::InputPointType InputPointType
Definition: itkCenteredRigid2DTransform.h:90
itk::CenteredRigid2DTransform::OutputVnlVectorType
typename Superclass::OutputVnlVectorType OutputVnlVectorType
Definition: itkCenteredRigid2DTransform.h:105
itk::CenteredRigid2DTransform::OffsetType
typename Superclass::OffsetType OffsetType
Definition: itkCenteredRigid2DTransform.h:87
itk::CenteredRigid2DTransform::InverseTransformBasePointer
typename InverseTransformBaseType::Pointer InverseTransformBasePointer
Definition: itkCenteredRigid2DTransform.h:110
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::CenteredRigid2DTransform::InputPointValueType
typename Superclass::InputPointValueType InputPointValueType
Definition: itkCenteredRigid2DTransform.h:92
itk::CenteredRigid2DTransform::ParametersType
typename Superclass::ParametersType ParametersType
Definition: itkCenteredRigid2DTransform.h:78
itk::CenteredRigid2DTransform::OutputVectorValueType
typename Superclass::OutputVectorValueType OutputVectorValueType
Definition: itkCenteredRigid2DTransform.h:97