createAsync static method

Future<Mat> createAsync({
  1. int rows = 0,
  2. int cols = 0,
  3. int r = 0,
  4. int g = 0,
  5. int b = 0,
  6. MatType? type,
})

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),
);