OpenCV: get perspective matrix from translation & rotation
I'm trying to verify my camera calibration, so I'd like to rectify the calibration images. I expect that this will involve using a call to warpPerspective but I do not see an obvious function that takes the camera matrix, and the rotation and translation vectors to generate the perspective matrix for this call. Essentially I want to do the process described here (see especially the images towards the end) but starting with a known camera model and pose. Is there a straightforward function call that takes the camera intrinsic and extrinsic parameters and computes the perspective matrix for use