OpenCV - How to map between corresponding points o

2019-07-18 18:53发布

问题:

I'm using OpenCV 3.2 and I have a Stitcher set up to stitch two images. The stitching works great. But once it is complete I want to be able to determine the mapping from a point in image A to the corresponding point in image B.

I don't care how the images are laid out in the panorama, I just need to be able to transform from (x_A,y_A), the coordinates of a point in image A, to (x_B, y_B), the coordinates of the corresponding point in image B.

How do I get that mapping out of OpenCV using the Stitcher class?

Note: It's also acceptable to tell me how to get the mapping from image A to the panorama and then from the panorama to image B.

Note: Also, if there's a cheaper way where I can just get the mapping and I don't have to invoke the whole Stitcher pipeline, I'd like to know that too.