Skip to main content
. Author manuscript; available in PMC: 2014 Apr 12.
Published in final edited form as: IEEE Trans Med Imaging. 2013 Nov 6;33(2):504–517. doi: 10.1109/TMI.2013.2289381

Algorithm 1.

Weighted Combinations in one voxel

1: Input: K multi-fascicle models Inline graphic with weights wk and the number N of fascicles in the output.
2: Output: A multi-fascicle model: j=1Nfjse-bgTDjsg
3: for k in 1 to K do ▷ Construct the complete model Inline graphic
4: for j in 1 to N do
5:   i ← (k − 1)N + j
6:    ficwkfjk
7:    DicDjk
8: end for
9: end for
10: π ← Initialization ( {Dic,fic}jNK) ▷ Initialize clustering
11: while π has not converged do
12: for j in 1 to N do ▷ M-Step
13:    logDjs(i:πi=jficlogDic)/(i:πi=jfic)
14:    fjsi:πi=jfic
15: end for
16: for i in 1 to KN do ▷ E-Step
17:   for j in 1 to N do
18:     Bi(j)Tr(Dic-1Djs)-log|Dic-1Djs|
19:   end for
20:   πi ← arg minl Bi(l)
21: end for
22: end while