pub fn mask(
src: &impl GMatTraitConst,
mask: &impl GMatTraitConst,
) -> Result<GMat>
Expand description
Applies a mask to a matrix.
The function mask set value from given matrix if the corresponding pixel value in mask matrix set to true, and set the matrix value to 0 otherwise.
Supported src matrix data types are [CV_8UC1], [CV_16SC1], [CV_16UC1]. Supported mask data type is [CV_8UC1].
Note: Function textual ID is “org.opencv.core.math.mask”
§Parameters
- src: input matrix.
- mask: input mask matrix.