Jafar
|
00001 /* $Id$ */ 00002 00003 #ifndef _FDETECT_FLOAT_DESCRIPTOR_HPP_ 00004 #define _FDETECT_FLOAT_DESCRIPTOR_HPP_ 00005 00006 #include <boost/serialization/vector.hpp> 00007 #include <boost/archive/text_oarchive.hpp> 00008 #include <boost/archive/text_iarchive.hpp> 00009 #include "fdetect/Descriptor.hpp" 00010 00011 namespace jafar { 00012 namespace fdetect { 00018 class FloatDescriptor : public jafar::fdetect::Descriptor { 00019 public: 00026 FloatDescriptor(jafar::fdetect::InterestFeature* ip, int deslength, const float* descr, double normalizeCoef); 00027 FloatDescriptor(FloatDescriptor const& m); 00028 FloatDescriptor& operator=(FloatDescriptor const& m) { if (&m != this) *this = *(new FloatDescriptor(m)); return *this; } 00029 virtual Descriptor* clone() { return new FloatDescriptor(*this); } 00030 ~FloatDescriptor(); 00031 virtual void print(std::ostream& s) const; 00035 virtual double weakComparison(jafar::fdetect::Descriptor *) const; 00041 virtual double strongComparison(jafar::fdetect::Descriptor * snd, double angle) const; 00042 00043 public: 00044 int m_descLength; 00045 float* m_descr; 00046 double m_normalizeCoef; 00048 friend class boost::serialization::access; 00049 template<class Archive> 00050 void serialize(Archive &ar, const unsigned int version) 00051 { 00052 ar & m_descLength; 00053 for (int i = 0; i < m_descLength; ++i) 00054 ar & m_descr[i]; 00055 ar & m_normalizeCoef; 00056 } 00057 }; 00058 } 00059 } 00060 00061 #endif
Generated on Wed Oct 15 2014 00:37:18 for Jafar by doxygen 1.7.6.1 |