Skip to main content
. Author manuscript; available in PMC: 2016 Jan 22.
Published in final edited form as: SIAM J Imaging Sci. 2015 Apr 30;8(2):1007–1029. doi: 10.1137/130933423

Algorithm 3.

Overall segmentation algorithm.

1: Match the histogram of I and Ii to I0 for i = 1, …, N − 2
2: Compute the distribution l(x) of the set {Ii(x) : Ji(x) = 1 ∀x ∈ ℝ3; i = 0, …, N − 1}
3: Compute the distribution lB(x) of the set {Ii(x) : x in local background ∀x ∈ ℝ3; i = 0, …, N − 1}
4: Compute target prior P(x) using Algorithm 2
5: Compute background prior PB(x) = 1 − P(x)
6: Compute segmentation using (2.19)