Interactive Graph Cuts
for Optimal Boundary & Region Segmentation of Objects in N-D Images Yuri Y. Boykov and Marie-Pierre Jolly
1
Interactive Graph Cuts for Optimal Boundary & Region - - PowerPoint PPT Presentation
Interactive Graph Cuts for Optimal Boundary & Region Segmentation of Objects in N-D Images Yuri Y. Boykov and Marie-Pierre Jolly 1 From [3] 2 Vision problems as image labeling depth (stereo) object index (segmention) original
for Optimal Boundary & Region Segmentation of Objects in N-D Images Yuri Y. Boykov and Marie-Pierre Jolly
1
From [3]
2
3
Labeling of pixels Penalty for pixel labeling Interaction between neighboring pixels. Smoothing term.
E(L) =
Dp(Lp) +
Vp,q(Lp, Lq)
Dp : Lp → L : P → Lp
Vp,q : P x P →
4
S terminal S terminal T terminal T terminal
5
6
L = (L1, . . . , Lp, . . . , L|P |)
P = set of pixels p
N = set of unordered pairs (p, q) of neighbors in P
Binary vector representing a binary segmentation
G = (V, E) graph with nodes, V, and edges, E B = set of user defined background pixels O = set of user defined object pixels
7
Labeling of pixels Penalty for pixel labeling Interaction between neighboring pixels. Smoothing term.
E(L) =
Dp(Lp) +
Vp,q(Lp, Lq)
Dp : Lp → L : P → Lp
Vp,q : P x P →
8
E(L) = λ ·
Rp(Lp) +
B(p, q) · δ(Lp, Lq) Dp(Lp) becomes regional term Rp(Lp) Vp,q becomes boundary term B(p, q) · δ(Lp, Lq)
9
E(L) = λ ·
Rp(Lp) +
B(p, q) · δ(Lp, Lq)
Penalize pixel label based on local properties Negative log-likelihood of intensity
Rp(obj) = − ln Pr(Ip|O) Rp(bkq) = − ln Pr(Ip|B)
10
E(L) = λ ·
Rp(Lp) +
B(p, q) · δ(Lp, Lq) B(p, q) ∝ exp(−(Ip − Iq)2 2σ2 ) · 1 dist(p, q)
r p s q
11
B(p, q) ∝ exp(−(Ip − Iq)2 2σ2 ) · 1 dist(p, q)
r p s q
E(L) = λ ·
Rp(Lp) +
B(p, q) · |Lp − Lq|
12
Object Background
c(p, q) = B(p, q) if (p, q) ∈ N B(p, q)
T S
B(p, q) ∝ exp(−(Ip − Iq)2 2σ2 ) · 1 dist(p, q)
13
Object Background
If p ∈ O then c(p, q) = K K K = 1 + max
p∈P
B(p, q)
T S
14
Object Background
If p / ∈ O ∪ B then c(p, q) = λ · Rp(bkg)
T S
15
Object Background
T S
If p ∈ B then c(p, q) = 0
16
segmentation
satisfies user defined constraints minimizes the energy function
17
18
From [3]
19
minimized via graph cuts? IEEE Trans. Pattern Analysis and Machine Intelligence, vol. 26, no. 2, pp. 147-159, February 2004.
cut/max-flow algoritms for energy minimization in computer vision. IEEE
1124-1137, September 2004.
Methods in Computer Vision. ECCV 2004
20