C# Класс Accord.Imaging.Filters.GaussianBlur

Gaussian blur filter.

The filter performs convolution filter using the kernel, which is calculate with the help of AForge.Math.Gaussian.Kernel2D method and then converted to integer kernel by dividing all elements by the element with the smallest value. Using the kernel the convolution filter is known as Gaussian blur.

Using Sigma property it is possible to configure sigma value of Gaussian function.

For the list of supported pixel formats, see the documentation to Convolution filter.

By default this filter sets Convolution.ProcessAlpha property to , so the alpha channel of 32 bpp and 64 bpp images is blurred as well.

Sample usage:

// create filter with kernel size equal to 11 // and Gaussia sigma value equal to 4.0 GaussianBlur filter = new GaussianBlur( 4, 11 ); // apply the filter filter.ApplyInPlace( image );

Initial image:

Result image:

Наследование: Convolution
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GaussianBlur ( ) : Accord.Math

Initializes a new instance of the GaussianBlur class.

GaussianBlur ( double sigma ) : Accord.Math

Initializes a new instance of the GaussianBlur class.

GaussianBlur ( double sigma, int size ) : Accord.Math

Initializes a new instance of the GaussianBlur class.

Приватные методы

Метод Описание
CreateFilter ( ) : void

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

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

Initializes a new instance of the GaussianBlur class.
public GaussianBlur ( ) : Accord.Math
Результат Accord.Math

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

Initializes a new instance of the GaussianBlur class.
public GaussianBlur ( double sigma ) : Accord.Math
sigma double Gaussian sigma value.
Результат Accord.Math

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

Initializes a new instance of the GaussianBlur class.
public GaussianBlur ( double sigma, int size ) : Accord.Math
sigma double Gaussian sigma value.
size int Kernel size.
Результат Accord.Math