pub fn mul_c(src: &GMat, multiplier: f64, ddepth: i32) -> Result<GMat>
Expand description
Multiplies matrix by scalar.
The function mulC multiplies each element of matrix src by given scalar value:
The matrices can be single or multi channel. Output matrix must have the same size as src.
Supported matrix data types are [CV_8UC1], [CV_8UC3], [CV_16UC1], [CV_16SC1], [CV_32FC1].
Note: Function textual ID is “org.opencv.core.math.mulC”
Parameters
- src: input matrix.
- multiplier: factor to be multiplied.
- ddepth: optional depth of the output matrix. If -1, the depth of output matrix will be the same as input matrix depth.
See also
add, sub, div, addWeighted
C++ default parameters
- ddepth: -1