pub fn in_range(
src: &GMat,
thresh_low: &GScalar,
thresh_up: &GScalar
) -> Result<GMat>
Expand description
Applies a range-level threshold to each matrix element.
The function applies range-level thresholding to a single- or multiple-channel matrix. It sets output pixel value to OxFF if the corresponding pixel value of input matrix is in specified range,or 0 otherwise.
Input and output matrices must be CV_8UC1.
Note: Function textual ID is “org.opencv.core.matrixop.inRange”
Parameters
- src: input matrix (CV_8UC1).
- threshLow: lower boundary value.
- threshUp: upper boundary value.
See also
threshold