Graph cut, convex relaxation and continuous max-flow problem - - PowerPoint PPT Presentation

graph cut convex relaxation and continuous max flow
SMART_READER_LITE
LIVE PREVIEW

Graph cut, convex relaxation and continuous max-flow problem - - PowerPoint PPT Presentation

Graph cut, convex relaxation and continuous max-flow problem Xue-Cheng Tai, Christian Michelsen Research AS, Bergen, Norway. and University of Bergen, Norway Collaborations with: Egil Bae, Yuri Boykov, Jun Liu, Jing Yuan and others February


slide-1
SLIDE 1

Graph cut, convex relaxation and continuous max-flow problem

Xue-Cheng Tai, Christian Michelsen Research AS, Bergen, Norway. and University of Bergen, Norway Collaborations with: Egil Bae, Yuri Boykov, Jun Liu, Jing Yuan and others February 7, 2014

slide-2
SLIDE 2

Interface problems

Interface problems exists everywhere in science and technology. For imaging and vision, it is somehow classical:

◮ Mumford-Shal model ◮ GAC model ◮ Chan-Vese model

How to solve these interface problems?

slide-3
SLIDE 3

Max-Flow / Min-Cut

slide-4
SLIDE 4

Max-Flow / Min-Cut

(Vs, Vt) is a cut, wij = cost of cutting edge(i, j) cost of cut c(Vs, Vt) =

i∈Vs,j∈Vt wij

slide-5
SLIDE 5

Max-Flow / Min-Cut

(Vs, Vt) is a cut, wij = cost of cutting edge(i, j) cost of cut c(Vs, Vt) =

i∈Vs,j∈Vt wij

Min-cut: find cut of minimum cost,

slide-6
SLIDE 6

Max-Flow / Min-Cut

(Vs, Vt) is a cut, wij = cost of cutting edge(i, j) cost of cut c(Vs, Vt) =

i∈Vs,j∈Vt wij

Min-cut: find cut of minimum cost, Max-Flow: Find the maximum amount of flow from s to t.

slide-7
SLIDE 7

Max-Flow / Min-Cut

(Vs, Vt) is a cut, wij = cost of cutting edge(i, j) cost of cut c(Vs, Vt) =

i∈Vs,j∈Vt wij

Min-cut: find cut of minimum cost, Max-Flow: Find the maximum amount of flow from s to t. Max-flow = min-cut.

slide-8
SLIDE 8

Max-Flow / Min-Cut

(Vs, Vt) is a cut, wij = cost of cutting edge(i, j) cost of cut c(Vs, Vt) =

i∈Vs,j∈Vt wij

Min-cut: find cut of minimum cost, Max-Flow: Find the maximum amount of flow from s to t. Max-flow = min-cut.

slide-9
SLIDE 9

Graph-cut for image segmentation

A simple 1d signal I(x):

5 10 15 20 25 30 35 40 45 50 −1 −0.5 0.5 1 1.5 2

Graph-cut for images: Boykov-Kolmogorov (2001).

slide-10
SLIDE 10

Graph-cut for image segmentation

The graph: costs: (Chan-Vese) ws,p = |I(p) − c1|2, wt,p = |I(p) − c2|2, c1 = 0, c2 = 1. More generally ws,p = f1(p), wt,p = f2(p), w(p, q) = α or g(p, q) (edge force).

slide-11
SLIDE 11

Relation with k-mean (α = 0)

◮ Given c1 and c2.

slide-12
SLIDE 12

Relation with k-mean (α = 0)

◮ Given c1 and c2. ◮ use cut (threshold) to get Ω1 and Ω2.

slide-13
SLIDE 13

Relation with k-mean (α = 0)

◮ Given c1 and c2. ◮ use cut (threshold) to get Ω1 and Ω2. ◮ update

ci =

  • Ωi I(x)

Area(Ωi), i = 1, 2.

slide-14
SLIDE 14

Relation with k-mean (α = 0)

◮ Given c1 and c2. ◮ use cut (threshold) to get Ω1 and Ω2. ◮ update

ci =

  • Ωi I(x)

Area(Ωi), i = 1, 2.

◮ go to the next iteration.

slide-15
SLIDE 15

Regularized Graph-cut: α = 0

The ”virtual graph and the corresponding label function u(p), p = 1, 2, · · · .

Costs: ws,p = |I(p) − c1|2, wt,p = |I(p) − c2|2, wp,q = α. The corresponding minimization problem is: (N(p) – neighbors of p) min

u(p)∈{1,2}

  • p∈Ω1

|I(p)−c1|2+

  • p∈Ω2

|I(p)−c2|2+α

  • p
  • q∈N(p)

|u(p)−u(q)|.

slide-16
SLIDE 16

Discrete vs continuous

Discrete minimization: min

u(p)∈{0,1}

  • p∈Ω1

|I(p)−c1|2+

  • p∈Ω2

|I(p)−c2|2+α

  • p
  • q∈N(p)

|u(p)−u(q)|. Continuous minimization: min

u(x)∈{0,1}

  • Ω1

|I(x) − c1|2 +

  • Ω2

|I(x) − c2|2 + α

|Du|. min

u(x)∈{0,1}

|I(x) − c1|2(1 − u) +

|I(x) − c2|2u + α

|Du|.

slide-17
SLIDE 17

Higher dimensional problems

A graph for 2D images:

Figure : Graph used for discrete 2D binary labeling

slide-18
SLIDE 18

Two-phase Min-cut – Discretized setting

Figure : Graph used for discrete binary labeling

min

u∈{0,1}

  • p∈P

f1(p)(1−u(p))+f2(p)u(p)+

  • p∈P
  • q∈N k

p

g(p, q)|u(p)−u(q)|. Costs: ws,p = f1(p), wt,p = f2(p), wp,q = g(p, a).

1N k p is the k-neighborhood of p ∈ P.

slide-19
SLIDE 19

Max-Flow / Min-Cut (graph cut)

Figure : Graph used for discrete binary labeling

Max-flow formulation max

ps,pt,q

  • v∈V\{s,t}

