resizeAsync function

Future<Mat> resizeAsync(
  1. InputArray src,
  2. (int, int) dsize, {
  3. double fx = 0,
  4. double fy = 0,
  5. int interpolation = INTER_LINEAR,
})

Resize resizes an image. It resizes the image src down to or up to the specified size, storing the result in dst. Note that src and dst may be the same image. If you wish to scale by factor, an empty sz may be passed and non-zero fx and fy. Likewise, if you wish to scale to an explicit size, a non-empty sz may be passed with zero for both fx and fy.

For further details, please see: https:///docs.opencv.org/master/da/d54/group__imgproc__transform.html#ga47a974309e9102f5f08231edc7e7529d

Implementation

Future<Mat> resizeAsync(
  InputArray src,
  (int, int) dsize, {
  double fx = 0,
  double fy = 0,
  int interpolation = INTER_LINEAR,
}) async =>
    cvRunAsync(
      (callback) => cffi.Resize_Async(src.ref, dsize.cvd.ref, fx, fy, interpolation, callback),
      matCompleter,
    );