35 #ifndef KINECGRABBER_H_ 36 #define KINECGRABBER_H_ 39 #include "libfreenect.hpp" 41 #include <boost/thread.hpp" void getDepthImage(std::vector< short > &img)
Returns the currently present point cloud data.
virtual void VideoCallback(void *data, uint32_t timestamp)
boost::mutex m_depthMutex
Mutex for save depth buffer access.
static Timestamp timestamp
A global time stamp object for program runtime measurement.
std::shared_ptr< PointBuffer > PointBufferPtr
virtual void DepthCallback(void *data, uint32_t timestamp)
std::vector< uint8_t > m_colorImage
The raw color image.
PointBufferPtr m_buffer
PointBufferPtr with current data.
KinectGrabber(freenect_context *_ctx, int _index)
boost::mutex m_colorMutex
Mutex for save color buffer access.
std::vector< short > m_depthImage
The raw depth image.
void getColorImage(std::vector< uint8_t > &img)