Gaussian blur filter.

Namespace:  AForge.Imaging.Filters
Assembly:  AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public sealed class GaussianBlur : Convolution

Remarks

The filter performs convolution filter using the kernel, which is calculate with the help of Kernel2D(Int32) 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.

Note:By default this filter sets ProcessAlpha property to trueTruetruetrue (True in Visual Basic), so the alpha channel of 32 bpp and 64 bpp images is blurred as well.

Sample usage:

CopyC#
// 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 Hierarchy

See Also