Go to the documentation of this file.
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++) {
std::vector< uint8_t > m_colorImage
The raw color image.
virtual void DepthCallback(void *data, uint32_t timestamp)
virtual void VideoCallback(void *data, uint32_t timestamp)
static Timestamp timestamp
A global time stamp object for program runtime measurement.
void getDepthImage(std::vector< short > &img)
Returns the currently present point cloud data.
boost::mutex m_colorMutex
Mutex for save color buffer access.
boost::mutex m_depthMutex
Mutex for save depth buffer access.
KinectGrabber(freenect_context *_ctx, int _index)
void getColorImage(std::vector< uint8_t > &img)
std::vector< short > m_depthImage
The raw depth image.
lvr2
Author(s): Thomas Wiemann
, Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Wed Mar 2 2022 00:37:23