repeatAsync function

Future<Mat> repeatAsync(
  1. InputArray src,
  2. int ny,
  3. int nx, {
  4. OutputArray? dst,
})

Repeat fills the output array with repeated copies of the input array.

For further details, please see: https://docs.opencv.org/master/d2/de8/group__core__array.html#ga496c3860f3ac44c40b48811333cfda2d

Implementation

Future<Mat> repeatAsync(InputArray src, int ny, int nx, {OutputArray? dst}) async {
  dst ??= Mat.empty();
  return cvRunAsync0(
    (callback) => ccore.cv_repeat(src.ref, ny, nx, dst!.ref, callback),
    (c) {
      return c.complete(dst);
    },
  );
}