Ask Your Question

ypnos's profile - activity

2013-05-14 05:10:55 -0600 received badge  Teacher (source)
2013-05-11 21:12:53 -0600 received badge  Supporter (source)
2013-05-11 21:12:17 -0600 received badge  Editor (source)
2013-05-11 21:10:11 -0600 answered a question Cannot view 16-bit grey level Images.

I don't know about the TIFF reader, but OpenCV can read and even write 16bit PNG files. You can convert your TIFF to PNG without loss.

This works for me:

cv::Mat input = cv::imread(filename, -1);

To write a matrix 16bit, make sure it has CV_16U format and pass it to imwrite.