A=zeros(15);
A(3:7,4:6)=100;
A(3:7,10:12)=100;

A1=dilate(A,ones(1,4))
A2=erode(A1,ones(1,4))







