What does this MATLAB function do?

Posted by user198729 on Stack Overflow See other posts from Stack Overflow or by user198729
Published on 2010-04-18T12:32:47Z Indexed on 2010/04/18 12:33 UTC
Read the original article Hit count: 213

Filed under:
|
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?

© Stack Overflow or respective owner

Related posts about matlab

Related posts about image-process