Skeletonize

Introduced to me by ChatGPT. This is actually a very useful function to extract centerlines.