sperob - Binary Erosion of matrices
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).
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