convex optimization and image...

49
Convex Optimization and Image Segmentation Daniel Cremers Computer Science & Mathematics TU Munich

Upload: others

Post on 09-Jul-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Convex Optimization and

Image Segmentation

Daniel Cremers

Computer Science & Mathematics

TU Munich

Page 2: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Image segmentation:

Optimization in Computer Vision

Geman, Geman ’84, Blake, Zisserman ‘87, Kass et al. ’88,

Mumford, Shah ’89, Caselles et al. ‘95, Kichenassamy et al. ‘95,

Paragios, Deriche ’99, Chan, Vese ‘01, Tsai et al. ‘01, …

Multiview stereo reconstruction:

Faugeras, Keriven ’98, Duan et al. ‘04, Yezzi, Soatto ‘03,

Seitz et al. ‘06, Hernandez et al. ‘07, Labatut et al. ’07, …

Optical flow estimation:

Non-convex energiesNon-convex energies

2Daniel Cremers Convex Optimization and Image Segmentation

Optical flow estimation:

Horn, Schunck ‘81, Nagel, Enkelmann ‘86, Black, Anandan ‘93,

Alvarez et al. ‘99, Brox et al. ‘04, Baker et al. ‘07, Zach et al. ‘07,

Sun et al. ‘08, Wedel et al. ’09, …

Page 3: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Non-convex versus Convex Energies

Non-convex energy Convex energy

3Daniel Cremers Convex Optimization and Image Segmentation

Some related work: Brakke ‘95, Alberti et al. ‘01, Ishikawa ‘01,

Chambolle ‘01, Attouch et al. ‘06, Nikolova et al. ‘06, Bresson et al. ‘07,

Zach et al. ‘08, Lellmann et al. ‘08, Zach et al. ’09, Brown et al. ’10,

Bae et al. ‘10, Yuan et al. ‘10,…

Page 4: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

The Mumford-Shah Functional

Let and

Mumford, Shah ’89, Blake, Zisserman ’87

Ambrosio, Tortorelli ’90, Vese, Chan ‘02

4Daniel Cremers Convex Optimization and Image Segmentation

Page 5: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Let and

The Mumford-Shah Functional

Piecewise constant approximation for

Mumford, Shah ’89, Blake, Zisserman ’87

Ambrosio, Tortorelli ’90, Vese, Chan ‘02

5Daniel Cremers Convex Optimization and Image Segmentation

Mumford, Shah ’89, Chan, Vese ’01, Potts ‘52, Ising ‘25

Page 6: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Comparison of Regularizers

6Daniel Cremers Convex Optimization and Image Segmentation

Truncated quadratic Potts model Linear / TV

Page 7: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Total Variation Denoising

7Daniel Cremers Convex Optimization and Image Segmentation

Input image TV-denoised

+ Convex & fast to minimize

- Oversmoothing in flat regions (staircasing)

- Reduces contrast at edges

Page 8: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Overview

Convex multilabel optimization Minimal partitions

8Daniel Cremers Convex Optimization and Image Segmentation

Mumford-ShahSemantic segmentation

Page 9: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Overview

Convex multilabel optimization Minimal partitions

9Daniel Cremers Convex Optimization and Image Segmentation

Mumford-ShahSemantic segmentation

Page 10: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Cartesian Currents and Relaxation

nonconvex data term label regularity

10Daniel Cremers Convex Optimization and Image Segmentation

Pock , Schoenemann, Graber, Bischof, Cremers ECCV ’08

Page 11: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Cartesian Currents and Relaxation

Ishikawa , PAMI ‘03

11Daniel Cremers Convex Optimization and Image Segmentation

Pock , Schoenemann, Graber, Bischof, Cremers ECCV ’08

Ishikawa , PAMI ‘03

Page 12: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Cartesian Currents and Relaxation

nonconvex functional

Theorem: Minimizing is equivalent to minimizing

nonconvex functional

12Daniel Cremers Convex Optimization and Image Segmentation

convex functional

Solve in relaxed space ( ) and threshold

to obtain a globally optimal solution.

Pock , Schoenemann, Graber, Bischof, Cremers ECCV ’08

Page 13: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Evolution to Global Minimum

