ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkEuler2DTransform.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 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:
42  public Rigid2DTransform<TParametersValueType>
43 {
44 public:
50 
52  itkNewMacro(Self);
53 
55  itkTypeMacro(Euler2DTransform, Rigid2DTransform);
56 
58  itkStaticConstMacro(SpaceDimension, unsigned int, 2);
59  itkStaticConstMacro(ParametersDimension, unsigned int, 3);
61 
62 
64  typedef typename Superclass::ScalarType ScalarType;
65  typedef typename Superclass::ParametersType ParametersType;
66  typedef typename Superclass::FixedParametersType FixedParametersType;
67 
69  typedef typename Superclass::JacobianType JacobianType;
70 
72  typedef typename Superclass::InputPointType InputPointType;
73  typedef typename Superclass::OutputPointType OutputPointType;
74 
76  typedef typename Superclass::InputVectorType InputVectorType;
77  typedef typename Superclass::OutputVectorType OutputVectorType;
78 
80  typedef typename Superclass::InputCovariantVectorType InputCovariantVectorType;
81  typedef typename Superclass::OutputCovariantVectorType OutputCovariantVectorType;
82 
84  typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
85  typedef typename Superclass::OutputVnlVectorType OutputVnlVectorType;
86  typedef typename Superclass::MatrixType MatrixType;
87 
90  typedef typename Superclass::InverseTransformBaseType InverseTransformBaseType;
91  typedef typename InverseTransformBaseType::Pointer InverseTransformBasePointer;
92 
97  void CloneInverseTo(Pointer & newinverse) const;
98 
100  bool GetInverse(Self *inverse) const;
101 
103  virtual InverseTransformBasePointer GetInverseTransform() const ITK_OVERRIDE;
104 
109  void CloneTo(Pointer & clone) const;
110 
115  void ComputeAngleFromMatrix()
116  { this->ComputeMatrixParameters(); }
117 
118 protected:
119  Euler2DTransform(unsigned int parametersDimension);
121  ~Euler2DTransform() ITK_OVERRIDE {}
122 
123  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
124 
125 private:
126  ITK_DISALLOW_COPY_AND_ASSIGN(Euler2DTransform);
127 }; //class Euler2DTransform
128 } // namespace itk
129 
130 #ifndef ITK_MANUAL_INSTANTIATION
131 #include "itkEuler2DTransform.hxx"
132 #endif
133 
134 #endif /* itkEuler2DTransform_h */
Superclass::ParametersType ParametersType
Superclass::ScalarType ScalarType
Light weight base class for most itk classes.
Superclass::FixedParametersType FixedParametersType
Euler2DTransform of a vector space (e.g. space coordinates)
Superclass::InputVnlVectorType InputVnlVectorType
Superclass::MatrixType MatrixType
Superclass::JacobianType JacobianType
Superclass::InputPointType InputPointType
SmartPointer< const Self > ConstPointer
Superclass::OutputCovariantVectorType OutputCovariantVectorType
InverseTransformBaseType::Pointer InverseTransformBasePointer
Superclass::InputCovariantVectorType InputCovariantVectorType
Superclass::InputVectorType InputVectorType
Rigid2DTransform< TParametersValueType > Superclass
SmartPointer< Self > Pointer
Rigid2DTransform of a vector space (e.g. space coordinates)
Superclass::OutputPointType OutputPointType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Superclass::OutputVectorType OutputVectorType
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::InverseTransformBaseType InverseTransformBaseType