00001 00006 #ifndef P_OBJECT_3D_HH 00007 #define P_OBJECT_3D_HH 00008 00009 #include <opencv2/opencv.hpp> 00010 #include <map> 00011 #include <string> 00012 #include <blort/Recognizer3D/PNamespace.hh> 00013 #include <blort/Recognizer3D/Array.hh> 00014 #include <blort/Recognizer3D/PoseCv.hh> 00015 #include <blort/Recognizer3D/CodebookEntry.hh> 00016 #include <blort/Recognizer3D/SPolygon.hh> 00017 00018 namespace P 00019 { 00020 00021 00022 class Object3D 00023 { 00024 public: 00025 unsigned id; 00026 std::string file_name; 00027 static unsigned idcnt; 00028 00029 Array<CodebookEntry *> codebook; 00030 00031 double conf; //confidence value [0...1] 00032 double err; //reprojection error [0...Def::DO_RANSAC_INL_DIST] 00033 00034 PoseCv pose; 00035 SPolygon contour; 00036 00037 Object3D(); 00038 ~Object3D(); 00039 }; 00040 00041 00042 void DeleteObjects3D(Array<Object3D*> &objects); 00043 00044 00045 /*********************** INLINE METHODES **************************/ 00046 00047 00048 00049 } 00050 00051 #endif 00052