Ask Your Question
1

Using OpenCV's stitching module, strange error when compositing images

asked 2012-07-11 16:55:31 -0600

Jason Tu gravatar image

I'm using OpenCV's stitching module to stitch together a hundred or so 4288x2848 images. I'm stitching a few images a time; I plan on stitching these smaller stitches into one final panorama.

The stitching module works perfectly most of the time. However, I get an exception when I accidentally include duplicates, or images that have no features in common. No big deal, that's my fault. But sometimes, after the stitching module begins to composite the images onto a panorama, I get this error in the command line:

OpenCV Error: Assertion failed (y == 0 || data && dims >= 1 && (unsigned)y < (unsigned)size.p[0])) in unknown function, file C:\slave\WinInstallerMegaPack\src\opencv\modules\core\include\opencv2/core/mat.h\ pp, line 425

This boggles my mind. Does it have something to do with memory? I don't know. Any help would be appreciated.

edit retag flag offensive close merge delete

Comments

Example input images (but not a hundred ;-) might help to reproduce and debug this issue...

Kirill Kornyakov gravatar imageKirill Kornyakov ( 2012-07-13 02:23:56 -0600 )edit

Hey Kirill, thanks for the reply! Each file is about 6MB, I'm assuming imgur would be appropriate?

Jason Tu gravatar imageJason Tu ( 2012-07-13 14:22:10 -0600 )edit

Did you ever resolve this?

serializer gravatar imageserializer ( 2016-11-25 10:27:46 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2012-07-18 02:05:10 -0600

Alexey Spizhevoy gravatar image

updated 2012-07-18 03:56:43 -0600

Jason, you better report a bug at code.opencv.org. When reporting, please, attach some code that reproduces the error. And attach images as well, but try to find as small dataset as possible where the error occures. We'll work on fixing this bug.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-07-11 16:55:31 -0600

Seen: 2,267 times

Last updated: Jul 18 '12