Method DecomposeProjectionMatrix
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
DecomposeProjectionMatrix(InputArray, OutputArray, OutputArray, OutputArray, OutputArray, OutputArray, OutputArray, OutputArray)
Decomposes the projection matrix into camera matrix and the rotation martix and the translation vector
public static void DecomposeProjectionMatrix(InputArray projMatrix, OutputArray cameraMatrix, OutputArray rotMatrix, OutputArray transVect, OutputArray rotMatrixX = default, OutputArray rotMatrixY = default, OutputArray rotMatrixZ = default, OutputArray eulerAngles = default)
Parameters
projMatrixInputArray3x4 input projection matrix P.
cameraMatrixOutputArrayOutput 3x3 camera matrix K.
rotMatrixOutputArrayOutput 3x3 external rotation matrix R.
transVectOutputArrayOutput 4x1 translation vector T.
rotMatrixXOutputArrayOptional 3x3 rotation matrix around x-axis.
rotMatrixYOutputArrayOptional 3x3 rotation matrix around y-axis.
rotMatrixZOutputArrayOptional 3x3 rotation matrix around z-axis.
eulerAnglesOutputArrayptional three-element vector containing three Euler angles of rotation in degrees.
DecomposeProjectionMatrix(double[,], out double[,], out double[,], out double[], out double[,], out double[,], out double[,], out double[])
Decomposes the projection matrix into camera matrix and the rotation martix and the translation vector
public static void DecomposeProjectionMatrix(double[,] projMatrix, out double[,] cameraMatrix, out double[,] rotMatrix, out double[] transVect, out double[,] rotMatrixX, out double[,] rotMatrixY, out double[,] rotMatrixZ, out double[] eulerAngles)
Parameters
projMatrixdouble[,]3x4 input projection matrix P.
cameraMatrixdouble[,]Output 3x3 camera matrix K.
rotMatrixdouble[,]Output 3x3 external rotation matrix R.
transVectdouble[]Output 4x1 translation vector T.
rotMatrixXdouble[,]Optional 3x3 rotation matrix around x-axis.
rotMatrixYdouble[,]Optional 3x3 rotation matrix around y-axis.
rotMatrixZdouble[,]Optional 3x3 rotation matrix around z-axis.
eulerAnglesdouble[]ptional three-element vector containing three Euler angles of rotation in degrees.
DecomposeProjectionMatrix(double[,], out double[,], out double[,], out double[])
Decomposes the projection matrix into camera matrix and the rotation martix and the translation vector
public static void DecomposeProjectionMatrix(double[,] projMatrix, out double[,] cameraMatrix, out double[,] rotMatrix, out double[] transVect)