pub fn cmp_ne_1(
src1: &impl GMatTraitConst,
src2: &impl GScalarTraitConst,
) -> Result<GMat>
Expand description
Performs the per-element comparison of two matrices checking if elements from first matrix are not equal to elements in second.
The function compares elements of two matrices src1 and src2 of the same size:
When the comparison result is true, the corresponding element of output
array is set to 255. The comparison operations can be replaced with the
equivalent matrix expressions:
Output matrix of depth [CV_8U] must have the same size and the same number of channels as the input matrices.
Supported input matrix data types are [CV_8UC1], [CV_8UC3], [CV_16UC1], [CV_16SC1], [CV_32FC1].
Note: Function textual ID is “org.opencv.core.pixelwise.compare.cmpNE”
§Parameters
- src1: first input matrix.
- src2: second input matrix/scalar of the same depth as first input matrix.
§See also
min, max, threshold, cmpEQ
§Overloaded parameters
Note: Function textual ID is “org.opencv.core.pixelwise.compare.cmpNEScalar”