onesAsync static method

Future<Mat> onesAsync(
  1. int rows,
  2. int cols,
  3. MatType type
)

Implementation

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