ps(v) subject to |q(v, u)| ≤ g(v, u), ∀(v, u) ∈ V × V 0 ≤ ps(v) ≤ f1(v), ∀v ∈ V\{s, t}; 0 ≤ pt(v) ≤ f2(v), ∀v ∈ V\{s, t};

u∈N(v)

˜ q(v, u)

  • − ps(v) + pt(v) = 0,

∀v ∈ V\{s, t}; .

slide-20
SLIDE 20

Continuous Max-Flow and Min-Cut

Figure : (left) vs. Continuous (right)

Continuous max-flow formulation sup

ps,pt,q

ps(x) dx subject to |q(x)| = |q1(x)| + |q2(x)| ≤ g(x), ∀x ∈ Ω; ps(x) ≤ f1(x), ∀x ∈ Ω; pt(x) ≤ f2(x), ∀x ∈ Ω; div q(x) − ps(x) + pt(x) = 0, a.e. x ∈ Ω. Related: (G. Strang (1983)).

slide-21
SLIDE 21

Figure : (left) vs. Continuous (right)

Continuous max-flow formulation (G. Strang (1983)) sup

ps,pt,q

ps(x) dx subject to |q(x)| =

  • q2

1(x) + q2 2(x) ≤ g(x),

∀x ∈ Ω; ps(x) ≤ f1(x), ∀x ∈ Ω; pt(x) ≤ f2(x), ∀x ∈ Ω; div q(x) − ps(x) + pt(x) = 0, a.e. x ∈ Ω.

slide-22
SLIDE 22

Continuous Max-Flow and Min-Cut

Lagrange multiplier u for flow conservation condition div q(x) − ps(x) + pt(x) = 0, a.e. x ∈ Ω. yields primal-dual formulation sup

ps,pt,q inf u

ps + u

  • div q − ps + pt
  • dx

s.t. ps(x) ≤ f1(x) , pt(x) ≤ f2(x) , |q(x)| ≤ g(x) . Optimizing for flows ps, pt, q results in: min

u∈[0,1]

f1(x)(1 − u(x)) + f2(x)u(x) dx + g(x) |∇u(x)| dx . This is exactly the same model as in Chan et at (2006).

Xue-Cheng Tai, Christian Michelsen Research AS, Bergen, Norway. and University of Bergen, Norway Graph cut, convex relaxation and continuous max-flow problem

slide-23
SLIDE 23

Three problems

min

u(x)∈{0,1}

f1(1 − u) + f2u + g(x)|∇u|dx.

slide-24
SLIDE 24

Three problems

min

u(x)∈{0,1}

f1(1 − u) + f2u + g(x)|∇u|dx. min

u(x)∈[0,1]

f1u + f2(1 − u) + g(x)|∇u|dx.

slide-25
SLIDE 25

Three problems

min

u(x)∈{0,1}

f1(1 − u) + f2u + g(x)|∇u|dx. min

u(x)∈[0,1]

f1u + f2(1 − u) + g(x)|∇u|dx. max

ps,pt,q

psdx subject to: ps(x) ≤ f1(x), pt(x) ≤ f2(x), |p(x)| ≤ g(x), divp(x) − ps(x) + pt(x) = 0.

slide-26
SLIDE 26

Three problems

min

u(x)∈{0,1}

f1(1 − u) + f2u + g(x)|∇u|dx. min

u(x)∈[0,1]

f1u + f2(1 − u) + g(x)|∇u|dx. max

ps,pt,q

psdx subject to: ps(x) ≤ f1(x), pt(x) ≤ f2(x), |p(x)| ≤ g(x), divp(x) − ps(x) + pt(x) = 0.

slide-27
SLIDE 27

Three problems

PCLMS or Binary LM (Lie-Lysaker-T.,2005): min

u(x)∈{0,1}

f1(1 − u) + f2u + g(x)|∇u|dx. Convex problem (CEN, (Chan-Esdoglu-Nikolova,2006)) min

u(x)∈[0,1]

f1(1 − u) + f2u + g(x)|∇u|dx. Graph-cut (Boykov-Kolmogorov,2001) max

ps,pt,q

psdx subject to: ps(x) ≤ f1(x), pt(x) ≤ f2(x), |p(x)| ≤ g(x), divp(x) − ps(x) + pt(x) = 0.

slide-28
SLIDE 28

Remarks

The following approached are solving the same problem, but did not know each other:

◮ max-flow and min-cut. ◮ CEN 2006 (convex relaxation approach) ◮ Binary Level set methods and PCLSM (piecewise constant

level set method)

◮ A cut is nothing else, but the Lagrangian multiplier for the

flow conservationn constraint!!!

slide-29
SLIDE 29

Continuous Max-Flow: Remarks

◮ Min-cut problem is minimizing an energy functional. Not

using the decent (gradient) info of the energy.

◮ Continuous max-flow/min-cut is a convex minimization

  • problem. A lot of choices, can use decent (gradient) info.
slide-30
SLIDE 30

Continuous Max-Flow: How to solve it (Only 2-phase case)?

◮ Min-cut algorithms: Augmented Path. Push-relabel, etc, ◮ Split-Bregman, Augmented Lagrangian, Primal-Dual

approaches: we can use these approach to solve the convex min-cut problem.

slide-31
SLIDE 31

Continuous Max-Flow and Min-Cut

Multiplier-Based Maximal-Flow Algorithm Augmented lagrangian functional (Glowinski & Le Tallec, 1989) Lc(ps, pt, q, λ) :=

ps dx+λ

  • div q−ps+pt
  • −c

2| div q−ps+pt|2 dx. minmax subject to: ps(x) ≤ f1(x) , pt(x) ≤ f2(x) , |q(x)| ≤ g(x) ADMM algorithm: For k=1,... until convergence, solve qk+1 := arg max

q∞≤α Lc(pk s , pk t , q, λk)

pk+1

s

:= arg max

ps(x)≤f1(x) Lc(ps, pk t , qk+1, λk)

pk+1

t

:= arg max

pt(x)≤f2(x) Lc(pk+1 s

, pt, qk+1, λk) λk+1 = λk − c (div qk+1 − pk+1

s

+ pk+1

t

)

