Image closing
imout = imclose(imin,se)
Input image
Structure element
Output image
The function perform closing operation on the source image using the specified structuring element. This operation is same as obtained by the dilation of an image followed by an erosion. Useful to remove small holes.(it is assumed that the objects are bright on a dark foreground)
S = imread(fullpath(getIPCVpath() + "/images/morpex.png")); se = imcreatese('ellipse',11,11); S2 = imclose(S,se); imshow(S2); | ![]() | ![]() |