[][src]Function opencv::calib3d::rq_decomp3x3

pub fn rq_decomp3x3(
    src: &dyn ToInputArray,
    mtx_r: &mut dyn ToOutputArray,
    mtx_q: &mut dyn ToOutputArray,
    qx: &mut dyn ToOutputArray,
    qy: &mut dyn ToOutputArray,
    qz: &mut dyn ToOutputArray
) -> Result<Vec3d>

Computes an RQ decomposition of 3x3 matrices.

Parameters

  • src: 3x3 input matrix.
  • mtxR: Output 3x3 upper-triangular matrix.
  • mtxQ: Output 3x3 orthogonal matrix.
  • Qx: Optional output 3x3 rotation matrix around x-axis.
  • Qy: Optional output 3x3 rotation matrix around y-axis.
  • Qz: Optional output 3x3 rotation matrix around z-axis.

The function computes a RQ decomposition using the given rotations. This function is used in decomposeProjectionMatrix to decompose the left 3x3 submatrix of a projection matrix into a camera and a rotation matrix.

It optionally returns three rotation matrices, one for each axis, and the three Euler angles in degrees (as the return value) that could be used in OpenGL. Note, there is always more than one sequence of rotations about the three principal axes that results in the same orientation of an object, e.g. see Slabaugh . Returned tree rotation matrices and corresponding three Euler angles are only one of the possible solutions.

C++ default parameters

  • qx: noArray()
  • qy: noArray()
  • qz: noArray()