slide-32
SLIDE 32

Continuous Max-Flow and Min-Cut

Other algorithms for solving relaxed problem: p = ∇u

◮ Bresson et. al.

◮ fix µk and solve ROF problem

λk+1 := arg min

λ

  • α

|∇λ(x)| dx + 1 2θλ(x) − µk(x)2

◮ fix λk+1 and solve

µk+1 := arg min

µ∈[0,1]

1 2θµ(x)−λk+12 +

µ(x)

  • f1(x)−f2(x)
  • dx
  • ◮ Goldstein-Osher: Split Bregman / augmented lagrangian
slide-33
SLIDE 33

Convergence

Figure : Red line: max-flow algorithm. Blue line: Splitting algorithm (Bresson et. al. 2007)

slide-34
SLIDE 34

Multiphase problems

Multpihase problem

slide-35
SLIDE 35

α-expansion and α − β swap

◮ Related to garph cut, α-expansion and α − β swap are mostly

popular.

◮ Approximations are made and upper bounded has been given. ◮ Boykov-Veksler-Zahib (1999).

slide-36
SLIDE 36

Multiphase problems – Approach I

Each point x ∈ Ω is labelled by u(x) = i, i = 1, 2, · · · n.

◮ One label function is enough

for any n phases.

◮ More generall

u(x) = ℓi, i = 1, 2, · · · n.

20 40 60 80 100 10 20 30 40 50 60 70 80 90 100 1 1.5 2 2.5 3

slide-37
SLIDE 37

Multiphase problems – Approach II

Each point x ∈ Ω is labelled by a vector function: u(x) = (u1(2), u2(x), · · · ud(x)).

slide-38
SLIDE 38

Multiphase problems – Approach II

Each point x ∈ Ω is labelled by a vector function: u(x) = (u1(2), u2(x), · · · ud(x)).

◮ Multiphase: Total number of phases n = 2d. (Chan-Vese)

ui(x) ∈ {0, 1}.

slide-39
SLIDE 39

Multiphase problems – Approach II

Each point x ∈ Ω is labelled by a vector function: u(x) = (u1(2), u2(x), · · · ud(x)).

◮ Multiphase: Total number of phases n = 2d. (Chan-Vese)

ui(x) ∈ {0, 1}.

◮ More than binary labels: Total number of phases n = Bd.

ui(x) ∈ {0, 1, 2, · · · B}.

slide-40
SLIDE 40

Multiphase problems – Approach III

We need to identify n characteristic functions ψi(x), i = 1, 2 · · · n: ψi(x) ∈ {0, 1},

n

  • i=1

ψi(x) = 1.

◮ Relation between Approach I

and III: u(x) = i, i = 1, 2, · · · n. u(x) =

n

  • i=1

i ψi(x).

20 40 60 80 100 10 20 30 40 50 60 70 80 90 100 0.2 0.4 0.6 0.8 1 20 40 60 80 100 10 20 30 40 50 60 70 80 90 100 0.2 0.4 0.6 0.8 1 20 40 60 80 100 10 20 30 40 50 60 70 80 90 100 0.2 0.4 0.6 0.8 1

slide-41
SLIDE 41

Multiphase problems

Multpihase problem (I) Special graph cut for Chan-Vese approach

slide-42
SLIDE 42

CV Graph construction (Bae-Tai EMMCVPR2009)

One pixel two pixels

Associate two vertices to each grid point (vp,1 and vp,2)

For any cut (Vs, Vt) ◮ If vp,i ∈ Vs then φi = 1 for i = 1, 2 ◮ If vp,i ∈ Vt then φi = 0 for i = 1, 2

Figure left: graph corresponding to one grid point p

Figure right: graph corresponding to two grid points p and q ◮ Red: Data edges, constituting Edata(φ1, φ2) ◮ Blue: Regularization edges with weight wpq

slide-43
SLIDE 43

Cuts for the CV-graph(Bae-Tai, EMMCVPR2009)

slide-44
SLIDE 44

Minimization by graph cut

Graph construction

◮ Linear system for finding edge weights

       A(p) + B(p) = |c2 − u0

p|β

C(p) + D(p) = |c3 − u0

p|β

A(p) + E(p) + D(p) = |c1 − u0

p|β

B(p) + F(p) + C(p) = |c4 − u0

p|β

such that E(p), F(p) ≥ 0

◮ For each p, E data

p

(φ1

p, φ2 p) interaction between two binary variables.

Linear system has solution iff E data

p

(φ1

p, φ2 p) is submodular.

slide-45
SLIDE 45

Global minimizer – conditions

Graph construction

Restriction E(p), F(p) ≥ 0 implies |c1 − u0

p|β + |c4 − u0 p|β = A(p) + B(p) + C(p) + D(p) + E(p) + F(p)

≥ A(p) + B(p) + C(p) + D(p) = |c2 − u0

p|β + |c3 − u0 p|β.

Therefore it is sufficient that |c2 − I|β + |c3 − I|β ≤ |c1 − I|β + |c4 − I|β, ∀ I ∈ [0, L],

At most three edges are required for a general submodular function of two binary variables (Kolmogorov et. al.)

slide-46
SLIDE 46

Global minimizer – Guarantees

Submodularity condition |c2 − I|β + |c3 − I|β ≤ |c1 − I|β + |c4 − I|β, ∀ I ∈ [0, L],

◮ Proposition 1: Let 0 ≤ c1 < c2 < c3 < c4. Condition is

satisfied for all I ∈ [ c2−c1

2

, c4−c3

2

].

◮ Proposition 2: Let 0 ≤ c1 < c2 < c3 < c4. There exists a

B ∈ N such that condition is satisfied for any β ≥ B.

slide-47
SLIDE 47

CV-graph – negative weights

◮ There are infinite many solution for A, B, C, D, E, F for each

pixel.

◮ We can guarantee A > 0, B > 0, C > 0, D > 0. If one of E, F

is negative, there is a modified graph.

◮ Some arts: sort ci as c1 < c2 < c3 < c4, then choose

f1(p) = |c2 − u0

p|β, f2(p) = |c3 − u0 p|β,

