Skip to main content
. Author manuscript; available in PMC: 2014 Jul 27.
Published in final edited form as: Proc SPIE Int Soc Opt Eng. 2014 Feb 15;9034:90342D. doi: 10.1117/12.2043959

Algorithm 2.

Smoothing voxel B along one dimension

Require: ωA, ωB, ωC (Orientations), WAB, WBC (Weights), cutoff (Cutoff Threshold)
for all ωiBωB do
   αj=wjiABjwjiAB
   βj=wjiBCjwijBC
   αj=0ifωjA,ωiB<cutoff
   βj=0ifωjC,ωiB<cutoff
  γ = [α1, …, αN, 2, β1, …, βN]
   ξ=[ωA,ωiB,ωC]
   ωnewiB=weightedAverage(ξ,γ,ωiB)
end for
return newωB