ITK  4.9.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>
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 
87 
90  typedef typename VersorType::VectorType VectorType;
91 
92  typedef typename Superclass::AxisType AxisType;
93  typedef typename Superclass::AngleType AngleType;
94 
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);
129  {
130  }
131 
132  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
133 
134 private:
135  VersorRigid3DTransform(const Self &) ITK_DELETE_FUNCTION;
136  void operator=(const Self &) ITK_DELETE_FUNCTION;
137 
138 }; // class VersorRigid3DTransform
139 } // namespace itk
140 
141 #ifndef ITK_MANUAL_INSTANTIATION
142 #include "itkVersorRigid3DTransform.hxx"
143 #endif
144 
145 #endif /* itkVersorRigid3DTransform_h */
Superclass::InputCovariantVectorType InputCovariantVectorType
Array class with size defined at construction time.
Definition: itkArray.h:50
virtual void ComputeJacobianWithRespectToParameters(const InputPointType &p, JacobianType &jacobian) const override
Superclass::InputPointType InputPointType
Superclass::OutputPointType OutputPointType
Superclass::TranslationType TranslationType
Light weight base class for most itk classes.
Superclass::InputVectorType InputVectorType
Superclass::FixedParametersType FixedParametersType
VersorRigid3DTransform of a vector space (e.g. space coordinates)
void SetParameters(const ParametersType &parameters) override
void PrintSelf(std::ostream &os, Indent indent) const override
Superclass::InputVnlVectorType InputVnlVectorType
Versor< TParametersValueType > VersorType
Superclass::InputVnlVectorType InputVnlVectorType
virtual void UpdateTransformParameters(const DerivativeType &update, TParametersValueType factor=1.0) override
Superclass::OffsetType OffsetType
Superclass::MatrixType MatrixType
Superclass::OutputVectorType OutputVectorType
Superclass::TranslationType TranslationType
Superclass::OutputVectorType OutputVectorType
static const unsigned int OutputSpaceDimension
Superclass::InputCovariantVectorType InputCovariantVectorType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::InputPointType InputPointType
Superclass::ScalarType ScalarType
Superclass::OutputVectorType OutputVectorType
Superclass::OutputVnlVectorType OutputVnlVectorType
VersorType::VectorType AxisType
Superclass::CenterType CenterType
Superclass::InputVectorType InputVectorType
SmartPointer< const Self > ConstPointer
Superclass::ParametersValueType ParametersValueType
Superclass::OutputPointType OutputPointType
virtual const ParametersType & GetParameters(void) const override
AxisType::ValueType AxisValueType
Superclass::MatrixType MatrixType
Superclass::JacobianType JacobianType
Superclass::InverseMatrixType InverseMatrixType
Superclass::FixedParametersType FixedParametersType
static const unsigned int SpaceDimension
Array< ParametersValueType > DerivativeType
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::JacobianType JacobianType
VersorType::ValueType AngleType
Superclass::InverseMatrixType InverseMatrixType
ParametersType::ValueType ParametersValueType
Superclass::ParametersType ParametersType
Superclass::ParametersType ParametersType
Superclass::JacobianType JacobianType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Superclass::AxisValueType AxisValueType
VersorTransform< TParametersValueType > Superclass
Superclass::InputPointType InputPointType
static const unsigned int InputSpaceDimension
static const unsigned int ParametersDimension
Superclass::TranslationValueType TranslationValueType
Superclass::ParametersType ParametersType