[][src]Function opencv::core::mul_transposed

pub fn mul_transposed(
    src: &dyn ToInputArray,
    dst: &mut dyn ToOutputArray,
    a_ta: bool,
    delta: &dyn ToInputArray,
    scale: f64,
    dtype: i32
) -> Result<()>

Calculates the product of a matrix and its transposition.

The function cv::mulTransposed calculates the product of src and its transposition: block formula if aTa=true , and block formula otherwise. The function is used to calculate the covariance matrix. With zero delta, it can be used as a faster substitute for general matrix product A*B when B=A'

Parameters

  • src: input single-channel matrix. Note that unlike gemm, the function can multiply not only floating-point matrices.
  • dst: output square matrix.
  • aTa: Flag specifying the multiplication ordering. See the description below.
  • delta: Optional delta matrix subtracted from src before the multiplication. When the matrix is empty ( delta=noArray() ), it is assumed to be zero, that is, nothing is subtracted. If it has the same size as src , it is simply subtracted. Otherwise, it is "repeated" (see repeat ) to cover the full src and then subtracted. Type of the delta matrix, when it is not empty, must be the same as the type of created output matrix. See the dtype parameter description below.
  • scale: Optional scale factor for the matrix product.
  • dtype: Optional type of the output matrix. When it is negative, the output matrix will have the same type as src . Otherwise, it will be type=CV_MAT_DEPTH(dtype) that should be either CV_32F or CV_64F .

See also

calcCovarMatrix, gemm, repeat, reduce

C++ default parameters

  • delta: noArray()
  • scale: 1
  • dtype: -1