Finding relative image offsets for image stitching with stitching class in openCV, python

Viewed 52

Using the Stitching class in python, I'd like to discover the offsets used after successfully stitching. For example:

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])

assuming success (status = 0), the stitched result is stored in pano. Unless they are the same image, img1] and img2 are stitched with some translation (incl. shifting, warping, etc). How can I obtain information about the translations?

0 Answers
Related