problem with parameter of stereoRectify function
Hello,
I want to use the stereoRectify function, which has a left and a right images, a rotation matrix R and a translation vector T as input (amongst others). R and T describe the relative orientation of the right image with respect to the right image.
My problem is that I have two images with external orientation parameters R1,T1 and R2,T2, which I want to transform to R and T. Well for T this seems easy: T2 - T1. But for R I'm not sure. Maybe transpose(R1)*R2 is the correct approach?
Can anybody point me to a solution? I guess this should be a fairly well known problem.
Torsten
You can look here for a similar problem: How to derive relative R and T from camera extrinsics.