f3(p) = |c1 − u0

p|β, f4(p) = |c4 − u0 p|β.

slide-48
SLIDE 48

Numerical experiments

Experiment 1

Figure : Experiment 3: (a) Input image, (b) ground truth, (c) gradient descent, (d) our approach, (e) alpha expansion, (f) alpha-beta swap.

slide-49
SLIDE 49

Numerical experiments

Experiment 2

Figure : Experiment 3: (a) Input image, (b) ground truth, (c) gradient descent, (d) our approach, (e) alpha expansion, (f) alpha-beta swap.

slide-50
SLIDE 50

Numerical experiments

Experiment 3

◮ L2 data term (β = 2) ◮ Right: Input image. ◮ Left: Output.

slide-51
SLIDE 51

Numerical experiments

Experiment 4, non-submodular minimization

◮ L1 data term (β = 1) ◮ Right: Input image. ◮ Left: Set of pixels where residual criterion was not satisfied

(empty set).

slide-52
SLIDE 52

Numerical experiments

Experiment 4, non-submodular minimization

◮ L1 data term (β = 1) ◮ Right: Input image. ◮ Left: Output (global solution).

slide-53
SLIDE 53

multiphase Chan-Vese model

Exact convex formulation for the Multiphase Chan-Vese model by Continuous max-flow/min-cuts

slide-54
SLIDE 54

Multiphase level set representation of CV model

min

φ1,φ2,{ci}4

i=1

α

|∇H(φ1)| + α

|∇H(φ2)| + E data(φ1, φ2), where E data(φ1, φ2) =

{H(φ1)H(φ2)|c2−u0|β+H(φ1)(1−H(φ2))|c1−u0|β +(1−H(φ1))H(φ2)|c4−u0|β+(1−H(φ1))(1−H(φ2))|c3−u0|β}dx. Ω1 = {x ∈ Ω s.t. φ1(x) > 0, φ2(x) < 0} Ω2 = {x ∈ Ω s.t. φ1(x) > 0, φ2(x) > 0} Ω3 = {x ∈ Ω s.t. φ1(x) < 0, φ2(x) < 0} Ω4 = {x ∈ Ω s.t. φ1(x) < 0, φ2(x) > 0}

slide-55
SLIDE 55

Binary formulation of multiphase Chan-Vese model

Wish to obtain global optimization framework for min

φ1,φ2∈{0,1} α

|∇φ1|dx + α

|∇φ2|dx + E data(φ1, φ2), with E data(φ1, φ2) =

{φ1φ2|c2 − u0|β + φ1(1 − φ2)|c1 − u0|β +(1 − φ1)φ2|c4 − u0|β + (1 − φ1)(1 − φ2)|c3 − u0|β}dx. Phase 1: φ1 = 1, φ2 = 0 Phase 2: φ1 = 1, φ2 = 1 Phase 3: φ1 = 0, φ2 = 0 Phase 4: φ1 = 0, φ2 = 1

slide-56
SLIDE 56

Binary formulation of multiphase Chan-Vese model

Wish to obtain global optimization framework for min

φ1,φ2∈{0,1} α

|∇φ1|dx + α

|∇φ2|dx + E data(φ1, φ2), with E data(φ1, φ2) =

{φ1φ2|c2 − u0|β + φ1(1 − φ2)|c1 − u0|β +(1 − φ1)φ2|c4 − u0|β + (1 − φ1)(1 − φ2)|c3 − u0|β}dx. Phase 1: φ1 = 1, φ2 = 0 Phase 2: φ1 = 1, φ2 = 1 Phase 3: φ1 = 0, φ2 = 0 Phase 4: φ1 = 0, φ2 = 1 Can this non-convex problem be equivalent to a convex model???

slide-57
SLIDE 57

Binary formulation of multiphase Chan-Vese model

Wish to obtain global optimization framework for min

φ1,φ2∈{0,1} α

|∇φ1|dx + α

|∇φ2|dx + E data(φ1, φ2), with E data(φ1, φ2) =

{φ1φ2|c2 − u0|β + φ1(1 − φ2)|c1 − u0|β +(1 − φ1)φ2|c4 − u0|β + (1 − φ1)(1 − φ2)|c3 − u0|β}dx. Phase 1: φ1 = 1, φ2 = 0 Phase 2: φ1 = 1, φ2 = 1 Phase 3: φ1 = 0, φ2 = 0 Phase 4: φ1 = 0, φ2 = 1 Can this non-convex problem be equivalent to a convex model??? YES!!!

slide-58
SLIDE 58

Binary formulation of multiphase Chan-Vese model

Wish to obtain global optimization framework for min

φ1,φ2∈{0,1} α

|∇φ1|dx + α

|∇φ2|dx + E data(φ1, φ2), with E data(φ1, φ2) =

{φ1φ2|c2 − u0|β + φ1(1 − φ2)|c1 − u0|β +(1 − φ1)φ2|c4 − u0|β + (1 − φ1)(1 − φ2)|c3 − u0|β}dx. Phase 1: φ1 = 1, φ2 = 0 Phase 2: φ1 = 1, φ2 = 1 Phase 3: φ1 = 0, φ2 = 0 Phase 4: φ1 = 0, φ2 = 1 Can this non-convex problem be equivalent to a convex model??? YES!!! Why ???

slide-59
SLIDE 59

Continuous max-flow formulation sup

pi

s,pi t,p12,qi; i=1,2

p1

s (x) + p2 s (x) dx

subject to p1

s (x) ≤ C(x), p2 s (x) ≤ D(x), p1 t (x) ≤ A(x), p2 t ≤ B(x), |qi(x)| ≤ α

−F(x) ≤ p12(x) ≤ E(x), div q1(x) − p1

s (x) + p1 t (x) + p12(x) = 0

div q2(x) − p2

s (x) + p2 t (x) − p12(x) = 0

slide-60
SLIDE 60

Lagrange multipliers λ1 and λ2 for flow conservation constraints. Lagrangian functional: max

pi

s,pi t,p12,qi;i=1,2 inf

λ1,λ2

(1 − λ1(x))p1

