'How can I find the translation of the picture after sgbm-process?

I used a left picture and a right picture to make an sgbm picture.

the original left picture, the original right picture and the result picture "disparity":

enter image description here

I want to know the translation between the original left picture and the disparity, I think the answer is related to these 2 code:

mapLx, mapLy = cv2.initUndistortRectifyMap(cameraMatrixL, distCoeffL, Rl, Pl, imageSize, cv2.CV_32FC1)
rectifyImageL = cv2.remap(grayImageL, mapLx, mapLy, cv2.INTER_LINEAR)

Can I get the translation from mapLx and mapLy?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source