mean function

Scalar mean(
  1. InputArray src, {
  2. InputArray? mask,
})

mean

Implementation

Scalar mean(InputArray src, {InputArray? mask}) {
  final p = calloc<cvg.Scalar>();
  mask == null
      ? cvRun(() => ccore.cv_mean(src.ref, p, ffi.nullptr))
      : cvRun(() => ccore.cv_mean_1(src.ref, mask.ref, p, ffi.nullptr));
  return Scalar.fromPointer(p);
}