Decomposes the projection matrix into camera matrix and the rotation martix and the translation vector
Namespace: OpenCvSharp.CPlusPlus
Assembly: OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static void DecomposeProjectionMatrix( InputArray projMatrix, OutputArray cameraMatrix, OutputArray rotMatrix, OutputArray transVect, OutputArray rotMatrixX = null, OutputArray rotMatrixY = null, OutputArray rotMatrixZ = null, OutputArray eulerAngles = null )
Parameters
- projMatrix
- Type: OpenCvSharp.CPlusPlusInputArray
3x4 input projection matrix P. - cameraMatrix
- Type: OpenCvSharp.CPlusPlusOutputArray
Output 3x3 camera matrix K. - rotMatrix
- Type: OpenCvSharp.CPlusPlusOutputArray
Output 3x3 external rotation matrix R. - transVect
- Type: OpenCvSharp.CPlusPlusOutputArray
Output 4x1 translation vector T. - rotMatrixX (Optional)
- Type: OpenCvSharp.CPlusPlusOutputArray
Optional 3x3 rotation matrix around x-axis. - rotMatrixY (Optional)
- Type: OpenCvSharp.CPlusPlusOutputArray
Optional 3x3 rotation matrix around y-axis. - rotMatrixZ (Optional)
- Type: OpenCvSharp.CPlusPlusOutputArray
Optional 3x3 rotation matrix around z-axis. - eulerAngles (Optional)
- Type: OpenCvSharp.CPlusPlusOutputArray
ptional three-element vector containing three Euler angles of rotation in degrees.
See Also