Table of Contents

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

src InputArray

input image.

dst OutputArray

output 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.

dsize Size

output 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.

fx double

scale factor along the horizontal axis; when it equals 0, it is computed as: (double)dsize.width/src.cols

fy double

scale factor along the vertical axis; when it equals 0, it is computed as: (double)dsize.height/src.rows

interpolation InterpolationFlags

interpolation method