sumAsync method

Future<Scalar> sumAsync()

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

Implementation

Future<Scalar> sumAsync() async {
  final s = calloc<cvg.Scalar>();
  return cvRunAsync0<Scalar>(
    (callback) => ccore.cv_sum(ref, s, callback),
    (c) => c.complete(Scalar.fromPointer(s)),
  );
}