Exemplo n.º 1
0
        private static Bitmap ResizeBitmapWithCuda(Image <Bgr, Byte> sourceBM, ref Size newSize)
        {
            // Initialize Emgu Image object
            CudaImage <Bgr, Byte> img = new CudaImage <Bgr, Byte>(sourceBM);

            // Resize using liniear interpolation
            img.Resize(newSize, Inter.Linear);

            // Return .NET Bitmap object
            return(img.Bitmap);
        }