C# Class 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:

Inheritance: Convolution
Datei anzeigen Open project: accord-net/framework Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
CreateFilter ( ) : void

Method Details

GaussianBlur() public method

Initializes a new instance of the GaussianBlur class.
public GaussianBlur ( ) : Accord.Math
return Accord.Math

GaussianBlur() public method

Initializes a new instance of the GaussianBlur class.
public GaussianBlur ( double sigma ) : Accord.Math
sigma double Gaussian sigma value.
return Accord.Math

GaussianBlur() public method

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.
return Accord.Math