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.RNG_Fill(ref, mat.ref, distType, a, b, saturateRange));
    return mat;
  } else {
    final m = mat.clone();
    cvRun(() => ccore.RNG_Fill(ref, m.ref, distType, a, b, saturateRange));
    return m;
  }
}