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.cv_randu(mat.ref, low!.ref, high!.ref, ffi.nullptr));
  return mat;
}