gapi_sum
import { gapi_sum } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSsrc
FUNCTIONgapi_sum
RETURN TYPEGScalar
Calculates sum of all matrix elements.
The function sum calculates sum of all matrix elements, independently for each channel.
Supported matrix data types are CV_8UC1, CV_8UC3, CV_16UC1, CV_16SC1, CV_32FC1.
Note: Function textual ID is "org.opencv.core.matrixop.sum"
See: countNonZero, mean, min, max
gapi_sum(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.