SIP Toolbox

erode - Morphological erosion of binary images

Calling Sequence

E = erode(Img, [SE, center])

Parameters

Description

Function erode performs morphological erosion of a binary image Img using SE as the structuring element.

Examples

       initial_dir = PWD;
       chdir (SIPDIR + 'images');

       Img = gray_imread('disks2.bmp');
       imshow(Img,2);
       Img = 1-Img;
       SE = ones(10,10);
       e = erode(Img, SE);
       xbasc()
       imshow(e ,2);

       chdir(initial_dir);
   

Authors

Ricardo Fabbri <ricardofabbri (AT) users DOT sf DOT net>

Remarks

The algorithm is fully functional, but there exists many better ones. The present implementation will certainly change, but the interface shall remain unaltered.

Availability

The latest version of the Scilab Image Processing toolbox can be found at

http://siptoolbox.sourceforge.net

See Also

dilate,  edilate,  bwdist,