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