You are here : matlabImage Processingimclose

imclose() - Image Processing

IM2 = imclose(IM,SE) performs morphological
closing on the grayscale or binary image IM, returning
the closed image, IM2. The structuring element, SE,
must be a single structuring element object, as opposed to an array
of objects. The morphological close operation is a dilation followed
by an erosion, using the same structuring element for both operations. IM2 = imclose(IM,NHOOD) performs closing
with the structuring element strel(NHOOD), where NHOOD is
an array of 0's and 1's that specifies the structuring element neighborhood.gpuarrayIM2 = imclose(gpuarraryIM,___) performs
the operation on a graphics processing unit (GPU), where gpuarrayIM is
a gpuArray containing the grayscale or binary image. gpuarrayIM2 is
a gpuArray of the same class as the input image.
This syntax requires the Parallel Computing Toolbox™.Code Generation support:
Yes.MATLAB Function Block support:


IM2 = imclose(IM,SE)IM2 = imclose(IM,NHOOD)gpuarrayIM2 = imclose(gpuarraryIM,___)


originalBW = imread('circles.png');

Output / Return Value


Alternatives / See Also