Jafar
|
00001 /* $Id$ */ 00002 00003 #ifndef _FDETECT_DOUBLE_DESCRIPTOR_HPP_ 00004 #define _FDETECT_DOUBLE_DESCRIPTOR_HPP_ 00005 00006 #include <boost/archive/text_oarchive.hpp> 00007 #include <boost/archive/text_iarchive.hpp> 00008 #include <boost/serialization/vector.hpp> 00009 00010 #include "fdetect/Descriptor.hpp" 00011 00012 namespace jafar { 00013 namespace fdetect { 00019 class DoubleDescriptor : public jafar::fdetect::Descriptor { 00020 public: 00027 DoubleDescriptor(jafar::fdetect::InterestFeature* ip, int deslength, const double* descr, double normalizeCoef); 00028 DoubleDescriptor(DoubleDescriptor const& m); 00029 DoubleDescriptor& operator=(DoubleDescriptor const& m) { if (&m != this) *this = *(new DoubleDescriptor(m)); return *this; } 00030 virtual Descriptor* clone() { return new DoubleDescriptor(*this); } 00031 ~DoubleDescriptor(); 00032 virtual void print(std::ostream& s) const; 00036 virtual double weakComparison(jafar::fdetect::Descriptor *) const; 00042 virtual double strongComparison(jafar::fdetect::Descriptor * snd, double angle) const; 00043 public: 00044 int m_descLength; 00045 double* 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 00062 #endif
Generated on Wed Oct 15 2014 00:37:18 for Jafar by doxygen 1.7.6.1 |