00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef __CovarianceEllipsoid_H_
00031 #define __CovarianceEllipsoid_H_
00032
00033
00034 #ifdef HAVE_CONFIG_H
00035 #include <config.h>
00036 #endif
00037
00038 #include <tnt.h>
00039
00040 namespace DWARF {
00041
00042
00043
00044
00045
00046
00047
00048 class CovarianceEllipsoid
00049 {
00050 protected:
00051 TNT::Array2D<double> m_Eigenvectors;
00052 TNT::Array1D<double> m_Scale;
00053
00054 public:
00055
00056 CovarianceEllipsoid();
00057
00058
00059
00060
00061
00062 void SetCovariance( const TNT::Array2D<double>& C );
00063
00064
00065 const TNT::Array2D<double>& GetRotationMatrix() const
00066 { return m_Eigenvectors; }
00067
00068
00069 void GetRotationQuaternion( double* Q ) const;
00070
00071
00072 const TNT::Array1D<double>& GetScaling() const
00073 { return m_Scale; }
00074 };
00075
00076 }
00077 #endif //__CovarianceEllipsoid_H_