ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkv3Rigid3DTransform.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 itkv3Rigid3DTransform_h
19 #define itkv3Rigid3DTransform_h
20 
21 #include <iostream>
22 #include "itkRigid3DTransform.h"
23 #include "itkVersor.h"
24 
25 namespace itk
26 {
27 namespace v3
28 {
62 template<typename TParametersValueType=double>
63 class ITK_TEMPLATE_EXPORT Rigid3DTransform:
64  public itk::Rigid3DTransform<TParametersValueType>
65 {
66 public:
67  ITK_DISALLOW_COPY_AND_ASSIGN(Rigid3DTransform);
68 
74 
75 
77  itkTypeMacro(Rigid3DTransform, Rigid3DTransform);
78 
80  itkNewMacro(Self);
81 
83  static constexpr unsigned int SpaceDimension = 3;
84  static constexpr unsigned int InputSpaceDimension = 3;
85  static constexpr unsigned int OutputSpaceDimension = 3;
86  static constexpr unsigned int ParametersDimension = 12;
87 
88  using ParametersType = typename Superclass::ParametersType;
89  using ParametersValueType = typename Superclass::ParametersValueType;
90  using FixedParametersType = typename Superclass::FixedParametersType;
91  using FixedParametersValueType = typename Superclass::FixedParametersValueType;
92  using JacobianType = typename Superclass::JacobianType;
93  using JacobianPositionType = typename Superclass::JacobianPositionType;
94  using InverseJacobianPositionType = typename Superclass::InverseJacobianPositionType;
95  using ScalarType = typename Superclass::ScalarType;
96  using InputVectorType = typename Superclass::InputVectorType;
97  using OutputVectorType = typename Superclass::OutputVectorType;
98  using OutputVectorValueType = typename Superclass::OutputVectorValueType;
99  using InputCovariantVectorType = typename Superclass::InputCovariantVectorType;
100  using OutputCovariantVectorType = typename Superclass::OutputCovariantVectorType;
101  using InputVnlVectorType = typename Superclass::InputVnlVectorType;
102  using OutputVnlVectorType = typename Superclass::OutputVnlVectorType;
103  using InputPointType = typename Superclass::InputPointType;
104  using OutputPointType = typename Superclass::OutputPointType;
105  using MatrixType = typename Superclass::MatrixType;
106  using InverseMatrixType = typename Superclass::InverseMatrixType;
107  using MatrixValueType = typename Superclass::MatrixValueType;
108  using CenterType = typename Superclass::CenterType;
109  using TranslationType = typename Superclass::TranslationType;
110  using OffsetType = typename Superclass::OffsetType;
111 
114  using InverseTransformBaseType = typename Superclass::InverseTransformBaseType;
115  using InverseTransformBasePointer = typename InverseTransformBaseType::Pointer;
116 
118  bool GetInverse(Self *inverse) const
119  {
120  return this->Superclass::GetInverse(inverse);
121  }
122 
125  {
126  Pointer inv = New();
127  return this->GetInverse(inv) ? inv.GetPointer() : nullptr;
128  }
130 
131 protected:
132  Rigid3DTransform() = default;
133 }; //class Rigid3DTransform
134 } // namespace v3
135 } // namespace itk
136 
137 #if !defined(ITK_LEGACY_REMOVE)
138 #define itkv3 itk::v3
139 #endif
140 
141 #endif /* itkv3Rigid3DTransform_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
typename Superclass::ParametersType ParametersType
typename InverseTransformBaseType::Pointer InverseTransformBasePointer
ObjectType * GetPointer() const noexcept
typename Superclass::OutputVectorType OutputVectorType
typename Superclass::InverseMatrixType InverseMatrixType
bool GetInverse(Self *inverse) const
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
ITK3.x compatible Rigid3DTransform of a vector space (e.g. space coordinates)
InverseTransformBasePointer GetInverseTransform() const override
typename Superclass::OffsetType OffsetType
typename Superclass::FixedParametersValueType FixedParametersValueType
typename Superclass::InverseJacobianPositionType InverseJacobianPositionType
typename Superclass::ScalarType ScalarType