cv.decomposeProjectionMatrix - MATLAB File Help |
Decomposes a projection matrix into a rotation matrix and a camera matrix
[cameraMatrix,rotMatrix,transVect] = cv.decomposeProjectionMatrix(projMatrix)
[cameraMatrix,rotMatrix,transVect,S] = cv.decomposeProjectionMatrix(projMatrix)
The function computes a decomposition of a projection matrix into a calibration and a rotation matrix and the position of a camera.
It optionally returns three rotation matrices, one for each axis, and three Euler angles that could be used in OpenGL. Note, there is always more than one sequence of rotations about the three principal axes that results in the same orientation of an object, eg. see [Slabaugh]. Returned three rotation matrices and corresponding three Euler angles are only one of the possible solutions.
The function is based on cv.RQDecomp3x3
[Slabaugh]:
Gregory G Slabaugh. "Computing euler angles from a rotation matrix". Retrieved on August, 6:2000, 1999.