Opening operator from Mathematical Morphology.

Namespace:  AForge.Imaging.Filters
Assembly:  AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

Remarks

Opening morphology operator equals to erosion followed by dilatation.

Applied to binary image, the filter may be used for removing small object keeping big objects unchanged. Since erosion is used first, it removes all small objects. Then dilatation restores big objects, which were not removed by erosion.

See documentation to Erosion and Dilatation classes for more information and list of supported pixel formats.

Sample usage:

CopyC#
// create filter
Opening filter = new Opening( );
// apply the filter
filter.Apply( image );

Initial image:

Result image:

Inheritance Hierarchy

System..::.Object
  AForge.Imaging.Filters..::.Opening

See Also