Click or drag to resize

Cv2DecomposeProjectionMatrix Method (InputArray, OutputArray, OutputArray, OutputArray, OutputArray, OutputArray, OutputArray, OutputArray)

Decomposes the projection matrix into camera matrix and the rotation martix and the translation vector

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.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: OpenCvSharpInputArray
3x4 input projection matrix P.
cameraMatrix
Type: OpenCvSharpOutputArray
Output 3x3 camera matrix K.
rotMatrix
Type: OpenCvSharpOutputArray
Output 3x3 external rotation matrix R.
transVect
Type: OpenCvSharpOutputArray
Output 4x1 translation vector T.
rotMatrixX (Optional)
Type: OpenCvSharpOutputArray
Optional 3x3 rotation matrix around x-axis.
rotMatrixY (Optional)
Type: OpenCvSharpOutputArray
Optional 3x3 rotation matrix around y-axis.
rotMatrixZ (Optional)
Type: OpenCvSharpOutputArray
Optional 3x3 rotation matrix around z-axis.
eulerAngles (Optional)
Type: OpenCvSharpOutputArray
ptional three-element vector containing three Euler angles of rotation in degrees.
See Also