ERODE(1)

NAME
erode - morphological erosion of binary images

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

PARAMETERS

Img M x N Binary image to be eroded. (0 for background, 1 for object)

E   M x N Binary eroded image.

SE  Arbitrary structuring element represented as a binary array. Defaults to:
                [0 1 0
                 1 1 1
                 0 1 0]

center
    origin of structuring element. Shold be within image dimensions. Defaults to the center of the SE array.

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

EXAMPLE
initial_dir = PWD;
chdir (SIPDIR + 'examples');
Img = imread('disks2.bmp');
imshow(Img,2);
SE = ones(10,10);
e = erode(Img, SE);
xbasc()
imshow(e ,2);
chdir(initial_dir);

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

REFERENCE
"Morphological Algorithms", Luc Vincent, in "Mathematical Morphology in Image Processing", Ed. Marcel Dekker, 1993.

AUTHORS
Ricardo Fabbri <rfabbri@if.sc.usp.br>

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

    http://cyvision.if.sc.usp.br/~rfabbri/sip/

SEE ALSO
dilate