s (x) + (1 − λ2(x))p2 s (x) dx

+

λ1(x)p1

t (x) + λ2(x)p2 t (x) + (λ1(x) − λ2(x))p12(x) dx

+

λ1(x) div q1(x) +

λ2(x) div q2(x). subject to p1

s (x) ≤ C(x), p2 s (x) ≤ D(x), p1 t (x) ≤ A(x), p2 t ≤ B(x), |qi(x)| ≤ α

−F(x) ≤ p12(x) ≤ E(x),

slide-61
SLIDE 61

Maximizing Lagrangian for all flows results in min

λ1,λ2

(1−λ1(x))C(x)+(1−λ2(x))D(x)+λ1(x)A(x)+λ2(x)B(x) dx +

max{λ1(x)−λ2(x), 0}E(x) dx−min{λ1(x)−λ2(x), 0}F(x) dx + α

|∇λ1(x)| dx + α

|∇λ2(x)| dx. subject to λ1(x), λ2(x) ∈ [0, 1], ∀x ∈ Ω.        A(x) + B(x) = |c2 − u0(x)|β C(x) + D(x) = |c3 − u0(x)|β A(x) + E(x) + D(x) = |c1 − u0(x)|β B(x) + F(x) + C(x) = |c4 − u0(x)|β

◮ Convex, iff E(x), F(x) ≥ 0 ◮ Theorem: Thresholding optimal λ1(x) and λ2(x) will give a

binary global solution to multiphase Chan-Vese model

slide-62
SLIDE 62

Corollaries

◮ No approximation: the global minimizer of the max-flow

(convex CV) is the global minimizer of the original non-convex CV model.

slide-63
SLIDE 63

Corollaries

◮ No approximation: the global minimizer of the max-flow

(convex CV) is the global minimizer of the original non-convex CV model.

◮ The global minimizer is guaranteed binary ! (not true for

many other convex relaxations).

◮ Why ??

slide-64
SLIDE 64

Corollaries

◮ No approximation: the global minimizer of the max-flow

(convex CV) is the global minimizer of the original non-convex CV model.

◮ The global minimizer is guaranteed binary ! (not true for

many other convex relaxations).

◮ Why ??

R(u) =

|∇u1| + |∇u2|.

slide-65
SLIDE 65

Corollaries

◮ No approximation: the global minimizer of the max-flow

(convex CV) is the global minimizer of the original non-convex CV model.

◮ The global minimizer is guaranteed binary ! (not true for

many other convex relaxations).

◮ Why ??

R(u) =

|∇u1| + |∇u2|.

◮ We can also regularize the length of the interface, then

Thresholded solution is not guaranteed to be exact.

slide-66
SLIDE 66

Multiphase problems

◮ A new tight relaxation with product of labels (more than

binary) has been given in Goldluecke-Cremers ECCV(2010).

slide-67
SLIDE 67

Multiphase problems

◮ A new tight relaxation with product of labels (more than

binary) has been given in Goldluecke-Cremers ECCV(2010).

◮ The formulation can be deduced from Tight relaxation as well.

slide-68
SLIDE 68

Multiphase problems

◮ A new tight relaxation with product of labels (more than

binary) has been given in Goldluecke-Cremers ECCV(2010).

◮ The formulation can be deduced from Tight relaxation as well.

No approximation for two-phase and four-phase Chan-Vese model (A collaboration between Bae, Lellman).

slide-69
SLIDE 69

Multiphase problems

◮ A new tight relaxation with product of labels (more than

binary) has been given in Goldluecke-Cremers ECCV(2010).

◮ The formulation can be deduced from Tight relaxation as well.

No approximation for two-phase and four-phase Chan-Vese model (A collaboration between Bae, Lellman). More than four-phase, cannot guarantee global binary solution.

slide-70
SLIDE 70

Multiphase problems

◮ A new tight relaxation with product of labels (more than

binary) has been given in Goldluecke-Cremers ECCV(2010).

◮ The formulation can be deduced from Tight relaxation as well.

No approximation for two-phase and four-phase Chan-Vese model (A collaboration between Bae, Lellman). More than four-phase, cannot guarantee global binary solution.

◮ Other multiphase relaxations:

  • J. Lellmann-Kappes-Yuan-Becker-Schn¨
  • rr (2008),

Lellmann-et-al(2009, 2010), Brown-Chan-Bresson (2011), Goldstein-Bresson-Osher (2009), Chambolle-Cremers-Pock (2009, 2012).

slide-71
SLIDE 71

Multiphase problems

Multiphase problem (II) Layered Graph1

1Boykov-Kolmogorov (PAMI 2001), Ishikawa (PAMI 2003),

Darbon-Segle(JMIV, 2006), Bae-Tai (SSVM 2009)

slide-72
SLIDE 72

Multiphase problems

To identify n phases, we need one label function, but n labels.

20 40 60 80 100 10 20 30 40 50 60 70 80 90 100 1 1.5 2 2.5 3

slide-73
SLIDE 73

Multiphase problem

Figure : Need multi-labels φ(x) = i in Ωi, i = 1, 2, 3, 4.

slide-74
SLIDE 74

Increase dimension – only need two phases

|∇φ| = |∇u|.

Figure : Just need one label: Increase the dimension, we just need u(x, φ) = 0 or 1.

slide-75
SLIDE 75

1D signal and multiphase

Figure : Left: Example cut on the graph G corresponding to a 1d image

  • f 6 grid points. Right: Values of φ corresponding to the cut
slide-76
SLIDE 76

Historical review

◮ This graph was proposed in Ishikaka

(PAMI 2003).

slide-77
SLIDE 77

Historical review

◮ This graph was proposed in Ishikaka

(PAMI 2003).

◮ Darbon-Sigelle (JMIV, 2006), Chambolle

(2006), Hochbaum (2001) has used this graph for TV minimization and related problems.

slide-78
SLIDE 78

Historical review

◮ This graph was proposed in Ishikaka

(PAMI 2003).

◮ Darbon-Sigelle (JMIV, 2006), Chambolle

(2006), Hochbaum (2001) has used this graph for TV minimization and related problems.