13Daniel Cremers Convex Optimization and Image Segmentation

Page 14: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Let

be continuous in and , and convex in

Theorem:

Global Optima for Convex Regularizers

Theorem:

where is constrained to the convex set

can be minimized globally by solving the saddle point problem

14Daniel Cremers Convex Optimization and Image Segmentation

Pock, Cremers, Bischof, Chambolle, SIAM J. on Imaging Sciences ’10

Page 15: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Given the saddle point problem

An Efficient Saddle Point Solver

with closed convex sets and and linear operator of norm

The iterative algorithm

15Daniel Cremers Convex Optimization and Image Segmentation

Pock, Cremers, Bischof, Chambolle, ICCV ‘09, Chambolle, Pock ‘10

converges with rate to a saddle point for

Page 16: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Reconstruction from Aerial Images

16Daniel Cremers Convex Optimization and Image Segmentation

One of two input imagesDepth reconstruction

Courtesy of Microsoft

Page 17: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Reconstruction from Aerial Images

17Daniel Cremers Convex Optimization and Image Segmentation

Page 18: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Overview

Convex multilabel optimization Minimal partitions

18Daniel Cremers Convex Optimization and Image Segmentation

Mumford-ShahSemantic segmentation

Page 19: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

The Minimal Partition Problem

Potts ’52, Blake, Zisserman ’87, Mumford-Shah ’89, Vese, Chan ’02

Proposition: With , this is equivalent to

19Daniel Cremers Convex Optimization and Image Segmentation

Chambolle, Cremers, Pock ’08, SIIMS ‘12

where

Page 20: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Test Case: The Triple Junction

Input image Lellmann et al. ’08 Zach et al. ’08 our approach

20Daniel Cremers Convex Optimization and Image Segmentation

Proposition: The proposed relaxation strictly dominates alternative relaxations.

Chambolle, Cremers, Pock ’08, SIIMS ‘12

Page 21: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Four-Region Case

21Daniel Cremers Convex Optimization and Image Segmentation

Input image Inpainted

Chambolle, Cremers, Pock ’08, SIIMS ‘12

Page 22: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Minimal Surfaces in 3D

22Daniel Cremers Convex Optimization and Image Segmentation

3D min partition inpainting Photograph of a soap film

Chambolle, Cremers, Pock ’08, SIIMS ‘12

Page 23: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

The Minimal Partition Problem

23Daniel Cremers Convex Optimization and Image Segmentation

Input color image 10 label segmentation

Chambolle, Cremers, Pock ’08, SIIMS ‘12

Page 24: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Interactive Segmentation

24Daniel Cremers Convex Optimization and Image Segmentation

Nieuwenhuis, Cremers, PAMI ‘12

Page 25: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Space-dependent Color Likelihoods

25Daniel Cremers Convex Optimization and Image Segmentation

Nieuwenhuis, Cremers, PAMI ‘12

Page 26: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Interactive Segmentation

26Daniel Cremers Convex Optimization and Image Segmentation

Nieuwenhuis, Cremers, PAMI ‘12

Page 27: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Interactive Segmentation

27Daniel Cremers Convex Optimization and Image Segmentation

Nieuwenhuis, Cremers, PAMI ‘12

Page 28: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Overview

Convex multilabel optimization Minimal partitions

28Daniel Cremers Convex Optimization and Image Segmentation

Mumford-ShahSemantic segmentation

Page 29: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Semantic Image Segmentation

29Daniel Cremers Convex Optimization and Image Segmentation

Ladicki et al. ECCV ‘10, Souiai et al. EMMCVPR ‘13

Page 30: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Convex Relaxation vs. Graph Cuts

graph graph

cuts

linear programs

30Daniel Cremers Convex Optimization and Image Segmentation

Klodt et al., ECCV ’08, Nieuwenhuis et al. PAMI ‘13

convex programs

Page 31: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Semantic Image Segmentation

Input imagesInput images

Segmentation with boundary length regularity

31Daniel Cremers Convex Optimization and Image Segmentation

Segmentation with label configuration prior

Page 32: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Semantic Image Segmentation

32Daniel Cremers Convex Optimization and Image Segmentation

Souiai et al. EMMCVPR ‘13

Page 33: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

