The filter performs convolution filter using the sharpen kernel:
0 -1 0 -1 5 -1 0 -1 0
For the list of supported pixel formats, see the documentation to Convolution filter.
Sample usage:
// create filter Sharpen filter = new Sharpen( ); // apply the filter filter.ApplyInPlace( image );
Initial image:
Result image:
Initializes a new instance of the Sharpen class.