Assembly: AForge.Imaging (in AForge.Imaging.dll) Version: 184.108.40.206 (220.127.116.11)
public class Dilatation : BaseUsingCopyPartialFilter
The filter assigns maximum value of surrounding pixels to each pixel of the result image. Surrounding pixels, which should be processed, are specified by structuring element: 1 - to process the neighbor, -1 - to skip it.
The filter especially useful for binary image processing, where it allows to grow separate objects or join objects.
The filter accepts 8 and 16 bpp grayscale images and 24 and 48 bpp color images for processing.
// create filter Dilatation filter = new Dilatation( ); // apply the filter filter.Apply( image );