General Ordering Constraints

33Daniel Cremers Convex Optimization and Image Segmentation

Strekalovskiy, Cremers, ICCV 2011

Related discrete approach: Liu et al. PAMI ‘10

Page 34: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Reminder: With , the minimal partition problem is:

General Ordering Constraints

where

Consider instead the more general convex set:

34Daniel Cremers Convex Optimization and Image Segmentation

Penalize transitions depending on label values and orientation .

Strekalovskiy, Cremers, ICCV 2011

Page 35: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

General Ordering Constraints

35Daniel Cremers Convex Optimization and Image Segmentation

Strekalovskiy, Cremers, ICCV 2011

Input Data term Min. partition Ordering

Page 36: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

General Ordering Constraints

36Daniel Cremers Convex Optimization and Image Segmentation

Strekalovskiy, Cremers, ICCV 2011

Page 37: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

General Ordering Constraints

37Daniel Cremers Convex Optimization and Image Segmentation

Strekalovskiy, Cremers, ICCV 2011

Input Min. partition Ordering

Page 38: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Overview

Convex multilabel optimization Minimal partitions

38Daniel Cremers Convex Optimization and Image Segmentation

Mumford-ShahSemantic segmentation

Page 39: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Mumford, Shah ’89

Piecewise Smooth: Scalar Case

For can be written as

with a convex set

39Daniel Cremers Convex Optimization and Image Segmentation

Alberti, Bouchitte, Dal Maso ’04

Page 40: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Piecewise Smooth: Scalar Case

40Daniel Cremers Convex Optimization and Image Segmentation

piecewise constant piecewise smoothInput image

Pock, Cremers, Bischof, Chambolle ICCV ’09

Page 41: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Piecewise Smooth: Scalar Case

41Daniel Cremers Convex Optimization and Image Segmentation

Pock, Cremers, Bischof, Chambolle ICCV ’09

restoration surface plotnoisy input

Page 42: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

The Crack Tip & Open Boundaries

42Daniel Cremers Convex Optimization and Image Segmentation

inpainted crack tip surface plotfixed boundary values

Pock, Cremers, Bischof, Chambolle ICCV ’09

Page 43: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

The Vectorial Mumford-Shah Problem

For , we consider the functional

with the convex set:

Proposition: For , we have:

constraints!

43Daniel Cremers Convex Optimization and Image Segmentation

Strekalovskiy, Chambolle, Cremers, CVPR ‘12

Page 44: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

An Efficient Reformulation

Proposition: The constraint set constraints

is equivalent to the constraint set constraints

44Daniel Cremers Convex Optimization and Image Segmentation

Strekalovskiy, Chambolle, Cremers, CVPR ‘12

Same complexity as channel-wise processing.

Page 45: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

The Vectorial Mumford-Shah Problem

45Daniel Cremers Convex Optimization and Image Segmentation

TV denoised Vectorial Mumford-ShahInput image

Strekalovskiy, Chambolle, Cremers, CVPR ‘12

Page 46: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Channelwise versus Vectorial

Channelwise MS Vectorial MSInput image

46Daniel Cremers Convex Optimization and Image Segmentation

Jump set Jump set

Page 47: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Channelwise versus Vectorial

47Daniel Cremers Convex Optimization and Image Segmentation

Channelwise MS Vectorial MSInput image

Strekalovskiy, Chambolle, Cremers, CVPR ‘12

Page 48: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Piecewise Constant Color Segmentation

Input image

48Daniel Cremers Convex Optimization and Image Segmentation

Strekalovskiy, Chambolle, Cremers, CVPR ‘12

Page 49: Convex Optimization and Image Segmentationhelper.ipam.ucla.edu/publications/gss2013/gss2013_11356.pdfNieuwenhuis, Cremers, PAMI ‘12 Interactive Segmentation Daniel Cremers Convex

Conclusion

Convex relaxations for real-valued estimation

problems can be derived by discretizing the

space of permissible values.space of permissible values.

In the scalar-valued case we obtain provably

optimal solutions for convex regularizers.

49Daniel Cremers Convex Optimization and Image Segmentation

For nonconvex regularizers (Mumford-Shah

and min. partition) we get near-optimal

solutions independent of the initialization.