I use plenty of spherical photo to get a mesh through Agisoft PhotoScan.
Then Igot some matrix when I export cameras position. Just like this(matrix T):
-0.511694036391242 -0.0411030960876485 0.858183982962656 1.99800308440097
-0.0693802126173348 0.997569689800658 0.00641093504817247 0.0122834877415445
-0.856361838955247 -0.0562605499708989 -0.51330220270145 -2.25970593612181
0 0 0 1
As you can see,the rotation matrix is About the Y axis. but I want rotate matrix is About the Z axis. So I rotate the mesh 90° about the X axis.
Just like left-multiply this matrix (matrix R):(R*T)
1 0 0 0
0 0 1 0
0 -1 0 0
0 0 0 1
Then I got this matrix:
-0.511694 -0.0693802 -0.856362 -0.911907
0.858378 0.0014639 -0.513017 -2.87433
0.0368469 -0.99759 0.0588053 0.0715165
0 0 0 1
This is camera position is not about the Z axis.
But,I already checked that the translation matrix is correct.
Can you tell me which step I'm wrong?