[][src]Function opencv::calib3d::mat_mul_deriv

pub fn mat_mul_deriv(
    a: &dyn ToInputArray,
    b: &dyn ToInputArray,
    d_a_bd_a: &mut dyn ToOutputArray,
    d_a_bd_b: &mut dyn ToOutputArray
) -> Result<()>

Computes partial derivatives of the matrix product for each multiplied matrix.

Parameters

  • A: First multiplied matrix.
  • B: Second multiplied matrix.
  • dABdA: First output derivative matrix d(A*B)/dA of size inline formula .
  • dABdB: Second output derivative matrix d(A*B)/dB of size inline formula .

The function computes partial derivatives of the elements of the matrix product inline formula with regard to the elements of each of the two input matrices. The function is used to compute the Jacobian matrices in stereoCalibrate but can also be used in any other similar optimization function.