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§
- TopHat
Kind - Top-hat polarity.
Functions§
- morphological_
tophat - Morphological top-hat into caller buffer (
width * heightbytes).