Top Banner
Image Segmentation with a Bounding Box Prior Victor Lempitsky, Pushmeet Kohli, Carsten Rother, Toby Sharp Microsoft Research Cambridge Dylan Rhodes and Jasper Lin 1
60

Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Jul 30, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Image Segmentation with a Bounding Box Prior

Victor Lempitsky, Pushmeet Kohli, Carsten Rother, Toby SharpMicrosoft Research Cambridge

Dylan Rhodes and Jasper Lin

1

Page 2: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Presentation Overview

● Segmentation problem description● Background and Previous Work● Problems and Proposed Solutions

○ Formalizing tightness○ Defining tractable optimization problem for

segmentation○ Discretizing continuous approximation of solution

● Experiments and Results

2

Page 3: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Presentation Overview

● Segmentation problem description● Background and Previous Work● Problems and Proposed Solutions

○ Formalizing tightness○ Defining tractable optimization problem for

segmentation○ Discretizing continuous approximation of solution

● Experiments and Results

3

Page 4: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Segmentation Problem

How does one separate the foreground from the background with minimal user input?

4

Page 5: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Bounding Box

● Allows the algorithm to focus on subimage● Desired segmentation is close to sides of bounding

box

5

Page 6: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Bounding Box

● Allows the algorithm to focus on subimage● Desired segmentation is close to sides of bounding

box

6

Page 7: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Presentation Overview

● Segmentation problem description● Background and Previous Work● Problems and Proposed Solutions

○ Formalizing tightness○ Defining tractable optimization problem for

segmentation○ Discretizing continuous approximation of solution

● Experiments and Results

7

Page 8: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Basic Formulation

8

Page 9: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Basic Formulation

B is the set of pixels within the bounding box

9

Page 10: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Basic Formulation

E is the set of adjacent pixels within the bounding box

10

Page 11: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Basic Formulation

p and q are pixel indices

11

Page 12: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Basic Formulation

x_p can take a label of 1 for foreground or 0 for background

12

Page 13: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Basic Formulation

Unary potentials encode preference for foreground or background

13

Page 14: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Basic Formulation

Pairwise potentials enforce smoothness of the solution

14

Page 15: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Related Work

● Nowozin and Lampert derived framework for segmentation under connectivity constraint

● Relax NP-hard integer problem and solve resulting LP

15

Page 16: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Nowozin and Lampert

16

Page 17: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Nowozin and Lampert

17

Page 18: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Nowozin and Lampert

18

Page 19: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Presentation Overview

● Segmentation problem description● Background and Previous Work● Problems and Proposed Solutions

○ Formalizing tightness○ Defining tractable optimization problem for

segmentation○ Discretizing continuous approximation of solution

● Experiments and Results

19

Page 20: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Presentation Overview

● Segmentation problem description● Background and Previous Work● Problems and Proposed Solutions

○ Formalizing tightness○ Defining tractable optimization problem for

segmentation○ Discretizing continuous approximation of solution

● Experiments and Results

20

Page 21: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Why tightness?

21

Page 22: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Tightness Definition

22

Page 23: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Corollary

A shape x is strongly tight if and only if its intersection with the middle box has a connected component touching all four sides of the middle box

23

Page 24: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Energy Minimization Problem

24

Page 25: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Presentation Overview

● Segmentation problem description● Background and Previous Work● Problems and Proposed Solutions

○ Formalizing tightness○ Defining tractable optimization problem for

segmentation○ Discretizing continuous approximation of solution

● Experiments and Results

25

Page 26: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Energy Minimization Problem

26

Page 27: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Energy Minimization Problem

27

Page 28: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Convex Continuous Relaxation

28

Page 29: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Convex Continuous Relaxation

29

Page 30: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Continuous Optimization

30

Page 31: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Continuous Optimization

31

Page 32: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Additional Approximation

Intuition: Solve LP with a subset Γ' of the constraints in 3c activated

32

Page 33: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Calculating Γ'

1. Begin with Γ' = ∅2. Solve the LP3. Pick a group of crossing paths from Γ \ Γ' which are

violated by more than a small tolerance 4. Add these paths to Γ'5. Repeat steps 2 through 4 until all paths in Γ are

satisfied within the tolerance

33

Page 34: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Final Form

34

Page 35: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Presentation Overview

