Skip to main content

Module morphological_tophat

Module morphological_tophat 

Source
Expand description

White / black morphological top-hat via existing 3×3 erode / dilate.

White top-hat (bright structure on dark): I − open(I) = I − dilate(erode(I)). Black top-hat (dark structure on bright): close(I) − I = erode(dilate(I)) − I. RMP-style structure enhancement for nuclei / stain peaks.

Enums§

TopHatKind
Top-hat polarity.

Functions§

morphological_tophat
Morphological top-hat into caller buffer (width * height bytes).