J = imopen(I, SE)
| Parameter | Description |
|---|---|
| I | Input binary or grayscale image. |
| SE | Structuring element structure or logical neighborhood. |
| Parameter | Description |
|---|---|
| J | Opened image. |
Open an image by erosion followed by dilation.
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');
| Version | Description |
|---|---|
| 2.0.0 | initial version |