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

Remarks

The filter performs convolution filter using the sharpen kernel:

Copy 
 0  -1   0
-1   5  -1
 0  -1   0

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

Sample usage:

CopyC#
// create filter
Sharpen filter = new Sharpen( );
// apply the filter
filter.ApplyInPlace( image );

Initial image:

Result image:

Inheritance Hierarchy

See Also