Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
keygroup.hGo to the documentation of this file.00001 #ifndef __KEYGROUP_H 00002 #define __KEYGROUP_H 00003 00004 #include <vector> 00005 #include <fstream> 00006 00007 class keypoint; 00008 class model; 00009 00010 class keygroup{ 00011 private: 00012 int id; 00013 public: 00014 keygroup(int ID=getNewKeygroupID()); 00015 00016 model *M; 00017 std::vector<keygroup*> neighbors; 00018 std::vector<keypoint*> keypts; 00019 00020 bool isNeighbor(keygroup *g); 00021 int compareTo(std::vector<keypoint*>* keypoints); 00022 int compareTo(keygroup *g); 00023 keypoint* bestMatchInGroup(keypoint* key, double* sqDist); 00024 00025 int getID() const { return id; } 00026 00027 static int getNewKeygroupID() { return keygroupID++; } 00028 00029 void writeToFile(std::ofstream& outfile); 00030 00031 private: 00032 static int keygroupID; 00033 00034 keygroup(const keygroup&); // Do not use 00035 keygroup& operator=(const keygroup&); // Do not use 00036 }; 00037 00038 #endif |
Tekkotsu v5.1CVS |
Generated Mon May 9 04:58:42 2016 by Doxygen 1.6.3 |