OpenCV - How to map between corresponding points of stitched images

一曲冷凌霜 提交于 2019-12-12 15:17:49

问题


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.

来源:https://stackoverflow.com/questions/41623700/opencv-how-to-map-between-corresponding-points-of-stitched-images

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!