ITK  5.4.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  * 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 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 
67  itkOverrideGetNameOfClassMacro(CenteredRigid2DTransform);
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 typename Superclass::ScalarType;
76  using typename Superclass::FixedParametersType;
77  using typename Superclass::FixedParametersValueType;
78  using typename Superclass::ParametersType;
79  using typename Superclass::ParametersValueType;
80 
82  using typename Superclass::JacobianType;
83  using typename Superclass::JacobianPositionType;
84  using typename Superclass::InverseJacobianPositionType;
85 
87  using typename Superclass::OffsetType;
88 
90  using typename Superclass::InputPointType;
91  using typename Superclass::OutputPointType;
92  using typename Superclass::InputPointValueType;
93 
95  using typename Superclass::InputVectorType;
96  using typename Superclass::OutputVectorType;
97  using typename Superclass::OutputVectorValueType;
98 
100  using typename Superclass::InputCovariantVectorType;
101  using typename Superclass::OutputCovariantVectorType;
102 
104  using typename Superclass::InputVnlVectorType;
105  using typename Superclass::OutputVnlVectorType;
106 
109  using InverseTransformBaseType = typename Superclass::InverseTransformBaseType;
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 */
Pointer
SmartPointer< Self > Pointer
Definition: itkAddImageFilter.h:93
itk::OptimizerParameters
Class to hold and manage different parameter types used during optimization.
Definition: itkOptimizerParameters.h:36
itkRigid2DTransform.h
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::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:55
itk::CenteredRigid2DTransform::InverseTransformBaseType
typename Superclass::InverseTransformBaseType InverseTransformBaseType
Definition: itkCenteredRigid2DTransform.h:109
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::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