fill method

Mat fill(
  1. Mat mat,
  2. int distType,
  3. double a,
  4. double b, {
  5. bool saturateRange = false,
  6. bool inplace = false,
})

Implementation

Mat fill(
  Mat mat,
  int distType,
  double a,
  double b, {
  bool saturateRange = false,
  bool inplace = false,
}) {
  if (inplace) {
    cvRun(() => ccore.cv_RNG_fill(ref, mat.ref, distType, a, b, saturateRange, ffi.nullptr));
    return mat;
  } else {
    final m = mat.clone();
    cvRun(() => ccore.cv_RNG_fill(ref, m.ref, distType, a, b, saturateRange, ffi.nullptr));
    return m;
  }
}