resize function

Mat resize(
  1. InputArray src,
  2. (int, int) dsize, {
  3. OutputArray? dst,
  4. double fx = 0,
  5. double fy = 0,
  6. 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

Mat resize(
  InputArray src,
  (int, int) dsize, {
  OutputArray? dst,
  double fx = 0,
  double fy = 0,
  int interpolation = INTER_LINEAR,
}) {
  dst ??= Mat.empty();
  cvRun(() => cimgproc.Resize(src.ref, dst!.ref, dsize.cvd.ref, fx, fy, interpolation));
  return dst;
}