Using EXR Images in OpenCV

I am currently working on a project with OpenEXR, and I would like to implement some Blob detection algorithms. For this, I decided that I could use OpenCV, since it says in the documentation that it can open OpenEXR format files.

I have all the libraries installed and working, as I do other things. I open a simple jpg file with openCV cvLoadImage. It is working fine. But when I try to open any .exr file, it is not suitable for this. I get a gray window where the image should be displayed.

Have you done any tests with OpenCV and OpenEXR libraries working together? Did they work for you? What do you think?

Thank.

+3
source share
3 answers

Yes, it was done, I sent a ticket to the OpenCV project on WillowGarage, and they made all the necessary changes, now you can use OpenEXR with OpenCV, as before! big My HDR tone mapping algorithm will work again, cool You have good programming now; o) Alex

+2
source

Ok Alex!

My news is not very encouraging ... I tried to use OpenEXR with OpenCV, but it does not work. The documentation says that OpenCV 2.0 supports OpenEXR, but ...

I searched the Internet to find an example of how EXR images work in OpenCV, but no luck.

OpenEXR, Ilm:: Rgba *, char *, OpenCV , IlpImage , . OpenFrameworks ...

, ...

, ... OpenEXR, , , , - !

, , !

0

This question is now quite old, but I noticed that today I read the OpenEXR manual , which says (showing about reading the named channels)

If one of these channels is not in the image file, the corresponding memory buffer for pixels will be filled with the corresponding default value.

I would suggest that the gray image you see is "a suitable default value."

0
source

Source: https://habr.com/ru/post/1729599/


All Articles