invisible
view src/frame.h @ 18:ad78eb81988d
backup
author | Eleni Maria Stea <eleni@mutantstargoat.com> |
---|---|
date | Sun, 10 Nov 2013 00:38:23 +0200 |
parents | 700127288dc5 |
children |
line source
1 #ifndef FRAME_H_
2 #define FRAME_H_
4 #include <libfreenect.h>
5 #include <cv.h>
7 struct Frame {
8 cv::Mat depth_buf;
9 cv::Mat video_buf;
11 unsigned int depth_tex;
12 unsigned int video_tex;
14 Frame();
15 ~Frame(); //TODO delete Mat
17 void tex_setup();
18 void process();
20 void draw();
21 void draw_video();
22 void draw_depth();
23 };
25 void video_cb(freenect_device *kin_dev, void *video, uint32_t time);
26 void depth_cb(freenect_device *kin_dev, void *depth, uint32_t time);
28 bool save_video_ppm(void *video, int w, int h);
29 bool save_depth_ppm(void *depth, int w, int h);
31 #endif // FRAME_H_