Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

is this a bug in High Dynamic Range Imaging (OpenCV3 alpha)

I installed OpenCv 3.0 alpha and tried the sample code from this tutorial:

http://docs.opencv.org/trunk/doc/tutorials/photo/hdr_imaging/hdr_imaging.html

the result for tone mapped is not good and it generate a lot of false colours.

image description

also the fusion doesn't work and generate an error:

OpenCV Error: Assertion failed (y == 0 || (data && dims >= 1 && (unsigned)y < (u nsigned)size.p[0])) in cv::Mat::ptr, file C:\builds\master_PackSlave-win64-vc11- static\opencv\modules\core\include\opencv2/core/mat.inl.hpp, line 750

it is happening on this line in code (on pyrUp call) in my case where I have 7 images, it crashes when lvl is 4.:

for(int lvl = 0; lvl < maxlevel; lvl++) {
    Mat up;
    pyrUp(img_pyr[lvl + 1], up, img_pyr[lvl].size());
    img_pyr[lvl] -= up;
 }

I am testing this code on visual studio 2012 on windows 7. My project is a x64 bit project.