Dilatation operator from Mathematical Morphology.
Namespace:
AForge.Imaging.FiltersAssembly: AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)
Syntax
C# |
---|
public class Dilatation : BaseUsingCopyPartialFilter |
Remarks
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.
For processing image with 3x3 structuring element, there are different optimizations available, like Dilatation3x3 and BinaryDilatation3x3.
The filter accepts 8 and 16 bpp grayscale images and 24 and 48 bpp color images for processing.
Sample usage:

// create filter Dilatation filter = new Dilatation( ); // apply the filter filter.Apply( image );
Initial image:

Result image:

Inheritance Hierarchy
System..::.Object
AForge.Imaging.Filters..::.BaseUsingCopyPartialFilter
AForge.Imaging.Filters..::.Dilatation
AForge.Imaging.Filters..::.BaseUsingCopyPartialFilter
AForge.Imaging.Filters..::.Dilatation