Gaussian 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 class GaussianSharpen : 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 sharpening kernel. First of all the integer kernel is calculated from Kernel2D(Int32) by dividing all elements by the element with the smallest value. Then the integer kernel is converted to sharpen kernel by negating all kernel's elements (multiplying with -1), but the central kernel's element is calculated as 2 * sum - centralElement, where sum is the sum off elements in the integer kernel before negating.

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

Sample usage:

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

Initial image:

Result image:

Inheritance Hierarchy

See Also