46 : Freenect::FreenectDevice(_ctx, _index),
50 m_colorImage = std::vector<uint8_t>(freenect_find_video_mode(FREENECT_RESOLUTION_MEDIUM, FREENECT_VIDEO_RGB).bytes,0 );
57 uint8_t* rgb =
static_cast<uint8_t*
>(data);
58 std::copy(rgb, rgb+getVideoBufferSize(),
m_colorImage.begin());
90 short* depth =
static_cast<short*
>(data);
91 for(
unsigned int i = 0 ; i < 640*480 ; i++) {