Generating the Centerline question

Hello
Generating the Centerline questiom called also Skeletonization or Vectorization or Morphological thinning.
I see an other thread before about the same subject but i search for a final solution,
there are many codes and tools available but i don’t know how to use them directly with Grasshopper

https://scikit-image.org/docs/stable/auto_examples/edges/plot_skeleton.html

http://opencv-users.1802565.n2.nabble.com/Morphological-thinning-operation-from-Z-Guo-and-R-W-Hall-quot-Parallel-Thinn-td4225544.html

I used voronoi method , and tried another idea but it need flipping in the triangulation

skeleton.gh (25 KB)