Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef OPENCV_HELPER_H
00017 #define OPENCV_HELPER_H
00018
00019 #include <boost/thread/thread.hpp>
00020 #include "cxcore.h"
00021 #include "cv.h"
00022 #include "highgui.h"
00023 #include "index.h"
00024
00025 class high_gui_thread
00026 {
00027 public:
00028 void operator() ()
00029 {
00030 while (true)
00031 {
00032 cvWaitKey (100);
00033 std::cerr << "###" << std::endl;
00034 }
00035 }
00036 };
00037
00038
00039 inline
00040 boost::thread start_highgui ()
00041 {
00042 high_gui_thread T;
00043 return boost::thread (T);
00044 }
00045
00046 #endif // OPENCV_HELPER_H