I am stitching images in OpenCV, where I photograph a flat scene from different places and try to make a panorama. I changed the stitching example to fit my needs. The problem with the openCV pipeline is that it involves a clean camera rotation, which is not the case for me. When the pictures are made perfectly orthogonal to the scene (without camera rotation, just translation), the result is not bad, but when there is both camera rotation and translation, the results do not satisfy.
I can calculate the homology between camera positions, which can be done because the scene is flat, but I donβt know what the next step is. My idea is to distort the image using homography so that the camera is facing the plane orthogonally, and then apply the line. The problem is that I do not know the true locations of the objects. How can i do this? Is there anything else that I could try to get better line results for a planar scene with arbitrary camera movement?
Chris source share