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 Blur : Convolution

Remarks

The filter performs convolution filter using the blur kernel:

Copy 
1  2  3  2  1
2  4  5  4  2
3  5  6  5  3
2  4  5  4  2
1  2  3  2  1

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
Blur filter = new Blur( );
// apply the filter
filter.ApplyInPlace( image );

Initial image:

Result image:

Inheritance Hierarchy

See Also