![]()
Convolution filtersAForge.NET framework provides convolution filter and a set of derived filters, which allow Below is the list of implemented convolution filters and the result of their application to the below source Source image Convolution
// define emboss kernel
int[,] kernel = {
{ -2, -1, 0 },
{ -1, 1, 1 },
{ 0, 1, 2 } };
// create filter
Convolution filter = new Convolution( );
// apply the filter
filter.ApplyInPlace( image );
Blur Sharpen Edges Gaussian Blur // create filter with kernel size equal to 11 // and Gaussia sigma value equal to 4.0 GaussianBlur filter = new GaussianBlur( 4, 11 ); // apply the filter filter.ApplyInPlace( image );
Gaussian Sharpen // 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 );
|
|||||||