Updated by Alexander Shishkov about 13 years ago
[Summary]
I enabled "WITH_OPENEXR" flag in CMake.
And, I make OpenCV [[OpenCV]] library using Visual Studio.
But, the program crashes when it read some of the OpenEXR [[OpenEXR]] format images.
[Reproduction environment]
OS:
Windows7 Win32
IDE:
Visual Studio 2010
OpenCV: [[OpenCV]]:
OpenCV [[OpenCV]] 2.2
OpenEXR: [[OpenEXR]]:
openexr-1.7.0
ilmbase-1.0.2
zlib-1.2.5
OpenEXR [[OpenEXR]] images
openexr-images-1.7.0\TestImages\SquaresSwirls.exr
http://www.openexr.com/downloads.html
[Sample code]
IplImage [[IplImage]] *img = cvLoadImage("SquaresSwirls.exr", CV_LOAD_IMAGE_COLOR);
[Call sequence]
--------------------------------[OpenCV]
cvLoadImage()
cv::imread()
ExrDecoder::readData() [[ExrDecoder]]::readData()
--------------------------------[OpenEXR]
FrameBuffer::insert() [[FrameBuffer]]::insert() <====== Crash occur!
I enabled "WITH_OPENEXR" flag in CMake.
And, I make OpenCV [[OpenCV]] library using Visual Studio.
But, the program crashes when it read some of the OpenEXR [[OpenEXR]] format images.
[Reproduction environment]
OS:
Windows7 Win32
IDE:
Visual Studio 2010
OpenCV: [[OpenCV]]:
OpenCV [[OpenCV]] 2.2
OpenEXR: [[OpenEXR]]:
openexr-1.7.0
ilmbase-1.0.2
zlib-1.2.5
OpenEXR [[OpenEXR]] images
openexr-images-1.7.0\TestImages\SquaresSwirls.exr
http://www.openexr.com/downloads.html
[Sample code]
IplImage [[IplImage]] *img = cvLoadImage("SquaresSwirls.exr", CV_LOAD_IMAGE_COLOR);
[Call sequence]
--------------------------------[OpenCV]
cvLoadImage()
cv::imread()
ExrDecoder::readData() [[ExrDecoder]]::readData()
--------------------------------[OpenEXR]
FrameBuffer::insert() [[FrameBuffer]]::insert() <====== Crash occur!