C# Class AForge.Imaging.Filters.TopHat

Top-hat operator from Mathematical Morphology.

Top-hat morphological operator subtracts result of morphological opening on the input image from the input image itself.

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.

Sample usage:

// create filter TopHat filter = new TopHat( ); // apply the filter filter.Apply( image );

Initial image:

Result image:

Inheritance: BaseInPlaceFilter
Afficher le fichier Open project: holisticware-admin/MonoVersal.AForgeNET

Méthodes publiques

Méthode Description
TopHat ( ) : System

Initializes a new instance of the TopHat class.

TopHat ( short se ) : System

Initializes a new instance of the TopHat class.

Méthodes protégées

Méthode Description
ProcessFilter ( UnmanagedImage image ) : void

Process the filter on the specified image.

Method Details

ProcessFilter() protected méthode

Process the filter on the specified image.
protected ProcessFilter ( UnmanagedImage image ) : void
image UnmanagedImage Source image data.
Résultat void

TopHat() public méthode

Initializes a new instance of the TopHat class.
public TopHat ( ) : System
Résultat System

TopHat() public méthode

Initializes a new instance of the TopHat class.
public TopHat ( short se ) : System
se short Structuring element to pass to operator.
Résultat System