| 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
)
Public Shared Sub DecomposeProjectionMatrix (
projMatrix As InputArray,
cameraMatrix As OutputArray,
rotMatrix As OutputArray,
transVect As OutputArray,
Optional rotMatrixX As OutputArray = Nothing,
Optional rotMatrixY As OutputArray = Nothing,
Optional rotMatrixZ As OutputArray = Nothing,
Optional eulerAngles As OutputArray = Nothing
)
public:
static void DecomposeProjectionMatrix(
InputArray^ projMatrix,
OutputArray^ cameraMatrix,
OutputArray^ rotMatrix,
OutputArray^ transVect,
OutputArray^ rotMatrixX = nullptr,
OutputArray^ rotMatrixY = nullptr,
OutputArray^ rotMatrixZ = nullptr,
OutputArray^ eulerAngles = nullptr
)
static member DecomposeProjectionMatrix :
projMatrix : InputArray *
cameraMatrix : OutputArray *
rotMatrix : OutputArray *
transVect : OutputArray *
?rotMatrixX : OutputArray *
?rotMatrixY : OutputArray *
?rotMatrixZ : OutputArray *
?eulerAngles : OutputArray
(* Defaults:
let _rotMatrixX = defaultArg rotMatrixX null
let _rotMatrixY = defaultArg rotMatrixY null
let _rotMatrixZ = defaultArg rotMatrixZ null
let _eulerAngles = defaultArg eulerAngles null
*)
-> unit
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