I have multiple partial spherical panorama pictures taken using the standard Android panorama function. The problem is that the panorama does not stop at 360 degrees, but is overlapping at the left/right border. So it contains not just only 360 degrees, but more - let's say 365 degrees. Like this image here: As you can see, the fire extinguisher is visible on both sides of the panorama.
I tried to autocorrect the images and crop right or left with hugin, but without success. I can import the image using the equirectangular type and 360 degrees horizontal field of view, but I was not able to automatically (or manually) find control points in the same image in order to recognize and correct the overlap. The only way was to manually limit the horizontal angle of view using the slider on the bottom.
Is there a way to (ideally automatically without GUI) recognize and crop the overlap?
@inkista: thank you very much for your post. Based on this post, I tried the following (with Python/OpenCV):
- split the image into two parts
- find keypoints (limited to the border of the image)
- flip the image positions (so that the 2 images of the fire-extinguisher are side-by-side)
- try to "combine" the images to a single panorama
But when applying the perspective transformation, the image is nice but unfortunately the transformation is applied to the whole right sub-image: As inkista wrote, this part will be tricky again because of all the distortions (since we were turning around with the phone in my hand).