Skeletonization in image processing

The basis for skeletonizing an object is first a binary image. The edges of the object are evenly removed or eroded from all sides, leaving only one centerline at the end. This method is typically used for analyzing rod or threaded objects, including branches. The resulting skeleton reduces the amount of disk space and preserves the extent and connectivity of an object.