CameraThread.h
Go to the documentation of this file.
00001 
00002 
00003 #ifndef _CAMERA_THREAD_H_
00004 #define _CAMERA_THREAD_H_
00005 
00006 #include <blort/ThreadObject/Thread.h>
00007 #include <blort/TomGine/tgTimer.h>
00008 //#include <opencv/cv.h>
00009 //#include <opencv/highgui.h>
00010 #include <opencv2/highgui/highgui.hpp>
00011 
00012 class CCameraThread : public CThread
00013 {
00014 private:
00015         bool m_new_image;
00016         int m_camID;
00017         int m_width;
00018         int m_height;
00019         
00020         TomGine::tgTimer m_timer;
00021         
00022         CvCapture* m_capture;
00023         IplImage* m_image;
00024         
00025         CEventClass m_evData;
00026         
00027 public:
00028         CCameraThread(int camID, int width, int height);
00029         ~CCameraThread();
00030         
00031         virtual BOOL OnTask();
00032         
00033         bool GetImage(IplImage* image);
00034         void GetSize(int &width, int &height){ width = m_width; height = m_height; }
00035         
00036 };
00037 
00038 #endif /* _CAMERA_THREAD_H_ */
00039 


blort
Author(s): Thomas Mörwald , Michael Zillich , Andreas Richtsfeld , Johann Prankl , Markus Vincze , Bence Magyar
autogenerated on Wed Aug 26 2015 15:24:12