imopen
Open an image by erosion followed by dilation.
📝Syntax
J = imopen(I, SE)
📥Input Arguments
Parameter Description
I Input binary or grayscale image.
SE Structuring element structure or logical neighborhood.
📤Output Arguments
Parameter Description
J Opened image.
📄Description

Open an image by erosion followed by dilation.

💡Examples
Open a binary image
BW=false(64,64); BW(20:44,20:44)=true; BW(8,8)=true;
J=imopen(BW,strel('disk',3));
figure; subplot(1,2,1); imagesc(BW); g=linspace(0,1,64)'; colormap([g g g]); title('Input');
subplot(1,2,2); imagesc(J); g=linspace(0,1,64)'; colormap([g g g]); title('Opened');
Example illustration
🔗See Also
imcloseimerodeimdilate
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub