I want to stitch together 2 images using OpenCV's stitching.cpp sample program
When I attempt to stitch the images, I get "Can't stitch images, error code = 1" depending on what images I attempt to stitch together.
For example, the following 2 example images I got online are successfully stitched together:
But these 2 images get me the error:
Any ideas why?
Thanks.
Asked
Active
Viewed 297 times
-1

s123
- 461
- 1
- 4
- 18
1 Answers
1
there is no overlap whatesoever and they are blurred as well, take better pictures with more overlap. Even as a human, i'm finding hard to understand where the images should be stitched.

Andrea
- 495
- 5
- 15
-
Thanks. I didn't know there had to be overlap. Thought any 2 images could be stitched from edge to edge. (That's really what I care about). I tried stitching images that had more overlap this time with no error but much of the picture came out as black blank space. Are there guidelines to how much overlap is required? – s123 May 04 '15 at 13:07
-
The more the merrier, usually =) depending on the algorithm. Probably openCV is around 70% for good results, but your mileage may vary! If you just want to merge two images by its edge (basically if i understand correctly, pic1 800x600, pic2 800x600 --> get a 1600x600 img ?), then openCV is a bit of an overkill, try something like CImg for example – Andrea May 04 '15 at 14:22
-
Thanks, I asked a new question here: http://stackoverflow.com/questions/30055085/opencv-image-stitching-does-not-work-properly I try to have overlap in my sample images, but still cannot get the output correctly. – s123 May 05 '15 at 15:37