I'm a beginner programmer and just started using OpenCV. I want to stitch together 2 images using OpenCV's stitching.cpp Sample program When I attempt to stitch the images, I either get a "Can't stitch images, error code = 1" or the images come out with a lot of black blank space. I've tried to create as much overlap as I can when taking the photos, and still that's the case. Is there something wrong with the way I'm taking photos? Here are examples of pictures that I took myself and their output:
Input images:
Output image:
This is a bad output. Notice the black space and how the image looks much different. There is a bit more to the output image that I was not able to show because imwrite did not save the file. I had to use imshow, then do a screen shot, but the image was too wide to capture in one screenshot. Regardless, still not a good output.
Here are example images I got online for another stitching program. These images stitched together perfectly:
Output: