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(() => 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;
}
}