invisible
diff src/frame.h @ 2:b0b90ef993a0
backup
author | Eleni Maria Stea <eleni@mutantstargoat.com> |
---|---|
date | Wed, 09 Oct 2013 22:56:42 +0300 |
parents | fdbd55eaa14e |
children | 1ff5a1a50b41 |
line diff
1.1 --- a/src/frame.h Sat Oct 05 19:02:40 2013 +0300 1.2 +++ b/src/frame.h Wed Oct 09 22:56:42 2013 +0300 1.3 @@ -2,19 +2,17 @@ 1.4 #define FRAME_H_ 1.5 1.6 #include <libfreenect.h> 1.7 +#include <cv.h> 1.8 1.9 -class Frame { 1.10 -private: 1.11 - int width; 1.12 - int height; 1.13 +struct Frame { 1.14 + cv::Mat depth_buf; 1.15 + cv::Mat video_buf; 1.16 1.17 -public: 1.18 Frame(); 1.19 - 1.20 + void process(); 1.21 }; 1.22 1.23 -void init_frame_mx(); 1.24 -void video_cb(freenect_device *kin_dev, void *rgb, uint32_t time); 1.25 +void video_cb(freenect_device *kin_dev, void *video, uint32_t time); 1.26 void depth_cb(freenect_device *kin_dev, void *depth, uint32_t time); 1.27 1.28 #endif // FRAME_H_