fromScalarAsync static method

Future<Mat> fromScalarAsync(
  1. int rows,
  2. int cols,
  3. MatType type,
  4. Scalar s,
)

Implementation

static Future<Mat> fromScalarAsync(int rows, int cols, MatType type, Scalar s) async {
  final p = calloc<cvg.Mat>();
  return cvRunAsync0(
    (callback) => ccore.cv_Mat_create_5(s.ref, rows, cols, type.value, p, callback),
    (c) => c.complete(Mat.fromPointer(p)),
  );
}