Skip to content

gapi_I4202BGR

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

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

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

Converts an image from I420 color space to BGR color space.

The function converts an input image from I420 color space to BGR. The conventional ranges for B, G, and R channel values are 0 to 255.

Output image must be 8-bit unsigned 3-channel image. CV_8UC3. Width of BGR output image must be the same as width of input image. Height of BGR output image must be equal 2/3 from height of input image.

Note: Function textual ID is "org.opencv.imgproc.colorconvert.i4202bgr"

See: BGR2I420

gapi_I4202BGR(src: GMat): GMat;
src

input image: 8-bit unsigned 1-channel image CV_8UC1.

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.