在openCV、python中使用缝合类查找图像缝合的相对图像偏移

在openCV、python中使用缝合类查找图像缝合的相对图像偏移,python,opencv-stitching,Python,Opencv Stitching,使用python中的缝合类,我想发现成功缝合后使用的偏移量。 例如: import cv2 img1=cv2.imread(<some image>) img2=cv2.imread(<some other image>) stitcher = cv2.Stitcher.create(cv2.Stitcher_SCANS) status, pano = stitcher.stitch(img1,img2]) 导入cv2 img1=cv2.imread()

使用python中的缝合类,我想发现成功缝合后使用的偏移量。 例如:

import cv2
img1=cv2.imread(<some image>)
img2=cv2.imread(<some other image>)
stitcher = cv2.Stitcher.create(cv2.Stitcher_SCANS)        
status, pano = stitcher.stitch(img1,img2])
导入cv2
img1=cv2.imread()
img2=cv2.imread()
stitcher=cv2.stitcher.create(cv2.stitcher\u扫描)
状态,pano=缝合器缝合(img1,img2])

假设成功(状态=0),缝合的结果存储在pano中。除非它们是相同的图像,否则img1]和img2会进行一些平移(包括平移、扭曲等)缝合。如何获取有关翻译的信息?

for stick-in
C++
不显示任何获取这些信息的函数。Python的
版本可能也不会提供这些信息。也许你必须检查源代码,看看它是如何使用的,以及它是否保存了这些信息。谢谢furas,我看到没有关于它的文档,但我希望我错了。我将使用不同的库。