J = imclose( I , SE ) performs morphological closing on the grayscale or binary image I , returning the closed image, J . SE is a single structuring element object returned by the strel or offsetstrel functions. ... The imclose function determines the center element of the neighborhood by floor((size(nhood)+1)/2) .