◮ Using this kind of regularization,

segmentation is essentially an generalization of the Quantized ROF model.

slide-79
SLIDE 79

Historical review

◮ This graph was proposed in Ishikaka

(PAMI 2003).

◮ Darbon-Sigelle (JMIV, 2006), Chambolle

(2006), Hochbaum (2001) has used this graph for TV minimization and related problems.

◮ Using this kind of regularization,

segmentation is essentially an generalization of the Quantized ROF model.

◮ Lie-Lysaker-T. (2004, 2005) is a

formulation of this model with finite number of labels in a continuous domain x ∈ Ω.

slide-80
SLIDE 80

Historical review

◮ This graph was proposed in Ishikaka

(PAMI 2003).

◮ Darbon-Sigelle (JMIV, 2006), Chambolle

(2006), Hochbaum (2001) has used this graph for TV minimization and related problems.

◮ Using this kind of regularization,

segmentation is essentially an generalization of the Quantized ROF model.

◮ Lie-Lysaker-T. (2004, 2005) is a

formulation of this model with finite number of labels in a continuous domain x ∈ Ω.

  • T. Pock and D.

Cremers and H. Bischof and A. Chambolle (2010):

gives a convex relaxation in case both image domain and the labels are continuous.

slide-81
SLIDE 81

Continuous max-flow and cut

This part is based on: Bae-Yuan-T.-Boykov: CAM-10-62 (2010): a fast continuous max-flow approach to non-convex multilabeling problems.

slide-82
SLIDE 82

Multiphases

Costs: ρ(u(p), p), C(p, q), i = 1, 2, 3.

slide-83
SLIDE 83

Discrete min-cut

min

  • v∈P

ρ(uv, v) +

  • (u,v)∈N

C(u, v)|uv − uw|.

slide-84
SLIDE 84

Discrete max-flow

max

  • v∈P

p1(v) pi(v) ≤ ρ(ℓi, v), i = 1, 2, · · · n, |qi(v, w)| ≤ C(v, w).

slide-85
SLIDE 85

Continuous min-cut and max-flow

Continuous min-cut: min

u∈U

ρ(u(x), x)dx +

C(x)|∇u|dx. U = {u : Ω → {ℓ1, ℓ2, · · · ℓn}}.

slide-86
SLIDE 86

Continuous min-cut and max-flow

Continuous min-cut: min

u∈U

ρ(u(x), x)dx +

C(x)|∇u|dx. U = {u : Ω → {ℓ1, ℓ2, · · · ℓn}}. Continuous max-flow max

p1(x)dx

slide-87
SLIDE 87

Continuous min-cut and max-flow

Continuous min-cut: min

u∈U

ρ(u(x), x)dx +

C(x)|∇u|dx. U = {u : Ω → {ℓ1, ℓ2, · · · ℓn}}. Continuous max-flow max

p1(x)dx pi(x) ≤ ρ(ℓi, x), i = 1, 2, · · · n,

slide-88
SLIDE 88

Continuous min-cut and max-flow

Continuous min-cut: min

u∈U

ρ(u(x), x)dx +

C(x)|∇u|dx. U = {u : Ω → {ℓ1, ℓ2, · · · ℓn}}. Continuous max-flow max

p1(x)dx pi(x) ≤ ρ(ℓi, x), i = 1, 2, · · · n, |qi(x)| ≤ C(x),

slide-89
SLIDE 89

Continuous min-cut and max-flow

Continuous min-cut: min

u∈U

ρ(u(x), x)dx +

C(x)|∇u|dx. U = {u : Ω → {ℓ1, ℓ2, · · · ℓn}}. Continuous max-flow max

p1(x)dx pi(x) ≤ ρ(ℓi, x), i = 1, 2, · · · n, |qi(x)| ≤ C(x), (divqi − pi + pi+1)(x) = 0, qi · n = 0.

slide-90
SLIDE 90

Equivalence

Theorem: The continuous min-cut and max-flow problems are dual to each other. A ”threshold” of any solutions of the ”convex” min-cut problem is a global minimizer for the ”non-convex” min-cut problem.

slide-91
SLIDE 91

Algorithm

Algorithm: Primal-dual algorithm is tested and is fast. Primal variables: The flow variables. Dual variables: The cut u which turn out to the Lagrangian of the ”flow conservation” constraints.

slide-92
SLIDE 92

Infinite number of labels

For the number of labels, instead of: U = {u : Ω → {ℓ1, ℓ2, · · · ℓn}}. we use ”infinite number of labels”: U = {u : Ω → [ℓmin, ℓmax]}. This is exactly the same problem considered in:

  • T. Pock and D. Cremers and H. Bischof and A. Chambolle (2010).
slide-93
SLIDE 93

Continuous labels

As the number of labels goes to the limit of infinity, the max-flow problem with the flow constraints turns into: sup

p,q

p(ℓmin, x) dx s.t. p(ℓ, x) ≤ ρ(ℓ, x) , |q(ℓ, x)| ≤ α, ∀x ∈ Ω, ∀ℓ ∈ [ℓmin, ℓmax] divx q(ℓ, x) + ∂ℓ p(ℓ, x) = 0 , a.e. x ∈ Ω, ℓ ∈ [ℓmin, ℓmax].

slide-94
SLIDE 94

Continuous labels

As the number of labels goes to the limit of infinity, the max-flow problem with the flow constraints turns into: sup

p,q

p(ℓmin, x) dx s.t. p(ℓ, x) ≤ ρ(ℓ, x) , |q(ℓ, x)| ≤ α, ∀x ∈ Ω, ∀ℓ ∈ [ℓmin, ℓmax] divx q(ℓ, x) + ∂ℓ p(ℓ, x) = 0 , a.e. x ∈ Ω, ℓ ∈ [ℓmin, ℓmax]. The convex min-cut problem (the dual problem to the max-flow) is: min

λ(ℓ,x)∈[0,1]

ℓmax

ℓmin

  • α |∇xλ| − ρ(ℓ, x)∂ℓ λ(ℓ, x)
  • dxdℓ

+

