MATLAB: Two lines skeletonization

skeleton

Hai, I am trying to get a nice skeleton, plotted as one line. After the use of ‘skel’ of the function bwmorph I get a nicely one pixel line. But drawing a line through these pixels with: [B,L] = bwboundaries(image); for k=1:length(B) b = B{k}; plot(b(:,2),b(:,1),'g','LineWidth',1); end
, I get at some points two lines, showed over here http://dl.dropbox.com/u/13969758/skeleton.tif . Has someone a solution to remove these extra formed lines between two skew pixels?

Best Answer

just again skeletonization gives the solution.
Related Question