C# Класс SingleImageSuperResolution.Utils

Показать файл Открыть проект

Открытые методы

Метод Описание
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[]

Описание методов

ARGBtoY() публичный статический Метод

public static ARGBtoY ( Bitmap bitmap ) : byte[]
bitmap System.Drawing.Bitmap
Результат byte[]

ARGBtoY() публичный статический Метод

public static ARGBtoY ( byte argb ) : byte[]
argb byte
Результат byte[]

BitmapToBytesArray() публичный статический Метод

public static BitmapToBytesArray ( Bitmap bitmap ) : byte[]
bitmap System.Drawing.Bitmap
Результат byte[]

BytesArrayToBitmap() публичный статический Метод

public static BytesArrayToBitmap ( byte array, int width, int height ) : Bitmap
array byte
width int
height int
Результат System.Drawing.Bitmap

ChangeSize() публичный статический Метод

public static ChangeSize ( Bitmap bitmap, int newWidth, int newHeight, InterpolationMode interpolationMode = InterpolationMode.High ) : Bitmap
bitmap System.Drawing.Bitmap
newWidth int
newHeight int
interpolationMode InterpolationMode
Результат System.Drawing.Bitmap

GaussKernel2D() публичный статический Метод

public static GaussKernel2D ( int size, double sigma ) : double[]
size int
sigma double
Результат double[]

GaussianBlur() публичный статический Метод

public static GaussianBlur ( Bitmap bitmap, int size, double sigma ) : Bitmap
bitmap System.Drawing.Bitmap
size int
sigma double
Результат System.Drawing.Bitmap

GaussianBlur() публичный статический Метод

public static GaussianBlur ( byte grayscaled, int width, int height, int size, double sigma ) : byte[]
grayscaled byte
width int
height int
size int
sigma double
Результат byte[]