Assembly: AForge.Imaging (in AForge.Imaging.dll) Version: 22.214.171.124 (126.96.36.199)
public sealed class Mean : Convolution
The filter performs each pixel value's averaging with its 8 neighbors, which is convolution filter using the mean kernel:
1 1 1 1 1 1 1 1 1
For the list of supported pixel formats, see the documentation to Convolution filter.
With the above kernel the convolution filter is just calculates each pixel's value in result image as average of 9 corresponding pixels in the source image.
// create filter Mean filter = new Mean( ); // apply the filter filter.ApplyInPlace( image );