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(() => cffi.Mat_MeanStdDev(ref, mean, sd));
  return Scalar.fromPointer(sd);
}