ITK  4.13.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:
55 
57  itkNewMacro(Self);
58 
61 
63  itkStaticConstMacro(SpaceDimension, unsigned int, 3);
64  itkStaticConstMacro(InputSpaceDimension, unsigned int, 3);
65  itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3);
66  itkStaticConstMacro(ParametersDimension, unsigned int, 6);
68 
70  typedef typename Superclass::ScalarType ScalarType;
71  typedef typename Superclass::ParametersType ParametersType;
72  typedef typename Superclass::FixedParametersType FixedParametersType;
73  typedef typename Superclass::JacobianType JacobianType;
74  typedef typename Superclass::InputPointType InputPointType;
75  typedef typename Superclass::OutputPointType OutputPointType;
76  typedef typename Superclass::InputVectorType InputVectorType;
77  typedef typename Superclass::OutputVectorType OutputVectorType;
78  typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
79  typedef typename Superclass::OutputVnlVectorType OutputVnlVectorType;
80  typedef typename Superclass::InputCovariantVectorType InputCovariantVectorType;
81  typedef typename Superclass::OutputCovariantVectorType OutputCovariantVectorType;
82  typedef typename Superclass::MatrixType MatrixType;
83  typedef typename Superclass::InverseMatrixType InverseMatrixType;
84  typedef typename Superclass::CenterType CenterType;
85  typedef typename Superclass::OffsetType OffsetType;
86  typedef typename Superclass::TranslationType TranslationType;
87 
89  typedef typename Superclass::VersorType VersorType;
91 
92  typedef typename Superclass::AxisType AxisType;
93  typedef typename Superclass::AngleType AngleType;
94 
95  typedef typename Superclass::AxisValueType AxisValueType;
96  typedef typename Superclass::TranslationValueType TranslationValueType;
97  typedef typename Superclass::ParametersValueType ParametersValueType;
98 
100 
105  void SetParameters(const ParametersType & parameters) ITK_OVERRIDE;
106 
107  virtual const ParametersType & GetParameters(void) const ITK_OVERRIDE;
108 
116  virtual void UpdateTransformParameters( const DerivativeType & update, TParametersValueType factor = 1.0 ) ITK_OVERRIDE;
117 
122  virtual void ComputeJacobianWithRespectToParameters( const InputPointType & p, JacobianType & jacobian) const ITK_OVERRIDE;
123 
124 protected:
125  VersorRigid3DTransform(const MatrixType & matrix, const OutputVectorType & offset);
126  VersorRigid3DTransform(unsigned int paramDim);
128  ~VersorRigid3DTransform() ITK_OVERRIDE {}
129 
130  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
131 
132 private:
133  ITK_DISALLOW_COPY_AND_ASSIGN(VersorRigid3DTransform);
134 
135 }; // class VersorRigid3DTransform
136 } // namespace itk
137 
138 #ifndef ITK_MANUAL_INSTANTIATION
139 #include "itkVersorRigid3DTransform.hxx"
140 #endif
141 
142 #endif /* itkVersorRigid3DTransform_h */
Superclass::InputCovariantVectorType InputCovariantVectorType
Array class with size defined at construction time.
Definition: itkArray.h:50
Superclass::InputPointType InputPointType
Light weight base class for most itk classes.
Superclass::InputVectorType InputVectorType
Superclass::FixedParametersType FixedParametersType
VersorRigid3DTransform of a vector space (e.g. space coordinates)
Superclass::InputVnlVectorType InputVnlVectorType
Superclass::MatrixType MatrixType
Superclass::OutputVectorType OutputVectorType
Superclass::TranslationType TranslationType
Superclass::OutputVectorType OutputVectorType
SmartPointer< const Self > ConstPointer
Superclass::ParametersValueType ParametersValueType
Superclass::OutputPointType OutputPointType
Superclass::JacobianType JacobianType
Array< ParametersValueType > DerivativeType
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::JacobianType JacobianType
Superclass::InverseMatrixType InverseMatrixType
Superclass::ParametersType ParametersType
Superclass::ParametersType ParametersType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Superclass::AxisValueType AxisValueType
VersorTransform< TParametersValueType > Superclass
Superclass::InputPointType InputPointType
Superclass::TranslationValueType TranslationValueType