SLIDE 14 14
Labels Set: { j= 1,…,K } Edata:
Penalize disagreement between pixel and the GMM
Esmooth:
Penalize disagreement between two pixels, unless it’s a
natural edge in the image
dist(p,q) = normalized color-distance between p,q
The Energy Function
,
( ) ( ) 1
p
p p p p p f p Pixels
D f D f w
∈
= −
∑
, , ,
( , ) ( , ) 1 ( , )
p q p q p q p q p q p q neighbors
f f V f f V f f dist p q
= ⎧ = ⎨ − ⎩
∑
( ) ( ) ( )
data smooth
E f E f E f λ = + Solving Min(E) is NP-hard It is possible to approximate the solution using
iterative methods
Graph-Cuts based methods approximate the
global solution (up to constant factor) in polynomial time
Minimizing the Energy
When using iterative methods, each iteration some of the
pixels change their labeling
Given a label α, a move from partition P (labeling f) to a
new partition P’ (labeling f’) is called an α-expansion move if:
α-expansion moves
Current Labeling One Pixel Move α-β-swap Move α-expansion Move
' '
l l
P P P P l
α α
α ⊂ ∧ ⊂ ∀ ≠
Algorithm for Minimizing E(f)
- 1. Start with an arbitrary labeling
- 2. Set success = 0
- 3. For each label j
3.1 Find f’ = argmin(E(f’)) among f’ within one α-expansion
3.2 If E(f’) < E(f), set f = f’ and success = 1
- 4. If (success = = 1) Goto 2
- 5. Return f
How to find argmin(E(f’)) ?