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