gapi_NV12toGray
import { gapi_NV12toGray } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Converts an image from NV12 (YUV420p) color space to gray-scaled. The function converts an input image from NV12 color space to gray-scaled. The conventional ranges for Y, U, and V channel values are 0 to 255.
Output image must be 8-bit unsigned 1-channel image CV_8UC1.
Note: Function textual ID is "org.opencv.imgproc.colorconvert.nv12togray"
See: YUV2RGB, NV12toBGR
gapi_NV12toGray(src_y: GMat, src_uv: GMat): GMat;src_yinput image: 8-bit unsigned 1-channel image
CV_8UC1.src_uvinput image: 8-bit unsigned 2-channel image
CV_8UC2.
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.