ITK  4.6.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 TScalar = double >
46 // Data type for scalars (float or double)
48  public VersorTransform< TScalar >
49 {
50 public:
56 
58  itkNewMacro(Self);
59 
62 
64  itkStaticConstMacro(SpaceDimension, unsigned int, 3);
65  itkStaticConstMacro(InputSpaceDimension, unsigned int, 3);
66  itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3);
67  itkStaticConstMacro(ParametersDimension, unsigned int, 6);
69 
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);
106 
107  virtual const ParametersType & GetParameters(void) const;
108 
116  virtual void UpdateTransformParameters( const DerivativeType & update, TScalar factor = 1.0 );
117 
122  virtual void ComputeJacobianWithRespectToParameters( const InputPointType & p, JacobianType & jacobian) const;
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;
133 
134 private:
135  VersorRigid3DTransform(const Self &); // purposely not implemented
136  void operator=(const Self &); // purposely not implemented
137 
138 }; // class VersorRigid3DTransform
139 } // namespace itk
140 
141 #ifndef ITK_MANUAL_INSTANTIATION
142 #include "itkVersorRigid3DTransform.hxx"
143 #endif
144 
145 #endif /* __itkVersorRigid3DTransform_h */
Array class with size defined at construction time.
Definition: itkArray.h:50
Light weight base class for most itk classes.
Superclass::InputPointType InputPointType
ParametersType::ValueType ParameterValueType
VersorType::VectorType AxisType
Superclass::InputCovariantVectorType InputCovariantVectorType
Superclass::OffsetType OffsetType
VersorRigid3DTransform of a vector space (e.g. space coordinates)
static const unsigned int InputSpaceDimension
Superclass::MatrixType MatrixType
void PrintSelf(std::ostream &os, Indent indent) const
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::OutputVnlVectorType OutputVnlVectorType
SmartPointer< const Self > ConstPointer
Superclass::InputPointType InputPointType
virtual void UpdateTransformParameters(const DerivativeType &update, TScalar factor=1.0)
Superclass::TranslationType TranslationType
Superclass::OutputVectorType OutputVectorType
VersorTransform< TScalar > Superclass
Superclass::ParameterValueType ParameterValueType
Superclass::InverseMatrixType InverseMatrixType
VersorType::ValueType AngleType
Superclass::OutputVectorType OutputVectorType
Superclass::ParametersType ParametersType
Superclass::JacobianType JacobianType
Superclass::InputVectorType InputVectorType
virtual void ComputeJacobianWithRespectToParameters(const InputPointType &p, JacobianType &jacobian) const
virtual const ParametersType & GetParameters(void) const
Superclass::OutputVectorType OutputVectorType
Superclass::MatrixType MatrixType
Superclass::AxisValueType AxisValueType
Superclass::InputVnlVectorType InputVnlVectorType
Superclass::ParametersType ParametersType
Superclass::JacobianType JacobianType
Superclass::TranslationType TranslationType
Superclass::ParametersType ParametersType
Superclass::InputVnlVectorType InputVnlVectorType
AxisType::ValueType AxisValueType
Superclass::TranslationValueType TranslationValueType
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::CenterType CenterType
Versor< TScalar > VersorType
Superclass::JacobianType JacobianType
static const unsigned int OutputSpaceDimension
Control indentation during Print() invocation.
Definition: itkIndent.h:49
void operator=(const Self &)
Array< ParameterValueType > DerivativeType
Superclass::OutputPointType OutputPointType
Superclass::InputPointType InputPointType
static const unsigned int SpaceDimension
Superclass::ScalarType ScalarType
Superclass::InputVectorType InputVectorType
Superclass::OutputPointType OutputPointType
static const unsigned int ParametersDimension
Superclass::InputCovariantVectorType InputCovariantVectorType
Superclass::InverseMatrixType InverseMatrixType
void SetParameters(const ParametersType &parameters)