MATLAB: How to do “the black top-hat transformation”

bottom hatfilteringimage analysisimage processingImage Processing Toolboxtop hat transformation

after filtering the image i want to perform a black top hat transformation but could not find any information about it. please, any one help me .

Best Answer

Perhaps you're talking about the "bottom hat filter".
IM2 = imbothat(IM,SE) performs morphological bottom-hat filtering on the grayscale or binary input image, IM, returning the filtered image, IM2. SE is a structuring element returned by the strel function. SE must be a single structuring element object, not an array containing multiple structuring element objects.
Related Question