Bottop-hat 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

C#
public class BottomHat : BaseInPlaceFilter

Remarks

Bottom-hat morphological operator subtracts input image from the result of morphological closing on the the input image.

Applied to binary image, the filter allows to get all object parts, which were added by closing filter, but were not removed after that due to formed connections/fillings.

The filter accepts 8 and 16 bpp grayscale images and 24 and 48 bpp color images for processing.

Sample usage:

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

Initial image:

Result image:

Inheritance Hierarchy

System..::.Object
  AForge.Imaging.Filters..::.BaseInPlaceFilter
    AForge.Imaging.Filters..::.BottomHat

See Also