fill method
Fills arrays with random numbers. https://docs.opencv.org/4.x/d1/dd6/classcv_1_1RNG.html#ad26f2b09d9868cf108e84c9814aa682d
Implementation
Mat fill(
Mat mat,
int distType,
double a,
double b, {
bool saturateRange = false,
bool inplace = false,
}) {
if (inplace) {
cvRun(() => cffi.RNG_Fill(ref, mat.ref, distType, a, b, saturateRange));
return mat;
} else {
final m = mat.clone();
cvRun(() => cffi.RNG_Fill(ref, m.ref, distType, a, b, saturateRange));
return m;
}
}