Algorithm 1.
1: | fibers ← ResampleAndFlipFibers(fibers) |
2: | Centerline ← ExtractCenterline(fibers) |
3: | for node in [0, 1, …, K] on Centerline do |
4: | NodeDir ← CalculateDirection(node, Centerline) |
5: | if reference then |
6: | NodeDirRef ← NodeDir |
7: | p ← GetPointsAround(node) |
8: | V ← EigenVectors(p) |
9: | V ← Normalize(V) |
10: | else |
11: | RotMat ← CalcRotationMatrix(NodeDir, NodeDirRef) |
12: | V ← RotateVectors(V, RotMat) |
13: | end if |
14: | SeedPoints ← FindSeeds(V) |
15: | end for |