First time here? Check out the FAQ!
answered 2012-07-20 09:49:43 -0600
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) );