Skip to content

gapi_cmpLT1

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

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

ARGUMENTSsrc1, src2
FUNCTIONgapi_cmpLT1
RETURN TYPEGMat
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Performs the per-element comparison of two matrices checking if elements from first matrix are less than elements in second.

The function compares elements of two matrices src1 and src2 of the same size:

\texttt{dst} (I) =  \texttt{src1} (I)  < \texttt{src2} (I)

When the comparison result is true, the corresponding element of output array is set to 255. The comparison operations can be replaced with the equivalent matrix expressions:

\texttt{dst} =   \texttt{src1} < \texttt{src2}

Output matrix of depth CV_8U must have the same size and the same number of channels as the input matrices/matrix.

Supported input matrix data types are CV_8UC1, CV_8UC3, CV_16UC1, CV_16SC1, CV_32FC1.

Note: Function textual ID is "org.opencv.core.pixelwise.compare.cmpLT"

See: min, max, threshold, cmpLE, cmpGE, cmpGT

gapi_cmpLT1(src1: GMat, src2: GScalar): GMat;
src1

first input matrix.

src2

second input matrix/scalar of the same depth as first input matrix.

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.