View full-text article in PMC Biomed Opt Express. 2019 Jun 26;10(7):3635–3653. doi: 10.1364/BOE.10.003635 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2019 Optical Society of America under the terms of the OSA Open Access Publishing Agreement © 2019 Optical Society of America under the terms of the OSA Open Access Publishing Agreement PMC Copyright notice Algorithm 2. 3D fluorescence imaging reconstruction Require: If,l, rl, f1,l,⋯,fM,l l=1,…,Nimg 1: initialize o1(1,0),⋯,oM(1,0), pc(1,0), h˜f(1,0); normalize If,l 2: for k=1:Kf do 3: Sequential gradient descent 4: for l=1:Nimg do 5: if j<Nimg then 6: for m=1:M do 7: om(k,j)=om(k,j−1)−∇omef,l(o1(k,j−1),⋯,oM(k,j−1), pc(k,j−1),h˜f(k,j−1))/max (|f1,l(k,j−1)|,⋯,|fM,l(k,j−1)|)4 8: end for 9: pc(k,j)=pc(k,j−1)(r)−∇pcef,l(o1(k,j−1),⋯,oM(k,j−1), pc(k,j−1),h˜f(k,j−1))/max (|t1(k,j−1)|,⋯,|tM(k,j−1)|)2 10: h˜f(k,j)=h˜f(k,j−1)−∇h˜fef,l(o1(k,j−1),⋯,oM(k,j−1), pc(k,j−1),h˜f(k,j−1))/max (|F{o(k,j−1)⋅|fl(k,j−1)|2}|) 11: else 12: Do the same update but save to o1(k+1,0),⋯,oM(k+1,0),pc(k+1,0),h˜f(k+1,0) 13: end if 14: end for 15: end for