ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkRigid3DTransform.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 itkRigid3DTransform_h
19 #define itkRigid3DTransform_h
20 
21 #include <iostream>
23 #include "itkVersor.h"
24 
25 namespace itk
26 {
56 template<typename TParametersValueType=double>
57 class ITK_TEMPLATE_EXPORT Rigid3DTransform:
58  public MatrixOffsetTransformBase<TParametersValueType, 3, 3>
59 {
60 public:
61  ITK_DISALLOW_COPY_AND_ASSIGN(Rigid3DTransform);
62 
68 
69 //HACK #ifdef ITKV3_COMPATIBILITY
71  itkNewMacro(Self);
72 //HACK #endif
73 
76 
78  static constexpr unsigned int SpaceDimension = 3;
79  static constexpr unsigned int InputSpaceDimension = 3;
80  static constexpr unsigned int OutputSpaceDimension = 3;
81  static constexpr unsigned int ParametersDimension = 12;
82 
83  using ParametersType = typename Superclass::ParametersType;
84  using ParametersValueType = typename Superclass::ParametersValueType;
85  using FixedParametersType = typename Superclass::FixedParametersType;
86  using FixedParametersValueType = typename Superclass::FixedParametersValueType;
87  using JacobianType = typename Superclass::JacobianType;
88  using JacobianPositionType = typename Superclass::JacobianPositionType;
89  using InverseJacobianPositionType = typename Superclass::InverseJacobianPositionType;
90  using ScalarType = typename Superclass::ScalarType;
91  using InputVectorType = typename Superclass::InputVectorType;
92  using OutputVectorType = typename Superclass::OutputVectorType;
93  using OutputVectorValueType = typename Superclass::OutputVectorValueType;
94  using InputCovariantVectorType = typename Superclass::InputCovariantVectorType;
95  using OutputCovariantVectorType = typename Superclass::OutputCovariantVectorType;
96  using InputVnlVectorType = typename Superclass::InputVnlVectorType;
97  using OutputVnlVectorType = typename Superclass::OutputVnlVectorType;
98  using InputPointType = typename Superclass::InputPointType;
99  using OutputPointType = typename Superclass::OutputPointType;
100  using MatrixType = typename Superclass::MatrixType;
101  using InverseMatrixType = typename Superclass::InverseMatrixType;
102  using MatrixValueType = typename Superclass::MatrixValueType;
103  using CenterType = typename Superclass::CenterType;
104  using TranslationType = typename Superclass::TranslationType;
105  using OffsetType = typename Superclass::OffsetType;
106 
109  using InverseTransformBaseType = typename Superclass::InverseTransformBaseType;
110  using InverseTransformBasePointer = typename InverseTransformBaseType::Pointer;
111 
122  void SetParameters(const ParametersType & parameters) override;
123 
129  void SetMatrix(const MatrixType & matrix) override;
130 
136  virtual void SetMatrix(const MatrixType & matrix, const TParametersValueType tolerance );
137 
145  void Translate(const OffsetType & offset, bool pre = false);
146 
151  bool MatrixIsOrthogonal(const MatrixType & matrix,
152  const TParametersValueType tolerance =
154 
155 
156 protected:
157  Rigid3DTransform(const MatrixType & matrix,
158  const OutputVectorType & offset);
159  Rigid3DTransform(unsigned int paramDim);
161  ~Rigid3DTransform() override = default;
162 
166  void PrintSelf(std::ostream & os, Indent indent) const override;
167 }; //class Rigid3DTransform
168 } // namespace itk
169 
170 #ifndef ITK_MANUAL_INSTANTIATION
171 #include "itkRigid3DTransform.hxx"
172 #endif
173 
174 #endif /* itkRigid3DTransform_h */
typename Superclass::FixedParametersType FixedParametersType
typename Superclass::OutputCovariantVectorType OutputCovariantVectorType
Light weight base class for most itk classes.
typename Superclass::MatrixType MatrixType
typename Superclass::JacobianType JacobianType
typename Superclass::InputCovariantVectorType InputCovariantVectorType
typename Superclass::MatrixValueType MatrixValueType
typename Superclass::InverseTransformBaseType InverseTransformBaseType
Rigid3DTransform of a vector space (e.g. space coordinates)
typename Superclass::OutputVnlVectorType OutputVnlVectorType
Matrix and Offset transformation of a vector space (e.g. space coordinates)
typename Superclass::ParametersType ParametersType
typename InverseTransformBaseType::Pointer InverseTransformBasePointer
typename Superclass::OutputVectorType OutputVectorType
typename Superclass::InverseMatrixType InverseMatrixType
typename Superclass::InputVnlVectorType InputVnlVectorType
typename Superclass::CenterType CenterType
typename Superclass::OutputPointType OutputPointType
typename Superclass::TranslationType TranslationType
typename Superclass::InputPointType InputPointType
typename Superclass::InputVectorType InputVectorType
typename Superclass::JacobianPositionType JacobianPositionType
typename Superclass::OutputVectorValueType OutputVectorValueType
typename Superclass::ParametersValueType ParametersValueType
typename Superclass::OffsetType OffsetType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
typename Superclass::FixedParametersValueType FixedParametersValueType
typename Superclass::InverseJacobianPositionType InverseJacobianPositionType
typename Superclass::ScalarType ScalarType