Scilab Function
Last update : 2/11/2005

sperob - Binary Erosion of matrices

Calling Sequence

Qero = sperob(Q,mask)

Parameters

Description

Sperob performs a binary erosion of the image. The erosion is specified by the matrix mask.

sperob and spdilb are fundamental functions for image processing functions (on binary images).

Examples

Q=zeros(8,9);
Q(6,7)=1;
Q(2:5,3:5)=ones(4,3)
mask=[0,1,0;1,1,1;0,1,0]
Qout=sperob(Q,mask)
// End of example sperob

See Also

spdilb ,   randzone ,  

Authors

Dr. Andreas Geissler geisslea@web.de

Used Function

shiftmat