(1 − λ(ℓmin, x))ρ(ℓmin, x) + λ(ℓmax, x)ρ(ℓmax, x) dx subject to

∂ℓ λ(ℓ, x) ≤ 0 , λ(ℓmin, x) ≤ 1 , λ(ℓmax, x) ≥ 0 , ∀x ∈ Ω, ∀ℓ ∈ [ℓmin, ℓmax] (3)

slide-95
SLIDE 95

Continuous labels

The convex min-cut problem (the dual problem to the max-flow) is: min

λ(ℓ,x)∈[0,1]

ℓmax

ℓmin

  • α |∇xλ| − ρ(ℓ, x)∂ℓ λ(ℓ, x)
  • dxdℓ

+

(1 − λ(ℓmin, x))ρ(ℓmin, x) + λ(ℓmax, x)ρ(ℓmax, x) dx subject to ∂ℓ λ(ℓ, x) ≤ 0 , λ(ℓmin, x) ≤ 1 , λ(ℓmax, x) ≥ 0 ,

slide-96
SLIDE 96

Continuous labels

The convex min-cut problem (the dual problem to the max-flow) is: min

λ(ℓ,x)∈[0,1]

ℓmax

ℓmin

  • α |∇xλ| − ρ(ℓ, x)∂ℓ λ(ℓ, x)
  • dxdℓ

+

(1 − λ(ℓmin, x))ρ(ℓmin, x) + λ(ℓmax, x)ρ(ℓmax, x) dx subject to ∂ℓ λ(ℓ, x) ≤ 0 , λ(ℓmin, x) ≤ 1 , λ(ℓmax, x) ≥ 0 , The following is the model from Poct et al (2010): (Note the difference) min

λ(ℓ,x)∈{0,1}

ℓmax

ℓmin

  • α |∇xλ| + ρ(ℓ, x) |∂ℓλ(ℓ, x)|
  • dxdℓ .

subject to λ(ℓmin, x) = 1 , λ(ℓmax, x) = 0 .

slide-97
SLIDE 97

Algorithm

Algorithm: Primal-dual algorithm is tested and is fast. Primal variables: The flow variables. Dual variables: The cut u which turn out to the Lagrangian of the ”flow conservation” constraints.

slide-98
SLIDE 98

Multiphase problems

Multiphase problem (III) Graph for characteristic functions1

1Yuan-Bae-T.-Boykov (ECCV’10)

slide-99
SLIDE 99

Multi-partitioning problem

Multi-partitioning problem (Pott’s model) min

{Ωi} n

  • i=1
  • Ωi

fidx +

n

  • i=1
  • ∂Ωi

g(x)ds, such that ∪n

i=1 Ωi = Ω,

∩n

i=1Ωi = ∅

slide-100
SLIDE 100

Multi-partitioning problem

Multi-partitioning problem (Pott’s model) min

{Ωi} n

  • i=1
  • Ωi

fidx +

n

  • i=1
  • ∂Ωi

g(x)ds, such that ∪n

i=1 Ωi = Ω,

∩n

i=1Ωi = ∅

Pott’s model in terms of characteristic functions

min

ui(x)∈{0,1} n

  • i=1

ui(x)fi(x) dx +

n

  • i=1

g(x) |∇ui| dx , s.t.

n

  • i=1

ui(x) = 1

slide-101
SLIDE 101

Multi-partitioning problem

Multi-partitioning problem (Pott’s model) min

{Ωi} n

  • i=1
  • Ωi

fidx +

n

  • i=1
  • ∂Ωi

g(x)ds, such that ∪n

i=1 Ωi = Ω,

∩n

i=1Ωi = ∅

Pott’s model in terms of characteristic functions

min

ui(x)∈{0,1} n

  • i=1

ui(x)fi(x) dx +

n

  • i=1

g(x) |∇ui| dx , s.t.

n

  • i=1

ui(x) = 1 ui(x) = χΩi(x) := 1, x ∈ Ωi 0, x / ∈ Ωi , i = 1, . . . , n

slide-102
SLIDE 102

A convex relaxation approach

Relaxed Pott’s model in terms of characteristic functions (primal model) min

u

E P(u) =

n

  • i=1

ui(x)fi(x) dx +

n

  • i=1

g(x) |∇ui| dx ,

slide-103
SLIDE 103

A convex relaxation approach

Relaxed Pott’s model in terms of characteristic functions (primal model) min

u

E P(u) =

n

  • i=1

ui(x)fi(x) dx +

n

  • i=1

g(x) |∇ui| dx , s.t. u ∈ △+ = {(u1(x), . . . , un(x)) |

n

  • i=1

ui(x) = 1 ; ui(x) ≥ 0 }

◮ Convex optimization problem ◮ Optimization techniques: Zach et. al. alternating TV

  • minimization. Lellmann et. al: Douglas Rachford splitting and

special thresholding, Bae-Yuan-T. (2010), Chambolle-Crmer-Pock (2012).

slide-104
SLIDE 104

Dual formulation of relaxation: Bae-Yuan-T. (IJCV, 2010)

Dual model: Cλ := {p : Ω → R2 | |p(x)|2 ≤ g(x) , pn|∂Ω = 0 } ,

◮ Hence the primal-dual model can be optimized pointwise for u

min

u∈△+ n

  • i=1

ui(x)fi(x) dx +

n

  • i=1

g(x) |∇ui| dx ,

slide-105
SLIDE 105

Dual formulation of relaxation: Bae-Yuan-T. (IJCV, 2010)

Dual model: Cλ := {p : Ω → R2 | |p(x)|2 ≤ g(x) , pn|∂Ω = 0 } ,

◮ Hence the primal-dual model can be optimized pointwise for u

min

u∈△+ n

  • i=1

ui(x)fi(x) dx +

n

  • i=1

g(x) |∇ui| dx , max

pi∈Cλ

min

u∈△+ E(u, p) =

n

  • i=1

ui(fi + div pi) dx

slide-106
SLIDE 106

Dual formulation of relaxation: Bae-Yuan-T. (IJCV, 2010)

Dual model: Cλ := {p : Ω → R2 | |p(x)|2 ≤ g(x) , pn|∂Ω = 0 } ,

