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 => cvRunAsync(
      (callback) => cffi.Mat_NewFromScalar_Async(s.ref, rows, cols, type.value, callback),
      matCompleter,
    );