cv.inRange - MATLAB File Help
cv.inRange

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

dst = cv.inRange(src, lowerb, upperb)

Input

Output

The function checks the range as follows:

That is, dst(i,j,...) is set to true if src(i,j,...,:) is within the specified 1D, 2D, 3D, ... box and false otherwise.

When the lower and/or upper boundary parameters are scalars, the indexes at lowerb and upperb in the above formulas should be omitted.

See also