欢迎关注微信公众号——计算机视觉:
How to get the skeleton of an object using OPENCV
http://pinkjade8848.spaces.live.com/blog/cns!E4159959CD42C507!195.entry
Skeletonization is a process for reducing foreground regions in a binary image to a skeletal remnant that largely preserves the extent and connectivity of the original region while throwing away most of the original foreground pixels. Generally speaking, there are 2 methods to obtain the skeleton.(I am not sure there are other methods.)
thinning
distance transform
OpenCV doesnot provide functions for skeletonization, but provides some functions on distance transform, so I use distance transform to complete this task.
Distance transform is an operator