Table of Contents

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

projMatrix InputArray

3x4 input projection matrix P.

cameraMatrix OutputArray

Output 3x3 camera matrix K.

rotMatrix OutputArray

Output 3x3 external rotation matrix R.

transVect OutputArray

Output 4x1 translation vector T.

rotMatrixX OutputArray

Optional 3x3 rotation matrix around x-axis.

rotMatrixY OutputArray

Optional 3x3 rotation matrix around y-axis.

rotMatrixZ OutputArray

Optional 3x3 rotation matrix around z-axis.

eulerAngles OutputArray

ptional 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

projMatrix double[,]

3x4 input projection matrix P.

cameraMatrix double[,]

Output 3x3 camera matrix K.

rotMatrix double[,]

Output 3x3 external rotation matrix R.

transVect double[]

Output 4x1 translation vector T.

rotMatrixX double[,]

Optional 3x3 rotation matrix around x-axis.

rotMatrixY double[,]

Optional 3x3 rotation matrix around y-axis.

rotMatrixZ double[,]

Optional 3x3 rotation matrix around z-axis.

eulerAngles double[]

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)

Parameters

projMatrix double[,]

3x4 input projection matrix P.

cameraMatrix double[,]

Output 3x3 camera matrix K.

rotMatrix double[,]

Output 3x3 external rotation matrix R.

transVect double[]

Output 4x1 translation vector T.