Skip to content

gapi_split3

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

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

ARGUMENTSsrc
FUNCTIONgapi_split3
RETURN TYPEtuple_GMat_and_GMat_and_GMat
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Divides a 3-channel matrix into 3 single-channel matrices.

The function splits a 3-channel matrix into 3 single-channel matrices:

\texttt{mv} [c](I) =  \texttt{src} (I)_c

All output matrices must be of CV_8UC1 type.

The function merge3 does the reverse operation.

Note: - Function textual ID is "org.opencv.core.transform.split3"

See: split4, merge3, merge4

gapi_split3(src: GMat): tuple_GMat_and_GMat_and_GMat;
src

input CV_8UC3 matrix.

Returns

The tuple_GMat_and_GMat_and_GMat 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.