Image-Py / sknw

build net work from skeleton image (2D-3D)
BSD 3-Clause "New" or "Revised" License
222 stars 47 forks source link

How to make the path smooth? #5

Open qiang-zhang-neu opened 4 years ago

qiang-zhang-neu commented 4 years ago

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!

yxdragon commented 4 years ago

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?
alexvtol commented 4 years ago

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.