Image blackhat
imout = imblackhat(imin,se)
Input image
Structure element
Output image
This operation is the difference between an input image and its opening
S = imread(fullpath(getIPCVpath() + "/images/morpex.png")); se = imcreatese('ellipse',7,7); S2 = imblackhat(S,se); imshow(S2); | ![]() | ![]() |