opencv stitch CameraParams::R
Hello,
I want to get the rotation and translation of each xyz axis in each picture. I am not sure the meanings of each value in CameraParams::R. What I understood are as follows: The R contains the rotation and translation information.
R = Rz*Ry*Rx = [r00 r01 r02;
r10 r11 r12;
r20 r21 r22]
The third column is replaced by t[t0 t1 t2];
R = [r00 r01 t0;
r10 r11 t1;
r20 r21 t2]
The final result is (Matlab)
cos(thy)*cos(thz), cos(thx)*sin(thz) + cos(thz)*sin(thx)*sin(thy), t0 ;
-cos(thy)*sin(thz), cos(thx)*cos(thz) - sin(thx)*sin(thy)*sin(thz), t1 ;
sin(thy), -cos(thy)*sin(thx), t2 ;
But I cannot get the right rotation and translation. I want to know whether the CameraParams::R is the same as I have mentioned above?
Thanks in advance!