Skip to main content
. Author manuscript; available in PMC: 2019 Feb 15.
Published in final edited form as: Neuroimage. 2017 Dec 2;167:466–477. doi: 10.1016/j.neuroimage.2017.11.052

Algorithm 1.

Fiber Bundle Parcellation.

  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