What does this MATLAB function do?
- by user198729
function sk=skeleton_finding(x)
% calculate distance transform
dt=bwdist(~x,'cityblock');
% find the local maximum
n=[0 1;-1 0;0 -1;1 0];
sk=dt>0;
for i=1:4
sk=sk&(dt>=circshift(dt,n(i,:)));
end
Can someone illustrate?