skeletor
skeletor copied to clipboard
how can I use this to extract a skeleton from 3D image
The short answer: You can't.
The long answer: This library requires you to already have a mesh with vertices and faces. Not sure if by "3D image" you mean some segmentation? If so, you could use e.g. marching cubes to generate a mesh from that. The other problem is that I haven't implemented the skeletonization yet, just the mesh contraction. There are good skeletonizers out there though - check out Teasar for example.
Edit:
skeletor
now has working skeletonization functionality.
I've created a short script to compute the skeleton of a stl file using skeletor https://github.com/TzabarDolev/Mesh_skeltonization/blob/main/skeletor_test.py