inRange

Description

Checks if array elements lie between the elements of two other arrays.

Signature

cv2.inRange(src, lowerb, upperb[, dst]) → dst

Parameters

Explanation

The function checks the range as follows:

...and so on. That is, \(\text{dst}(I)\) is set to 255 (all 1-bits) if \(\text{src}(I)\) is within the specified 1D, 2D, 3D, ... boundaries and 0 otherwise. When the lower and/or upper boundary parameters are scalars, the indices \(I\) at lowerb and upperb in the above formulas should be omitted, but the channel indices remain.


References

Created with OpenCV 4.4.0