the program crashes when it read some of the OpenEXR format images (Bug #864)
Description
[Summary]
I enabled "WITH_OPENEXR" flag in CMake.
And, I make OpenCV library using Visual Studio.
But, the program crashes when it read some of the OpenEXR format images.
[Reproduction environment]
OS:
Windows7 Win32
IDE:
Visual Studio 2010
OpenCV:
OpenCV 2.2
OpenEXR:
openexr-1.7.0
ilmbase-1.0.2
zlib-1.2.5
OpenEXR images
openexr-images-1.7.0\TestImages\SquaresSwirls.exr
http://www.openexr.com/downloads.html
[Sample code]
IplImage *img = cvLoadImage("SquaresSwirls.exr", CV_LOAD_IMAGE_COLOR);
[Call sequence]
--------------------------------[OpenCV]
cvLoadImage()
cv::imread()
ExrDecoder::readData()
--------------------------------[OpenEXR]
FrameBuffer::insert() <====== Crash occur!
Associated revisions
Merge pull request #864 from pengx17:2.4_stereobm
History
Updated by Alexander Shishkov about 13 years ago
- Description changed from [Summary] I enabled "WITH_OPENEXR" flag in CMake. And, I make [[Ope... to [Summary] I enabled "WITH_OPENEXR" flag in CMake. And, I make OpenC... More
Updated by Alexander Shishkov almost 13 years ago
- Priority changed from High to Normal
- Target version deleted ()
Updated by Andrey Kamaev almost 13 years ago
- Assignee set to Andrey Kamaev
Updated by Andrey Kamaev almost 13 years ago
It seems that problem is already fixed. The most recent version works fine for me
1Mat img = imread("SquaresSwirls.exr");
2Mat smaller;
3resize(img, smaller, Size(), 0.5, 0.5);
4imshow(imagename, smaller);
5waitKey();
My environment:
Windows7 Win64 (tried both 32-bit and 64-bit builds) Visual Studio 2010 OpenCV 2.4.0-beta openexr-1.7.0 ilmbase-1.0.2 zlib-1.2.6
Result:
- Status changed from Open to Cancelled
- Target version set to 2.4.0
- File openexr.png added