Morphological skeletonization
out = ithin(im) is the binary skeleton of the binary image im. Any non-zero region is replaced by a network of single-pixel wide lines.
out = ithin(im,delay) as above but graphically displays each iteration of the skeletonization algorithm with a pause of delay seconds between each iteration.
hitormiss, itriplepoint, iendpoint
Machine Vision Toolbox for MATLAB © 1990-2014 Peter Corke.