http://www.emgu.com
Resizes the image.
Namespace:
Emgu.CV.Cuda
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.0.1.3373 (4.0.1.3373)
Syntaxpublic static void Resize(
IInputArray src,
IOutputArray dst,
Size dsize,
double fx = 0,
double fy = 0,
Inter interpolation = Inter.Linear,
Stream stream = null
)
Public Shared Sub Resize (
src As IInputArray,
dst As IOutputArray,
dsize As Size,
Optional fx As Double = 0,
Optional fy As Double = 0,
Optional interpolation As Inter = Inter.Linear,
Optional stream As Stream = Nothing
)
public:
static void Resize(
IInputArray^ src,
IOutputArray^ dst,
Size dsize,
double fx = 0,
double fy = 0,
Inter interpolation = Inter::Linear,
Stream^ stream = nullptr
)
static member Resize :
src : IInputArray *
dst : IOutputArray *
dsize : Size *
?fx : float *
?fy : float *
?interpolation : Inter *
?stream : Stream
(* Defaults:
let _fx = defaultArg fx 0
let _fy = defaultArg fy 0
let _interpolation = defaultArg interpolation Inter.Linear
let _stream = defaultArg stream null
*)
-> unit
Parameters
- src
- Type: Emgu.CVIInputArray
The source image. Has to be GpuMat<Byte>. If stream is used, the GpuMat has to be either single channel or 4 channels. - dst
- Type: Emgu.CVIOutputArray
The destination image. - dsize
- Type: System.DrawingSize
Destination image size. If it is 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. If it is zero, it is computed as: (double)dsize.width/src.cols - fy (Optional)
- Type: SystemDouble
Scale factor along the vertical axis. If it is zero, it is computed as: (double)dsize.height/src.rows - interpolation (Optional)
- Type: Emgu.CV.CvEnumInter
The interpolation type. Supports INTER_NEAREST, INTER_LINEAR. - stream (Optional)
- Type: Emgu.CV.CudaStream
Use a Stream to call the function asynchronously (non-blocking) or null to call the function synchronously (blocking).
See Also