gapi_BGR2Gray
import { gapi_BGR2Gray } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSsrc
FUNCTIONgapi_BGR2Gray
RETURN TYPEGMat
Converts an image from BGR color space to gray-scaled.
The conventional ranges for B, G, and R channel values are 0 to 255. Resulting gray color value computed as
\texttt{dst} (I)= \texttt{0.114} * \texttt{src}(I).B + \texttt{0.587} * \texttt{src}(I).G + \texttt{0.299} * \texttt{src}(I).R
Note: Function textual ID is "org.opencv.imgproc.colorconvert.bgr2gray"
See: BGR2LUV
gapi_BGR2Gray(src: GMat): GMat;srcinput image: 8-bit unsigned 3-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.