gapi_RGB2Lab
import { gapi_RGB2Lab } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Converts an image from RGB color space to Lab color space.
The function converts an input image from BGR color space to Lab. The conventional ranges for R, G, and B channel values are 0 to 255.
Output image must be 8-bit unsigned 3-channel image CV_8UC1.
Note: Function textual ID is "org.opencv.imgproc.colorconvert.rgb2lab"
See: RGB2YUV, RGB2LUV
gapi_RGB2Lab(src: GMat): GMat;srcinput image: 8-bit unsigned 3-channel image
CV_8UC1.
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.