Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
uint16_t *depthMap = (uint16_t*)buffer;
int cols = 640;
int rows = 480;
Mat depthFrame( rows, cols, CV_16UC1 );
memcpy( depthFrame.data, depthMap, rows*cols*sizeof(uint16_t) );