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 "itkVersorTransform.h"
00023
00024 namespace itk
00025 {
00026
00033 template < class TScalarType=double >
00034 class ITK_EXPORT VersorRigid3DTransform :
00035 public VersorTransform< TScalarType >
00036 {
00037 public:
00039 typedef VersorRigid3DTransform Self;
00040 typedef VersorTransform< TScalarType > Superclass;
00041 typedef SmartPointer<Self> Pointer;
00042 typedef SmartPointer<const Self> ConstPointer;
00043
00045 itkNewMacro( Self );
00046
00048 itkTypeMacro( VersorRigid3DTransform, VersorTransform );
00049
00051 itkStaticConstMacro(SpaceDimension, unsigned int, 3);
00052 itkStaticConstMacro(InputSpaceDimension, unsigned int, 3);
00053 itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3);
00054 itkStaticConstMacro(ParametersDimension, unsigned int, 6);
00055
00057 typedef typename Superclass::ParametersType ParametersType;
00058 typedef typename Superclass::JacobianType JacobianType;
00059 typedef typename Superclass::ScalarType ScalarType;
00060 typedef typename Superclass::InputPointType InputPointType;
00061 typedef typename Superclass::OutputPointType OutputPointType;
00062 typedef typename Superclass::InputVectorType InputVectorType;
00063 typedef typename Superclass::OutputVectorType OutputVectorType;
00064 typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
00065 typedef typename Superclass::OutputVnlVectorType OutputVnlVectorType;
00066 typedef typename Superclass::InputCovariantVectorType
00067 InputCovariantVectorType;
00068 typedef typename Superclass::OutputCovariantVectorType
00069 OutputCovariantVectorType;
00070 typedef typename Superclass::MatrixType MatrixType;
00071 typedef typename Superclass::InverseMatrixType InverseMatrixType;
00072 typedef typename Superclass::CenterType CenterType;
00073 typedef typename Superclass::OffsetType OffsetType;
00074 typedef typename Superclass::TranslationType TranslationType;
00075
00077 typedef typename Superclass::VersorType VersorType;
00078 typedef typename Superclass::AxisType AxisType;
00079 typedef typename Superclass::AngleType AngleType;
00080
00085 void SetParameters( const ParametersType & parameters );
00086 virtual const ParametersType& GetParameters(void) const;
00087
00092 const JacobianType & GetJacobian(const InputPointType &point ) const;
00093
00094 protected:
00095 VersorRigid3DTransform(unsigned int outputSpaceDim,
00096 unsigned int paramDim);
00097 VersorRigid3DTransform(const MatrixType & matrix,
00098 const OutputVectorType & offset);
00099 VersorRigid3DTransform();
00100 ~VersorRigid3DTransform(){};
00101
00102 void PrintSelf(std::ostream &os, Indent indent) const;
00103
00104 private:
00105 VersorRigid3DTransform(const Self&);
00106 void operator=(const Self&);
00107
00108 };
00109
00110
00111 }
00112
00113
00114 #ifndef ITK_MANUAL_INSTANTIATION
00115 #include "itkVersorRigid3DTransform.txx"
00116 #endif
00117
00118 #endif