repeat function

Mat repeat(
  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

Mat repeat(InputArray src, int ny, int nx, {OutputArray? dst}) {
  dst ??= Mat.empty();
  cvRun(() => cffi.Mat_Repeat(src.ref, ny, nx, dst!.ref));
  return dst;
}