|
|
| Algorithm 4: Region merging algorithm. |
|
|
| δseg ← Modeling(boundary(Ri,Rj)); |
| ϱ̅Ri,Rj ← abs(Mean(Ri)-Mean(Rj)); |
| ξRi,Rj ← Contrast(boundary(Ri,Rj)); |
| if δseg ≥ 5 OR (ξRi,Rj ≤ ϱ̅Ri,Rj AND 3 ≤ δseg ≤ 4) then |
| the region with a minimum label absorbs the region with the maximum label, i.e. |
| label =min(label(Ri), label(Rj)) |
| if label==label(Ri) then |
| ∀ p ∈ Rj |
| p=label |
| else |
| ∀ p ∈ Ri |
| p=label |
|
|