Image-Py/sknw

How to make the path smooth?

qiang-zhang-neu opened this issue · 2 comments

sknw is a very good project. However, I wonder whether there is a method to make the path smooth? I need to calculate the resliced image along the skeleton, and the path (graph[s][e]['pts']) is not smooth. How can I make the path more smooth? Thank you very much!

sorry for not watching this project. I think there are 3 meaning about smooth.

  1. get a smooth skeleton when thin the image.
  2. got the graph, and fit the edge
  3. you want to cut small branch
    which one do you want?

Tip for point 2: Felix Repp used a spline to fit the skeleton. The advantage is that the length of a spline is a bit better, as it takes the real estimated curvature.