C# Class SingleImageSuperResolution.Utils

Mostra file Open project: KvanTTT/Single-Image-Super-Resolution

Public Methods

Method Description
ARGBtoY ( Bitmap bitmap ) : byte[]
ARGBtoY ( byte argb ) : byte[]
BitmapToBytesArray ( Bitmap bitmap ) : byte[]
BytesArrayToBitmap ( byte array, int width, int height ) : Bitmap
ChangeSize ( Bitmap bitmap, int newWidth, int newHeight, InterpolationMode interpolationMode = InterpolationMode.High ) : Bitmap
GaussKernel2D ( int size, double sigma ) : double[]
GaussianBlur ( Bitmap bitmap, int size, double sigma ) : Bitmap
GaussianBlur ( byte grayscaled, int width, int height, int size, double sigma ) : byte[]

Method Details

ARGBtoY() public static method

public static ARGBtoY ( Bitmap bitmap ) : byte[]
bitmap System.Drawing.Bitmap
return byte[]

ARGBtoY() public static method

public static ARGBtoY ( byte argb ) : byte[]
argb byte
return byte[]

BitmapToBytesArray() public static method

public static BitmapToBytesArray ( Bitmap bitmap ) : byte[]
bitmap System.Drawing.Bitmap
return byte[]

BytesArrayToBitmap() public static method

public static BytesArrayToBitmap ( byte array, int width, int height ) : Bitmap
array byte
width int
height int
return System.Drawing.Bitmap

ChangeSize() public static method

public static ChangeSize ( Bitmap bitmap, int newWidth, int newHeight, InterpolationMode interpolationMode = InterpolationMode.High ) : Bitmap
bitmap System.Drawing.Bitmap
newWidth int
newHeight int
interpolationMode InterpolationMode
return System.Drawing.Bitmap

GaussKernel2D() public static method

public static GaussKernel2D ( int size, double sigma ) : double[]
size int
sigma double
return double[]

GaussianBlur() public static method

public static GaussianBlur ( Bitmap bitmap, int size, double sigma ) : Bitmap
bitmap System.Drawing.Bitmap
size int
sigma double
return System.Drawing.Bitmap

GaussianBlur() public static method

public static GaussianBlur ( byte grayscaled, int width, int height, int size, double sigma ) : byte[]
grayscaled byte
width int
height int
size int
sigma double
return byte[]