Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

KeyframeResult.h

Go to the documentation of this file.
00001 #ifndef Impala_Core_Trec_KeyframeResult_h
00002 #define Impala_Core_Trec_KeyframeResult_h
00003 
00004 namespace Impala {
00005 namespace Core {
00006 namespace Trec {
00007 
00011 class KeyframeResult
00012 {
00013     friend std::ostream &operator<<(std::ostream &output, const KeyframeResult &tr) {
00014         output << tr.keyframeid << " (" << tr.score << ", " << tr.rank << ")";
00015         return output;
00016     }
00017 
00018 public:
00019     int keyframeid;
00020     int rank;
00021     Real64 score;
00022 
00023     KeyframeResult() {
00024         keyframeid = -1;
00025         rank = 0;
00026         score = 0.0;
00027     }
00028 
00029     KeyframeResult(const KeyframeResult &copy) {
00030         keyframeid = copy.keyframeid;
00031         rank = copy.rank;
00032         score = copy.score;
00033     }
00034 
00035     ~KeyframeResult() {
00036 
00037     }
00038 
00039     KeyframeResult &operator=(const KeyframeResult &o) {
00040         this->keyframeid = o.keyframeid;
00041         this->rank = o.rank;
00042         this->score = o.score;
00043         return *this;
00044     }
00045 
00046     int operator==(const KeyframeResult &o) {
00047         if (this->keyframeid == o.keyframeid) {
00048             return 1;
00049         }
00050         return 0;
00051     }
00052 
00053     int operator<(const KeyframeResult &o) {
00054         return this->keyframeid < o.keyframeid;
00055     }
00056 };
00057 
00058 } // Trec
00059 } // Core
00060 } // Impala
00061 
00062 #endif

Generated on Fri Mar 19 09:31:26 2010 for ImpalaSrc by  doxygen 1.5.1