cv.compare - MATLAB File Help
cv.compare

Performs the per-element comparison of two arrays or an array and scalar value

dst = cv.compare(src1, src2, cmpop)

Input

Output

The function compares:

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:

dst1 = src1 >= src2;
dst2 = src1 < 8;
...
See also