Input: |
|
p0: the input spatial position for estimation |
|
M0: the input reference model |
|
: the local neighborhood of C position/model pairs |
|
Ni: the number of fibers in the i-th local model |
|
fij: the volume fraction of the j-th fiber of the i-th local model |
|
vij: the fiber orientation of the j-th fiber of the i-th local model |
|
hpos: the spatial positional bandwidth |
|
hdir : the bilateral data-adaptive bandwidth |
|
λ: the model complexity regularization parameter |
|
Kmax: the maximum number of fiber compartments |
|
Output: |
|
K̂: estimated number of fiber compartments |
|
: estimated model |
|
/* Compute sum-normalized model weights
|
*/ |
Ksum ← 0 |
|
for
i=1
to
C
do
|
|
|
|
|
|
|
Ksum ← Ksum + ki
|
|
for
i=1
to
C
do
|
|
|
ki ← ki/Ksum
|
|
/* Compute fiber weights
|
*/ |
L ← 0, Fsum ← 0 |
|
for
i=1
to
C
do
|
|
|
for
j=1
to
Ni
do
|
|
|
wL ← ki * fij, vL ← vij
|
|
L ← L + 1, Fsum ← Fsum + fij
|
|
/* Optimize by clustering with
Algo. 1
|
*/ |
|
|
for
k=1
to
K̂
do
|
|
|
f̂k ← ŵk * Fsum
|
|
return |
|