00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __itkVersorRigid3DTransform_h
00019 #define __itkVersorRigid3DTransform_h
00020
00021 #include <iostream>
00022 #include "itkRigid3DTransform.h"
00023
00024 namespace itk
00025 {
00026
00033 template < class TScalarType=double >
00034 class ITK_EXPORT VersorRigid3DTransform :
00035 public Rigid3DTransform< TScalarType >
00036 {
00037 public:
00039 typedef VersorRigid3DTransform Self;
00040 typedef Rigid3DTransform< TScalarType > Superclass;
00041 typedef SmartPointer<Self> Pointer;
00042 typedef SmartPointer<const Self> ConstPointer;
00043
00045 itkNewMacro( Self );
00046
00048 itkTypeMacro( VersorRigid3DTransform, Rigid3DTransform );
00049
00051 itkStaticConstMacro(SpaceDimension, unsigned int, 3);
00052 itkStaticConstMacro(ParametersDimension, unsigned int, 6);
00053
00055 typedef typename Superclass::ScalarType ScalarType;
00056
00058 typedef typename Superclass::ParametersType ParametersType;
00059
00061 typedef typename Superclass::JacobianType JacobianType;
00062
00064 typedef typename Superclass::VnlQuaternionType VnlQuaternionType;
00065
00067 typedef typename Superclass::VersorType VersorType;
00068 typedef typename VersorType::VectorType AxisType;
00069 typedef typename VersorType::ValueType AngleType;
00070
00072 typedef typename Superclass::OffsetType OffsetType;
00073
00075 typedef typename Superclass::InputPointType InputPointType;
00076 typedef typename Superclass::OutputPointType OutputPointType;
00077
00079 typedef typename Superclass::InputVectorType InputVectorType;
00080 typedef typename Superclass::OutputVectorType OutputVectorType;
00081
00083 typedef typename Superclass::InputCovariantVectorType InputCovariantVectorType;
00084 typedef typename Superclass::OutputCovariantVectorType OutputCovariantVectorType;
00085
00087 typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
00088 typedef typename Superclass::OutputVnlVectorType OutputVnlVectorType;
00089
00094 void SetParameters( const ParametersType & parameters );
00095
00097 void SetRotation( const VersorType & versor );
00098 void SetRotation( const AxisType & axis, AngleType angle );
00099
00104 const JacobianType & GetJacobian(const InputPointType &point ) const;
00105
00106 protected:
00107 VersorRigid3DTransform();
00108 ~VersorRigid3DTransform(){};
00109 void PrintSelf(std::ostream &os, Indent indent) const;
00110
00112 void ComputeMatrix(void);
00113
00114 private:
00115 VersorRigid3DTransform(const Self&);
00116 void operator=(const Self&);
00117
00119 VersorType m_Versor;
00120
00121 };
00122
00123
00124 }
00125
00126
00127 #ifndef ITK_MANUAL_INSTANTIATION
00128 #include "itkVersorRigid3DTransform.txx"
00129 #endif
00130
00131 #endif