ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkCenteredRigid2DTransform.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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 :
53  public Rigid2DTransform<TParametersValueType>
54 {
55 public:
56  ITK_DISALLOW_COPY_AND_ASSIGN(CenteredRigid2DTransform);
57 
63 
65  itkNewMacro(Self);
66 
69 
71  static constexpr unsigned int SpaceDimension = 2;
72  static constexpr unsigned int OutputSpaceDimension = 2;
73  static constexpr unsigned int ParametersDimension = 5;
74 
76  using ScalarType = typename Superclass::ScalarType;
77  using FixedParametersType = typename Superclass::FixedParametersType;
78  using FixedParametersValueType = typename Superclass::FixedParametersValueType;
79  using ParametersType = typename Superclass::ParametersType;
80  using ParametersValueType = typename Superclass::ParametersValueType;
81 
83  using JacobianType = typename Superclass::JacobianType;
84  using JacobianPositionType = typename Superclass::JacobianPositionType;
85  using InverseJacobianPositionType = typename Superclass::InverseJacobianPositionType;
86 
88  using OffsetType = typename Superclass::OffsetType;
89 
91  using InputPointType = typename Superclass::InputPointType;
92  using OutputPointType = typename Superclass::OutputPointType;
93  using InputPointValueType = typename Superclass::InputPointValueType;
94 
96  using InputVectorType = typename Superclass::InputVectorType;
97  using OutputVectorType = typename Superclass::OutputVectorType;
98  using OutputVectorValueType = typename Superclass::OutputVectorValueType;
99 
101  using InputCovariantVectorType = typename Superclass::InputCovariantVectorType;
102  using OutputCovariantVectorType = typename Superclass::OutputCovariantVectorType;
103 
105  using InputVnlVectorType = typename Superclass::InputVnlVectorType;
106  using OutputVnlVectorType = typename Superclass::OutputVnlVectorType;
107 
110  using InverseTransformBaseType = typename Superclass::InverseTransformBaseType;
111  using InverseTransformBasePointer = typename InverseTransformBaseType::Pointer;
112 
121  void SetParameters(const ParametersType & parameters) override;
122 
131  const ParametersType & GetParameters() const override;
132 
136  void ComputeJacobianWithRespectToParameters( const InputPointType & p, JacobianType & jacobian) const override;
137 
140  void SetFixedParameters(const FixedParametersType &) override;
141 
144  const FixedParametersType & GetFixedParameters() const override;
145 
149  void CloneInverseTo(Pointer & newinverse) const;
150 
152  bool GetInverse(Self *inverse) const;
153 
155  InverseTransformBasePointer GetInverseTransform() const override;
156 
160  void CloneTo(Pointer & clone) const;
161 
162 protected:
164  ~CenteredRigid2DTransform() override = default;
165 
166  CenteredRigid2DTransform(unsigned int outputSpaceDimension, unsigned int parametersDimension);
167 
168  void PrintSelf(std::ostream & os, Indent indent) const override;
169 }; // class CenteredRigid2DTransform
170 } // namespace itk
171 
172 #ifndef ITK_MANUAL_INSTANTIATION
173 #include "itkCenteredRigid2DTransform.hxx"
174 #endif
175 
176 #endif /* itkCenteredRigid2DTransform_h */
Light weight base class for most itk classes.
typename Superclass::ParametersValueType ParametersValueType
typename Superclass::InputPointType InputPointType
typename Superclass::FixedParametersType FixedParametersType
typename Superclass::InputVectorType InputVectorType
typename Superclass::InputPointValueType InputPointValueType
typename Superclass::JacobianPositionType JacobianPositionType
typename Superclass::OutputVnlVectorType OutputVnlVectorType
typename Superclass::InverseJacobianPositionType InverseJacobianPositionType
typename Superclass::ParametersType ParametersType
CenteredRigid2DTransform of a vector space (e.g. space coordinates)
typename Superclass::OffsetType OffsetType
typename Superclass::OutputPointType OutputPointType
typename Superclass::ScalarType ScalarType
typename Superclass::InputVnlVectorType InputVnlVectorType
typename Superclass::JacobianType JacobianType
typename InverseTransformBaseType::Pointer InverseTransformBasePointer
typename Superclass::OutputVectorType OutputVectorType
Rigid2DTransform of a vector space (e.g. space coordinates)
Control indentation during Print() invocation.
Definition: itkIndent.h:49
typename Superclass::FixedParametersValueType FixedParametersValueType
typename Superclass::InputCovariantVectorType InputCovariantVectorType
typename Superclass::InverseTransformBaseType InverseTransformBaseType
typename Superclass::OutputCovariantVectorType OutputCovariantVectorType
typename Superclass::OutputVectorValueType OutputVectorValueType