Skip to content

gapi_threshold1

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

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

ARGUMENTSsrc, maxval, type_
FUNCTIONgapi_threshold1
RETURN TYPEtuple_GMat_and_GScalar
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

This function applicable for all threshold types except cv::THRESH_OTSU and cv::THRESH_TRIANGLE

Note: Function textual ID is "org.opencv.core.matrixop.thresholdOT"

gapi_threshold1(src: GMat, maxval: GScalar, type_: number): tuple_GMat_and_GScalar;
src

src argument (GMat).

maxval

maxval argument (GScalar).

type_

type argument (number).

Returns

The tuple_GMat_and_GScalar result.

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.