Perform morphological opening.
The matrix img must be numeric while SE can be a:
The opening corresponds to an erosion followed by a dilation of img, using the same SE, i.e., it is equivalent to:
imdilate (imerode (img, se), se);
See also: imdilate, imerode, imclose.
Package: image