Resizes an image.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntaxpublic static void Resize(
InputArray src,
OutputArray dst,
Size dsize,
double fx = 0,
double fy = 0,
InterpolationFlags interpolation = InterpolationFlags.Linear
)
Public Shared Sub Resize (
src As InputArray,
dst As OutputArray,
dsize As Size,
Optional fx As Double = 0,
Optional fy As Double = 0,
Optional interpolation As InterpolationFlags = InterpolationFlags.Linear
)
public:
static void Resize(
InputArray^ src,
OutputArray^ dst,
Size dsize,
double fx = 0,
double fy = 0,
InterpolationFlags interpolation = InterpolationFlags::Linear
)
static member Resize :
src : InputArray *
dst : OutputArray *
dsize : Size *
?fx : float *
?fy : float *
?interpolation : InterpolationFlags
(* Defaults:
let _fx = defaultArg fx 0
let _fy = defaultArg fy 0
let _interpolation = defaultArg interpolation InterpolationFlags.Linear
*)
-> unit
OpenCvSharp.Cv2.Resize = function(src, dst, dsize, fx, fy, interpolation);
Parameters
- src
- Type: OpenCvSharpInputArray
input image. - dst
- Type: OpenCvSharpOutputArray
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
- Type: OpenCvSharpSize
output image size; if it equals zero, it is computed as:
dsize = Size(round(fx*src.cols), round(fy*src.rows))
Either dsize or both fx and fy must be non-zero. - fx (Optional)
- Type: SystemDouble
scale factor along the horizontal axis; when it equals 0,
it is computed as: (double)dsize.width/src.cols - fy (Optional)
- Type: SystemDouble
scale factor along the vertical axis; when it equals 0,
it is computed as: (double)dsize.height/src.rows - interpolation (Optional)
- Type: OpenCvSharpInterpolationFlags
interpolation method
See Also