sum method

Scalar sum()

Sum calculates the per-channel pixel sum of an image.

Implementation

Scalar sum() {
  final s = calloc<ccore.Scalar>();
  cvRun(() => ccore.Mat_Sum(ref, s));
  return Scalar.fromPointer(s);
}