sumElems
import { sumElems } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSsrc
FUNCTIONsumElems
RETURN TYPEScalar
Calculates the sum of array elements.
The function cv::sum calculates and returns the sum of array elements, independently for each channel.
See: countNonZero, mean, meanStdDev, norm, minMaxLoc, reduce
sumElems(src: Mat): Scalar;srcinput array that must have from 1 to 4 channels.
Returns
The Scalar result.
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.