I have two sets of corresponding points from two images. I have estimated the Essential matrix which encodes the transformation between the cameras:
E, mask = cv2.findEssentialMat(points1, points2, 1.0)
I've then extracted the rotation and translation components:
points, R, t, mask = cv2.recoverPose(E, points1, points2)
But how do I actually get the cameras matrices of the two cameras so I can use cv2.triangulatePoints
to generate a little point cloud?
Here is what I did:
Input:
Code:
Output: