/// <summary> /// Resize the CudaImage. The calling GpuMat be GpuMat%lt;Byte>. If stream is specified, it has to be either 1 or 4 channels. /// </summary> /// <param name="size">The new size</param> /// <param name="interpolationType">The interpolation type</param> /// <param name="stream">Use a Stream to call the function asynchronously (non-blocking) or null to call the function synchronously (blocking).</param> /// <returns>A CudaImage of the new size</returns> public CudaImage <TColor, TDepth> Resize(Size size, CvEnum.Inter interpolationType, Stream stream = null) { CudaImage <TColor, TDepth> result = new CudaImage <TColor, TDepth>(size); CudaInvoke.Resize(this, result, size, 0, 0, interpolationType, stream); return(result); }