/// <summary> /// Resize the GpuImage. 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 GpuImage of the new size</returns> public GpuImage <TColor, TDepth> Resize(Size size, CvEnum.INTER interpolationType, Stream stream) { GpuImage <TColor, TDepth> result = new GpuImage <TColor, TDepth>(size); GpuInvoke.Resize(_ptr, result, interpolationType, stream); return(result); }
/// <summary> /// Resize the OclImage. The calling OclMat be OclMat%lt;Byte>. /// </summary> /// <param name="size">The new size</param> /// <param name="interpolationType">The interpolation type</param> /// <returns>An OclImage of the new size</returns> public OclImage <TColor, TDepth> Resize(Size size, CvEnum.INTER interpolationType) { OclImage <TColor, TDepth> result = new OclImage <TColor, TDepth>(size); OclInvoke.Resize(_ptr, result, 0, 0, interpolationType); return(result); }
public static extern void WarpPerspective(IntPtr src, IntPtr dst, IntPtr M, CvEnum.INTER flags);
public static extern void WarpAffine(IntPtr src, IntPtr dst, IntPtr M, CvEnum.INTER flags);
public static extern void Resize(IntPtr src, IntPtr dst, CvEnum.INTER interpolation);