● Segmentation problem description● Background and Previous Work● Problems and Proposed Solutions

○ Formalizing tightness○ Defining tractable optimization problem for

segmentation○ Discretizing continuous approximation of solution

● Experiments and Results

35

Page 36: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Pinpointing Algorithm

Normally, output of LP is rounded to integer solution

36

Page 37: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Pinpointing Algorithm

● Pinpoint set Π contains pixels hard-assigned to foreground

37

Page 38: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Pinpoint Algorithm

38

Page 39: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Pinpoint Algorithm

39

Page 40: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Challenges

● Existing methods perform energy-driven shrinking over bounding box○ No guarantees optimization won’t shrink excessively

○ Stuck at poor local minima

○ Discretization of approximate solution is noisy

40

Page 41: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Paper’s Contributions

● Common methods initialize foreground region and perform energy-driven shrinking○ No guarantees optimization won’t shrink excessively

Solution: new tightness prior○ Stuck at poor local minima

○ Discretization of approximate solution is noisy

41

Page 42: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Paper’s Contributions

● Common methods initialize foreground region and perform energy-driven shrinking○ No guarantees optimization won’t shrink excessively

Solution: new tightness prior○ Stuck at poor local minima

Solution: new approximation strategies○ Discretization of approximate solution is noisy

42

Page 43: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Paper’s Contributions

● Common methods initialize foreground region and perform energy-driven shrinking○ No guarantees optimization won’t shrink excessively

Solution: new tightness prior○ Stuck at poor local minima

Solution: new approximation strategy○ Discretization of approximate solution is noisy

Solution: new pinpointing algorithm

43

Page 44: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Presentation Overview

● Segmentation problem description● Background and Previous Work● Problems and Proposed Solutions

○ Formalizing tightness○ Defining tractable optimization problem for

segmentation○ Discretizing continuous approximation of solution

● Experiments and Results

44

Page 45: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Experiments

● Evaluated over 50 image GrabCut dataset○ Each image comes with bounding box

● Comparison with competing methods and initialization strategies

45

Page 46: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

GrabCut Dataset

● 50 natural images with bounding box annotations○ Includes background, outside strip, and foreground

bounding boxes

46

Page 47: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

GrabCut Dataset

● 50 natural images with bounding box annotations○ Includes background, outside strip, and foreground

bounding boxes

47

Page 48: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Unary and Pairwise Terms

● Pairwise terms over 8-connected edge set

48

Page 49: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Relative Performance

Error rate - mislabeled pixels inside bounding boxOptimum Rank - average rank of energy of final integer program solutions

49

Page 50: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Relative Performance

50

Page 51: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Iterative Process

● Compare the following algorithms on the segmentation task:○ GrabCut with standard graph cut minimization for

all segmentation steps○ GrabCut which enforces the tightness prior for all

segmentation steps● 5 iterations each

51

Page 52: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Initialization Strategies

● Compare two methods for initializing foreground/background GMMs:○ InitThirds = same as Experiment 1 (outside strip +

best matches vs. poor matches) ○ InitFullBox which sets background GMM to

outside strip and foreground to whole interior of bounding box

52

Page 53: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Iterative Process

53

Page 54: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Effect of Margin Thickness

Error rates as function of margin thickness

54

Page 55: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Strong vs. Weak Tightness

● Strong and weak tightness lead to similar error rates in general○ same error rate (3.7%) for best model (GrabCut-

Pinpoint/InitThirds)

55

Page 56: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Iterative Process Comparisons

56

Page 57: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Conclusions

● New bounding-box based prior for interactive image segmentation

57

Page 58: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Conclusions

● New bounding-box based prior for interactive image segmentation

● Demonstrated segmentation tasks under this prior can be formulated as integer programs

58

Page 59: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Conclusions

● New bounding-box based prior for interactive image segmentation

● Demonstrated segmentation tasks under this prior can be formulated as integer programs

● Developed new optimization approaches for approximate solution of these NP-hard problems○ Can be applied to other computer vision problems e.g.

other image segmentation or silhouettes in multi-view stereo

59

Page 60: Image Segmentation with a Bounding Box Priorvision.stanford.edu/teaching/cs231b_spring1415/slides/lempitsky_presentation.pdfPresentation Overview Segmentation problem description Background

Thank you!

60