00001 #ifndef CGH_WRAPPER_H 00002 #define CGH_WRAPPER_H 00003 00004 #include <boost/numeric/ublas/vector.hpp> 00005 #include <boost/shared_ptr.hpp> 00006 #include "cgh.h" 00007 00008 namespace mimas { 00009 00010 class cgh_wrapper; 00011 00013 typedef boost::shared_ptr< cgh_wrapper > cgh_wrapper_ptr; 00014 00024 class cgh_wrapper: public object 00025 { 00026 00027 public: 00028 typedef boost::numeric::ublas::vector< double > Vector; 00029 Vector position; 00030 double contrast; 00031 cgh_ptr cgh; 00032 00033 //additional vars used in matching: 00034 double match_score; 00035 cgh_wrapper_ptr best_match; 00036 long best_match_num; 00037 00038 cgh_wrapper() {// cgh=NULL; 00039 // best_match=NULL; 00040 match_score=0; 00041 best_match_num=-1;} 00042 // ~cgh_wrapper() { if (cgh) delete cgh; } 00043 }; 00044 00046 typedef std::list< cgh_wrapper_ptr > cgh_wrapper_ptr_list; 00047 00048 } 00049 00050 #endif