resizeAsync function
Future<Mat>
resizeAsync(
- InputArray src,
- (int, int) dsize, {
- OutputArray? dst,
- double fx = 0,
- double fy = 0,
- 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, {
OutputArray? dst,
double fx = 0,
double fy = 0,
int interpolation = INTER_LINEAR,
}) {
dst ??= Mat.empty();
return cvRunAsync0(
(callback) => cimgproc.cv_resize(src.ref, dst!.ref, dsize.cvd.ref, fx, fy, interpolation, callback),
(c) {
return c.complete(dst);
},
);
}