Skip to content

gapi_inRange

gapifunctionOpenCV 5.0.0
import { gapi_inRange } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSsrc, threshLow, threshUp
FUNCTIONgapi_inRange
RETURN TYPEGMat
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

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"

See: threshold

gapi_inRange(src: GMat, threshLow: GScalar, threshUp: GScalar): GMat;
src

input matrix (CV_8UC1).

threshLow

lower boundary value.

threshUp

upper boundary value.

Returns

The GMat result. Release returned native handles with using or delete(), including handles nested in results.

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.