Function opencv::gapi::abs_diff_c
source · pub fn abs_diff_c(src: &GMat, c: &GScalar) -> Result<GMat>Expand description
Calculates absolute value of matrix elements.
The function abs calculates absolute difference between matrix elements and given scalar value:
where matC is constructed from given scalar c and has the same sizes and depth as input matrix src.
Output matrix must be of the same size and depth 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.matrixop.absdiffC”
Parameters
- src: input matrix.
- c: scalar to be subtracted.
See also
min, max