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