stdDev method

Scalar stdDev()

Calculates standard deviation, per channel.

Scalar order is same as Mat, i.e., BGR -> BGR

Implementation

Scalar stdDev() {
  final mean = calloc<cvg.Scalar>();
  final sd = calloc<cvg.Scalar>();
  cvRun(() => ccore.cv_meanStdDev(ref, mean, sd, ffi.nullptr));
  return Scalar.fromPointer(sd);
}