createAsync static method
Implementation
static Future<Mat> createAsync({
int rows = 0,
int cols = 0,
int r = 0,
int g = 0,
int b = 0,
MatType? type,
}) async =>
Mat.fromScalar(
rows,
cols,
type ?? MatType.CV_8UC3,
Scalar(b.toDouble(), g.toDouble(), r.toDouble(), 0),
);