View full-text article in PMC Phys Med Biol. Author manuscript; available in PMC: 2016 Mar 7. Published in final edited form as: Phys Med Biol. 2015 Feb 10;60(5):1865–1877. doi: 10.1088/0031-9155/60/5/1865 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information PMC Copyright notice ALGORITHM 1. Block minimization scheme while |Ek – Ek−1| < tol do –Minimization w.r.t. {θ^ink,θ^outk}: {Minimizationw.r.t.θin,θoutusingEMalgorithm[23]:{θ^ink+1,θ^outk+1}←EM({ϕ^k,w^k,I;θ^ink,θ^outk})} –Minimization w.r.t. w: {Estimate transformationTby minimizing‖ϕ^k∘T−ψ0‖22Pushforward to shape dictionary coordinatesϕ^k←ϕ^k∘TMinimizationw.r.t.wusingADMMalgorithm[24]:w^k+1←ADMM(λ2‖ϕ^k−Dw)‖22+γ2‖Cw‖1)Pullback shape prior to current image coordinateψk+1←Dw^k+1∘T−1} –Variational descent w.r.t. ϕ: {ϕ^1k+1←ϕ^inner_iter_numkfori=1:inner_iter_numϕ^i+1k+1=ϕ^ik+1+Δt{−δ∊(ϕ^ik+1)log∑j=1ninw^in,jk+12πσ^in,jk+1exp(−(I(x)−μ^in,jk+1)22(σ^in,jk+1)2)+δ∊(ϕ^ik+1)log∑j=1noutw^out,jk+12πσ^out,jk+1exp(−(I(x)−μ^out,jk+1)22(σ^out,jk+1)2)−βδ∊(ϕ^ik+1)∇⋅(g∇ϕ∣∇ϕ∣)+λ(−ϕ^ik+1+ψk+1)−γ(∑l=1mw^k+1(l)(ϕ^ik+1−ψk+1))}end for} end while