Ask Your Question

Revision history [back]

Application crashes while reading tiff file

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-11443883/Depth.zip.html

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?