Method Resize
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
Resize(InputArray, OutputArray, Size, double, double, InterpolationFlags)
Resizes an image.
public static void Resize(InputArray src, OutputArray dst, Size dsize, double fx = 0, double fy = 0, InterpolationFlags interpolation = InterpolationFlags.Linear)
Parameters
srcInputArrayinput image.
dstOutputArrayoutput image; it has the size dsize (when it is non-zero) or the size computed from src.size(), fx, and fy; the type of dst is the same as of src.
dsizeSizeoutput image size; if it equals zero, it is computed as: dsize = Size(round(fxsrc.cols), round(fysrc.rows)) Either dsize or both fx and fy must be non-zero.
fxdoublescale factor along the horizontal axis; when it equals 0, it is computed as: (double)dsize.width/src.cols
fydoublescale factor along the vertical axis; when it equals 0, it is computed as: (double)dsize.height/src.rows
interpolationInterpolationFlagsinterpolation method