Ask Your Question

Revision history [back]

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?