Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

What have you tried to write and read the image? I work with a carmine, which also uses 16UC1 for depth and I write with cv::imwrite and read via

cv::Mat depth = cv::imread(filename,CV_LOAD_IMAGE_ANYDEPTH | CV_LOAD_IMAGE_ANYCOLOR);
assert(depth.type() == CV_16UC1);