Skip to main content
. Author manuscript; available in PMC: 2017 Jun 1.
Published in final edited form as: Pattern Recognit Lett. 2015 Apr 15;76:32–40. doi: 10.1016/j.patrec.2015.04.002
Begin Algorithm: compute-curve-skeleton
Input: the original object volume O
Output: curve skeleton S
Initialize a root voxel o as the current skeleton S and the current marked object volume Omarked
While new branches are found
Detect disconnected sub-trees T1, T2, T3, ··· in the unmarked object volume OOmarked
For each sub-tree Ti
  Find the CMB voxel viTi that is farthest from Omarked
  If the potential branch from vi to Omarked is significant
   Add a new skeletal branch Bi joining vi to the current skeleton S using a minimum cost path
   Augment S = SBi
   Compute local scale-adaptive dilatation Di along Bi
   Augment Omarked = OmarkedDi
End Algorithm: compute-curve-skeleton