◮ Hence the primal-dual model can be optimized pointwise for u

min

u∈△+ n

  • i=1

ui(x)fi(x) dx +

n

  • i=1

g(x) |∇ui| dx , max

pi∈Cλ

min

u∈△+ E(u, p) =

n

  • i=1

ui(fi + div pi) dx = max

pi∈Cλ

min

u(x)∈△+ n

  • i=1

ui(x)(fi(x) + div pi(x)) dx

slide-107
SLIDE 107

Dual formulation of relaxation: Bae-Yuan-T. (IJCV, 2010)

Dual model: Cλ := {p : Ω → R2 | |p(x)|2 ≤ g(x) , pn|∂Ω = 0 } ,

◮ Hence the primal-dual model can be optimized pointwise for u

min

u∈△+ n

  • i=1

ui(x)fi(x) dx +

n

  • i=1

g(x) |∇ui| dx , max

pi∈Cλ

min

u∈△+ E(u, p) =

n

  • i=1

ui(fi + div pi) dx = max

pi∈Cλ

min

u(x)∈△+ n

  • i=1

ui(x)(fi(x) + div pi(x)) dx = max

pi∈Cλ

  • min(f1 + div p1, . . . , fn + div pn)
  • dx
slide-108
SLIDE 108

Dual formulation of relaxation: Bae-Yuan-T. (IJCV, 2010)

Dual model: Cλ := {p : Ω → R2 | |p(x)|2 ≤ g(x) , pn|∂Ω = 0 } ,

◮ Hence the primal-dual model can be optimized pointwise for u

min

u∈△+ n

  • i=1

ui(x)fi(x) dx +

n

  • i=1

g(x) |∇ui| dx , max

pi∈Cλ

min

u∈△+ E(u, p) =

n

  • i=1

ui(fi + div pi) dx = max

pi∈Cλ

min

u(x)∈△+ n

  • i=1

ui(x)(fi(x) + div pi(x)) dx = max

pi∈Cλ

  • min(f1 + div p1, . . . , fn + div pn)
  • dx

= max

pi∈Cλ

E D(p)

slide-109
SLIDE 109

Multiple Phases: Convex Relaxed Potts Model (CR-PM) –Yuan-Bae-T.-Boykov (ECCV’10)

Continuous Max-Flow Model (CMF-PM)

  • 1. n copies Ωi, i = 1, . . . , n, of Ω;
  • 2. For ∀x ∈ Ω, the same source flow ps(x) from the source s to

x at Ωi, i = 1, . . . , n, simultaneously;

  • 3. For ∀x ∈ Ω, the sink flow pi(x) from x at Ωi, i = 1, . . . , n, of

Ω to the sink t. pi(x), i = 1, . . . , n, may be different one by

  • ne;
  • 4. The spatial flow qi(x), i = 1, . . . , n defined within each Ωi.
slide-110
SLIDE 110

Max-flow on this graph

Max-Flow: max

ps,p,q{P(ps, p, q) =

psdx} |qi(x)| ≤ g(x), pi(x) ≤ fi(x), (divqi − ps + pi)(x) = 0, i = 1, 2, · · · n. Note that ps(x) = divqi(x) + pi(x), i = 1, 2 · · · n. Thus ps(x) = min(f1 + div p1, . . . , fn + div pn). Therefore, the maximum of

  • Ω ps(x) is:

max

|qi(x)|≤g(x)

min(f1 + div p1, . . . , fn + div pn)dx

slide-111
SLIDE 111

(Convex) min-cut on this graph

max

ps,p,q min u {E(ps, p, q, u) =

psdx +

m

  • i=1

ui(divqi − ps + pi)dx} s.t. pi(x) ≤ fi(x), |qi(x)| ≤ g(x). Rearranging the energy functional E(·), we that E(ps, p, q, u) =

(1 −

m

  • i=1

ui)ps +

m

  • i=1

uipi +

m

  • i=1

uidivqi.dx. The following constraint are automatically satisfied from the

  • ptimization:

ui(x) ≤ 0,

m

  • i=1

ui = 1.

slide-112
SLIDE 112

Summary

◮ We show a number of of non-convex problems can be solved

exactly through convex relaxation. They can be interpreted as continuous max-flow and min-cut problems. It is interesting to observe that the Lagrangian multiplier for the flow conservation is the ”cut”.

slide-113
SLIDE 113

Summary

◮ We show a number of of non-convex problems can be solved

exactly through convex relaxation. They can be interpreted as continuous max-flow and min-cut problems. It is interesting to observe that the Lagrangian multiplier for the flow conservation is the ”cut”.

◮ A number of the models has ”binary” global minimizer.

However, some of them have duality gap between the max-flow and (non-convex) min-cut.

slide-114
SLIDE 114

Summary

◮ We show a number of of non-convex problems can be solved

exactly through convex relaxation. They can be interpreted as continuous max-flow and min-cut problems. It is interesting to observe that the Lagrangian multiplier for the flow conservation is the ”cut”.

◮ A number of the models has ”binary” global minimizer.

However, some of them have duality gap between the max-flow and (non-convex) min-cut.

◮ If we replace the isotropic TV by antisotropic TV, then all the

models we have investigated has a discrete ”graph”. However, some recent (ongoing) work show that some continuous max-flow models do not have a discrete graph.

slide-115
SLIDE 115

Summary

◮ We show a number of of non-convex problems can be solved

exactly through convex relaxation. They can be interpreted as continuous max-flow and min-cut problems. It is interesting to observe that the Lagrangian multiplier for the flow conservation is the ”cut”.

◮ A number of the models has ”binary” global minimizer.

However, some of them have duality gap between the max-flow and (non-convex) min-cut.

◮ If we replace the isotropic TV by antisotropic TV, then all the

models we have investigated has a discrete ”graph”. However, some recent (ongoing) work show that some continuous max-flow models do not have a discrete graph.

◮ The CV (Chan-Vese ) model has special properties in term of

global minimization through max-flow and min-cut approach. Two-phase and four-phase problems have global binary minimizers, but not 2n-phases (n ≥ 3).