Assembly: AForge.Imaging (in AForge.Imaging.dll) Version: 220.127.116.11 (18.104.22.168)
public class TopHat : BaseInPlaceFilter
Applied to binary image, the filter allows to get all those object (their parts) which were removed by opening filter, but never restored.
The filter accepts 8 and 16 bpp grayscale images and 24 and 48 bpp color images for processing.
// create filter TopHat filter = new TopHat( ); // apply the filter filter.Apply( image );