Ask Your Question

jann's profile - activity

2016-03-31 15:46:33 -0600 asked a question 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-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?

2016-03-29 15:49:49 -0600 commented question How do I Access Channels beyond the First 3 or 4 in an OpenEXR Image?

Hi Eduardo, your code shows me resolution (dims) of my exr. It printed out 2 values. 4096, 4096. This is the image resolution of my file. I got no other data.

Jason asked also on stackoverflow and he got an answer:

http://stackoverflow.com/questions/25...

It seems that OpenCV can only read the image as RGB.

Pritty sad because I think that OpenCV is quite easy to use. Loading an OpenEXR into a QT Framework based app is not so easy.

2016-03-28 15:07:27 -0600 answered a question How do I Access Channels beyond the First 3 or 4 in an OpenEXR Image?

Hi, I know this topic is quite old, but i have a similar problem:

If an EXR is loaded, mat.channel() shows me only 3 channels that means that I cannot access the alpha channel. Saving an png with alpha as exr ends up in an exr without an alpha channel.

Is there a restiction in the implementation?

Thanks for your help.

2015-03-31 06:37:31 -0600 commented question OpenEXR image is very dark when displaying

I think the problem here is that the range is higher than 1. E.g: 0 - 2000. And that is whay the values are getting to dark. So I need something like a mapping colors based on the max value of the image file.

2015-03-31 03:30:03 -0600 commented question OpenEXR image is very dark when displaying

Hi Steven, thanks for the quick reply.

Do you mean the bit range? Normally the exr is saved in 32 bit float. The image resolution is recognized correctly when I load an exr file.

Maybe I am missing some flags witth imread or imshow?

2015-03-31 00:49:15 -0600 asked a question OpenEXR image is very dark when displaying

Hello, i am trying to show an OpenEXR file with OpenCV. The code is quite simple and loading of the OpenEXR seems to work.

cv::Mat inputImage = cv::imread("e:\\Daten\\Maya\\Projects\\bedroom\\tmp\\Bedroom2012.exr);
cv::imshow("Display Image", inputImage);

When I load the a jpg everything looks the same compared to other image viewer. When I now load the exr file, the image is totally black. But there is a bright spot where i have very high white values (light bulb).

Do I need to convert the image data somehow? It is not the normal gamma 2.2 issue you got with exr files. Any ideas?