Mat.randu constructor

Mat.randu(
  1. int rows,
  2. int cols,
  3. MatType type, {
  4. Scalar? low,
  5. Scalar? high,
})

Implementation

factory Mat.randu(int rows, int cols, MatType type, {Scalar? low, Scalar? high}) {
  low ??= Scalar.all(0);
  high ??= Scalar.all(256);
  final mat = Mat.create(rows: rows, cols: cols, type: type);
  cvRun(() => ccore.RandU(mat.ref, low!.ref, high!.ref));
  return mat;
}