invisible
annotate src/kinect.h @ 0:80df8030105b
init kinect
author | Eleni Maria Stea <eleni@mutantstargoat.com> |
---|---|
date | Sat, 05 Oct 2013 16:03:08 +0300 |
parents | |
children | b0b90ef993a0 |
rev | line source |
---|---|
eleni@0 | 1 #ifndef KINECT_H_ |
eleni@0 | 2 #define KINECT_H_ |
eleni@0 | 3 |
eleni@0 | 4 #include <libfreenect.h> |
eleni@0 | 5 |
eleni@0 | 6 #define FREENECT_ANGLE 30 |
eleni@0 | 7 |
eleni@0 | 8 struct KinectParams { |
eleni@0 | 9 double angle; |
eleni@0 | 10 freenect_led_options led_color; |
eleni@0 | 11 freenect_video_format video_format; |
eleni@0 | 12 freenect_depth_format depth_format; |
eleni@0 | 13 freenect_resolution video_res; |
eleni@0 | 14 freenect_resolution depth_res; |
eleni@0 | 15 |
eleni@0 | 16 KinectParams() |
eleni@0 | 17 { |
eleni@0 | 18 angle = 10; |
eleni@0 | 19 led_color = LED_RED; |
eleni@0 | 20 video_format = FREENECT_VIDEO_RGB; |
eleni@0 | 21 depth_format = FREENECT_DEPTH_11BIT; |
eleni@0 | 22 video_res = FREENECT_RESOLUTION_MEDIUM; |
eleni@0 | 23 depth_res = FREENECT_RESOLUTION_MEDIUM; |
eleni@0 | 24 } |
eleni@0 | 25 }; |
eleni@0 | 26 |
eleni@0 | 27 bool init_kinect(freenect_context **kin_ctx, freenect_device **kin_dev, KinectParams *kin_params); |
eleni@0 | 28 void stop_kinect(freenect_context *kin_ctx, freenect_device *kin_dev); |
eleni@0 | 29 |
eleni@0 | 30 #endif // KINECT_H_ |