The objective of s开发者_StackOverflow社区keletonization is to represent a binary image with a minimum set of pixels. The skeleton must account for geometrical properties of the form and retain associative relationships.
My question here is how can I get a skeleton from binary image?
One approach is to use BWMORPH.
%# assume your binary image is called binImg
skeleton = bwmorph(binImg,'skel',inf);
Medial Axis Transform sounds like what you are looking for.
精彩评论