invisible

diff src/kinect.cc @ 5:700127288dc5

quick backup todo: fix save_ppm subimage2d
author Eleni Maria Stea <eleni@mutantstargoat.com>
date Thu, 24 Oct 2013 00:09:13 +0300
parents b0b90ef993a0
children 4f1b8ddcd32e
line diff
     1.1 --- a/src/kinect.cc	Wed Oct 16 15:41:08 2013 +0300
     1.2 +++ b/src/kinect.cc	Thu Oct 24 00:09:13 2013 +0300
     1.3 @@ -5,6 +5,22 @@
     1.4  #include "kinect.h"
     1.5  #include "frame.h"
     1.6  
     1.7 +KinectParams::KinectParams()
     1.8 +{
     1.9 +		angle = 10;
    1.10 +
    1.11 +		video_width = KINECT_VIDEO_WIDTH;
    1.12 +		video_height = KINECT_VIDEO_HEIGHT;
    1.13 +		depth_width = KINECT_DEPTH_WIDTH;
    1.14 +		depth_height = KINECT_DEPTH_HEIGHT;
    1.15 +
    1.16 +		led_color = LED_RED;
    1.17 +		video_format = FREENECT_VIDEO_RGB;
    1.18 +		depth_format = FREENECT_DEPTH_11BIT;
    1.19 +		video_res = FREENECT_RESOLUTION_MEDIUM;
    1.20 +		depth_res = FREENECT_RESOLUTION_MEDIUM;
    1.21 +}
    1.22 +
    1.23  bool init_kinect(freenect_context **kin_ctx, freenect_device **kin_dev, KinectParams *kin_params)
    1.24  {
    1.25  	if(freenect_init(kin_ctx, NULL) < 0) {