[−][src]Function opencv::core::gemm
pub fn gemm(
src1: &dyn ToInputArray,
src2: &dyn ToInputArray,
alpha: f64,
src3: &dyn ToInputArray,
beta: f64,
dst: &mut dyn ToOutputArray,
flags: i32
) -> Result<()>
Performs generalized matrix multiplication.
The function cv::gemm performs generalized matrix multiplication similar to the
gemm functions in BLAS level 3. For example,
gemm(src1, src2, alpha, src3, beta, dst, GEMM_1_T + GEMM_3_T)
corresponds to
In case of complex (two-channel) data, performed a complex matrix multiplication.
The function can be replaced with a matrix expression. For example, the above call can be replaced with:
ⓘThis example is not tested
dst = alpha*src1.t()*src2 + beta*src3.t();
Parameters
- src1: first multiplied input matrix that could be real(CV_32FC1, CV_64FC1) or complex(CV_32FC2, CV_64FC2).
- src2: second multiplied input matrix of the same type as src1.
- alpha: weight of the matrix product.
- src3: third optional delta matrix added to the matrix product; it should have the same type as src1 and src2.
- beta: weight of src3.
- dst: output matrix; it has the proper size and the same type as input matrices.
- flags: operation flags (cv::GemmFlags)
See also
mulTransposed , transform
C++ default parameters
- flags: 0