Ask Your Question
0

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

asked 2014-08-22 07:19:35 -0600

user10001 gravatar image

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.

edit retag flag offensive close merge delete

Comments

I got exactly the same problem now. Any solutions known yet?

JohannesZ gravatar imageJohannesZ ( 2014-09-16 03:49:36 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-10-03 16:27:36 -0600

did you fix this?

Also, how did you compile the opencv libraries?

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-08-22 07:19:35 -0600

Seen: 748 times

Last updated: Oct 03 '14