fillAsync method
Fills arrays with random numbers. https://docs.opencv.org/4.x/d1/dd6/classcv_1_1RNG.html#ad26f2b09d9868cf108e84c9814aa682d
Implementation
Future<Mat> fillAsync(
Mat mat,
int distType,
double a,
double b, {
bool saturateRange = false,
bool inplace = false,
}) async {
if (inplace) {
return cvRunAsync0<Mat>(
(callback) => ccore.cv_RNG_fill(ref, mat.ref, distType, a, b, saturateRange, callback),
(c) => c.complete(mat),
);
} else {
final m = mat.clone();
return cvRunAsync0<Mat>(
(callback) => ccore.cv_RNG_fill(ref, m.ref, distType, a, b, saturateRange, callback),
(c) => c.complete(mat),
);
}
}