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) |