3

我目前正在使用 OpenEXR 进行一个项目,我想实现一些 Blob 检测算法。为此,我想我可以使用 OpenCV,因为它在文档中说它可以打开 OpenEXR 格式文件。

我已经安装了所有的库,并且像我一直在做其他事情一样工作。我用 openCV cvLoadImage 打开一个简单的 jpg 文件。它工作正常。但是当我尝试打开任何 .exr 文件时,它并不喜欢它。我得到一个灰色窗口,应该有图像显示。

有没有人用 OpenCV 和 OpenEXR 库一起做任何测试?他们为你工作了吗?你怎么看?

谢谢。

4

3 回答 3

3

是的,已经完成了,我在 willowGarage 的 OpenCV 项目中发布了一张票,他们进行了所有必要的更改,您现在可以像以前一样将 OpenEXR 与 OpenCV 一起使用!太好了,我的 HDR 色调映射算法将再次起作用,很酷现在有一个很好的编程;o) Alex

于 2010-07-04T17:08:27.763 回答
0

Well Alex!

My news aren't really encouraging... I tried to use OpenEXR with OpenCV but it's not doing it's work. It says in the documentation that OpenCV 2.0 has OpenEXR support but...

I've searched the web to find some example of working EXR images in OpenCV but had no luck.

At this time I've developed myself a function to convert an image read with the OpenEXR libraries that uses Ilm::Rgba* structure to save the pixels of the image and convert it to char* that OpenCV uses with images. The IlpImage structure is the one I use. Actually I'm working with an example from OpenFrameworks and using they're Image structure...

It's a really early stage in my development because I had to start over...

I hope this can help you... but if you enter the world of OpenEXR it's a pretty dark world in terms of documentation, so all I can say is good luck!

Feel free to contact me and I'll see if I can help you!

于 2010-05-10T10:14:37.387 回答
0

这个问题现在已经很老了,但是我在今天阅读OpenEXR 手册时注意到它说(同时谈论阅读命名频道)

如果图像文件中不存在这些通道之一,则像素的相应内存缓冲区将填充适当的默认值。

我在这里推测您看到的灰色图像是“适当的默认值”。

于 2010-11-09T16:29:18.940 回答