C# Class SingleImageSuperResolution.Utils

Afficher le fichier Open project: KvanTTT/Single-Image-Super-Resolution

Méthodes publiques

Méthode 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 méthode

public static ARGBtoY ( Bitmap bitmap ) : byte[]
bitmap System.Drawing.Bitmap
Résultat byte[]

ARGBtoY() public static méthode

public static ARGBtoY ( byte argb ) : byte[]
argb byte
Résultat byte[]

BitmapToBytesArray() public static méthode

public static BitmapToBytesArray ( Bitmap bitmap ) : byte[]
bitmap System.Drawing.Bitmap
Résultat byte[]

BytesArrayToBitmap() public static méthode

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

ChangeSize() public static méthode

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

GaussKernel2D() public static méthode

public static GaussKernel2D ( int size, double sigma ) : double[]
size int
sigma double
Résultat double[]

GaussianBlur() public static méthode

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

GaussianBlur() public static méthode

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