Application crashes while reading tiff file

asked 2016-03-31 15:46:33 -0500

jann gravatar image

Hi, I have a problem while reading a tiff file. It is a 32bit floating file and consists of greyscale values. When I read it, the application crashes. You can find the tiff file here.

http://www.file-upload.net/download-1...

I use this code to read it. Quite simple:

cv::Mat src = cv::imread("Depth.tif", CV_LOAD_IMAGE_UNCHANGED);

Simply image readers like xnview shows the image distorted. If you load the picture in application like Nuke or pdplayer, it works.

Does anybody have an idea how to load the tiff file?

edit retag flag offensive close merge delete