ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkVersorRigid3DTransform.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 itkVersorRigid3DTransform_h
19 #define itkVersorRigid3DTransform_h
20 
21 #include <iostream>
22 #include "itkVersorTransform.h"
23 
24 namespace itk
25 {
45 template<typename TParametersValueType=double>
46 class ITK_TEMPLATE_EXPORT VersorRigid3DTransform :
47  public VersorTransform<TParametersValueType>
48 {
49 public:
50  ITK_DISALLOW_COPY_AND_ASSIGN(VersorRigid3DTransform);
51 
57 
59  itkNewMacro(Self);
60 
63 
65  static constexpr unsigned int SpaceDimension = 3;
66  static constexpr unsigned int InputSpaceDimension = 3;
67  static constexpr unsigned int OutputSpaceDimension = 3;
68  static constexpr unsigned int ParametersDimension = 6;
69 
71  using ScalarType = typename Superclass::ScalarType;
72  using ParametersType = typename Superclass::ParametersType;
73  using FixedParametersType = typename Superclass::FixedParametersType;
74  using JacobianType = typename Superclass::JacobianType;
75  using JacobianPositionType = typename Superclass::JacobianPositionType;
76  using InverseJacobianPositionType = typename Superclass::InverseJacobianPositionType;
77  using InputPointType = typename Superclass::InputPointType;
78  using OutputPointType = typename Superclass::OutputPointType;
79  using InputVectorType = typename Superclass::InputVectorType;
80  using OutputVectorType = typename Superclass::OutputVectorType;
81  using InputVnlVectorType = typename Superclass::InputVnlVectorType;
82  using OutputVnlVectorType = typename Superclass::OutputVnlVectorType;
83  using InputCovariantVectorType = typename Superclass::InputCovariantVectorType;
84  using OutputCovariantVectorType = typename Superclass::OutputCovariantVectorType;
85  using MatrixType = typename Superclass::MatrixType;
86  using InverseMatrixType = typename Superclass::InverseMatrixType;
87  using CenterType = typename Superclass::CenterType;
88  using OffsetType = typename Superclass::OffsetType;
89  using TranslationType = typename Superclass::TranslationType;
90 
92  using VersorType = typename Superclass::VersorType;
94 
95  using AxisType = typename Superclass::AxisType;
96  using AngleType = typename Superclass::AngleType;
97 
98  using AxisValueType = typename Superclass::AxisValueType;
99  using TranslationValueType = typename Superclass::TranslationValueType;
100  using ParametersValueType = typename Superclass::ParametersValueType;
101 
103 
108  void SetParameters(const ParametersType & parameters) override;
109 
110  const ParametersType & GetParameters() const override;
111 
119  void UpdateTransformParameters( const DerivativeType & update, TParametersValueType factor = 1.0 ) override;
120 
125  void ComputeJacobianWithRespectToParameters( const InputPointType & p, JacobianType & jacobian) const override;
126 
127 protected:
128  VersorRigid3DTransform(const MatrixType & matrix, const OutputVectorType & offset);
129  VersorRigid3DTransform(unsigned int paramDim);
131  ~VersorRigid3DTransform() override = default;
132 
133  void PrintSelf(std::ostream & os, Indent indent) const override;
134 }; // class VersorRigid3DTransform
135 } // namespace itk
136 
137 #ifndef ITK_MANUAL_INSTANTIATION
138 #include "itkVersorRigid3DTransform.hxx"
139 #endif
140 
141 #endif /* itkVersorRigid3DTransform_h */
Array class with size defined at construction time.
Definition: itkArray.h:46
typename Superclass::FixedParametersType FixedParametersType
typename Superclass::OutputCovariantVectorType OutputCovariantVectorType
typename Superclass::VersorType VersorType
Light weight base class for most itk classes.
typename Superclass::MatrixType MatrixType
typename Superclass::JacobianType JacobianType
typename Superclass::InputCovariantVectorType InputCovariantVectorType
VersorRigid3DTransform of a vector space (e.g. space coordinates)
typename Superclass::OutputVnlVectorType OutputVnlVectorType
typename Superclass::ParametersType ParametersType
typename Superclass::AxisType AxisType
typename Superclass::OutputVectorType OutputVectorType
typename Superclass::InverseMatrixType InverseMatrixType
typename Superclass::InputVnlVectorType InputVnlVectorType
typename VersorType::VectorType VectorType
typename Superclass::CenterType CenterType
typename Superclass::OutputPointType OutputPointType
typename Superclass::TranslationType TranslationType
typename Superclass::AxisValueType AxisValueType
typename Superclass::InputPointType InputPointType
typename Superclass::InputVectorType InputVectorType
typename Superclass::JacobianPositionType JacobianPositionType
typename Superclass::TranslationValueType TranslationValueType
typename Superclass::ParametersValueType ParametersValueType
typename Superclass::OffsetType OffsetType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
typename Superclass::InverseJacobianPositionType InverseJacobianPositionType
typename Superclass::ScalarType ScalarType
typename Superclass::AngleType AngleType