gapi_mean
import { gapi_mean } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSsrc
FUNCTIONgapi_mean
RETURN TYPEGScalar
Calculates an average (mean) of matrix elements.
The function mean calculates the mean value M of matrix elements, independently for each channel, and return it.
Supported matrix data types are CV_8UC1, CV_8UC3, CV_16UC1, CV_16SC1, CV_32FC1.
Note: Function textual ID is "org.opencv.core.math.mean"
See: countNonZero, min, max
gapi_mean(src: GMat): GScalar;srcinput matrix.
Returns
The GScalar 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.