Mat.randn constructor

Mat.randn(
  1. int rows,
  2. int cols,
  3. MatType type, {
  4. Scalar? mean,
  5. Scalar? std,
})

Implementation

factory Mat.randn(int rows, int cols, MatType type, {Scalar? mean, Scalar? std}) {
  mean ??= Scalar.all(0);
  std ??= Scalar.all(1);
  final mat = Mat.create(rows: rows, cols: cols, type: type);
  cvRun(() => ccore.RandN(mat.ref, mean!.ref, std!.ref));
  return mat;
}