codes_2Dskeleton is for generating shape skeletons
no vote
The aim of the skeletonization is to extract a region-based shape feature representing the general form of an object. Skeletonization (i.e., skeleton extraction from a digital binary picture) provides region-based shape features. It is a common preprocessing operation in raster-to-vector conversion or in pattern recognition. There are three major skeletonization techniques: detecting ridges in distance map of the boundary points, calculating the Voronoi diagram generated by the boundary points, and the layer by layer erosion called thinning. In digital spaces, only an approximation to the "true skeleton" can be extracted. There are two requirements to be complied with: topological (to retain the topology of the original object), geometrical (forcing the "skeleton" being in the middle of the object and invariance under the most imp