Bottom-hat filtering
performs morphological bottom-hat filtering on the grayscale or binary image
J
= imbothat(I
,SE
)I
, returning the filtered image, J
.
Bottom-hat filtering computes the morphological closing of the image (using
imclose
) and then subtracts the
original image from the result. SE
is a single structuring
element object returned by the strel
or offsetstrel
functions.