73
Segmentation with non-linear constraints on appearance, complexity, and geometry Yuri Boykov Western Univesity Andrew Delong Olga Veksle r Lena Goreli ck Frank Schmid t Anton Osokin Hossam Isack IPAM February 2013

Segmentation with non-linear constraints on appearance, complexity, and geometry

  • Upload
    valin

  • View
    40

  • Download
    4

Embed Size (px)

DESCRIPTION

IPAM February 2013. W estern Univesity. Segmentation with non-linear constraints on appearance, complexity, and geometry. Hossam Isack. Andrew Delong. Lena Gorelick. Anton Osokin. Frank Schmidt. Olga Veksler. Yuri Boykov. Overview. Standard linear constraints on segments - PowerPoint PPT Presentation

Citation preview

Page 1: Segmentation with non-linear constraints on appearance, complexity, and geometry

Segmentation with non-linear constraints on appearance, complexity, and geometry

Yuri Boykov

Western Univesity

Andrew Delong

Olga Veksler

Lena Gorelick

Frank Schmidt

AntonOsokin

HossamIsack

IPAMFebruary 2013

Page 2: Segmentation with non-linear constraints on appearance, complexity, and geometry

OverviewStandard linear constraints on segments– intensity log-likelihoods, volumetric ballooning, etc.

1. Basic non-linear regional constraints– enforcing intensity distribution (KL, Bhattacharia, L2)– constraints on volume and shape

2. Complexity constraints (label costs)– unsupervised and supervised image segmentation, compression– geometric model fitting

3. Geometric constraints – unsupervised and supervised image segmentation, compression– geometric model fitting (lines, circles, planes, homographies, motion,…)

Page 3: Segmentation with non-linear constraints on appearance, complexity, and geometry

3

Sf,E(S) B(S)Sf,E(S)

Image segmentation Basics

I

Fg)|Pr(I Bg)|Pr(I

p

pp sfE(S)

bg)|Pr(Ifg)|Pr(I

lnfp

pp

S

Page 4: Segmentation with non-linear constraints on appearance, complexity, and geometry

Linear appearance of region S

S,f)S(R

Examples of potential functions f

• Log-likelihoods

• Chan-Vese

• Ballooning

2pp )cI(f

1f p

)IPr(lnf pp

Page 5: Segmentation with non-linear constraints on appearance, complexity, and geometry

Part 1

Basic non-linear regional functionals

Sp

p )S|IPr(ln ||hist)S(hist|| 0

Sp

1 20 )vol)S(vol(

Page 6: Segmentation with non-linear constraints on appearance, complexity, and geometry

6

Standard Segmentation Energy

Fg

Bg

Intensity

ProbabilityDistribution

Target AppearanceResulting Appearance

Page 7: Segmentation with non-linear constraints on appearance, complexity, and geometry

7

Minimize Distance to Target Appearance Model

KL( R(S) Bha( R(S)

)||

),

2L||-|| R(S)

Sp p

p

bg)|Pr(I

fg)|Pr(Iln

Non-linear harder to optimizeregional term

TS

TS

TS

Page 8: Segmentation with non-linear constraints on appearance, complexity, and geometry

8

– appearance models – shape

non-linear regional term

B(S)R(S)E(S)

S

Page 9: Segmentation with non-linear constraints on appearance, complexity, and geometry

9

Related Work

• Can be optimized with gradient descent– first order approximation

Ben Ayed et al. Image Processing 2008,Foulonneau et al., PAMI 2006Foulonneau et al., IJCV 2009

We use higher-order approximation based on trust region approach

Page 10: Segmentation with non-linear constraints on appearance, complexity, and geometry

a general class of non-linear regional functionals

)S,f,,S,fF(R(S) k1

Page 11: Segmentation with non-linear constraints on appearance, complexity, and geometry

Regional FunctionalExamples

Volume Constraint

1f(x) ibin for (x)fi

S,fiS1,|S|

20 )VS1,(R(S)

11

Page 12: Segmentation with non-linear constraints on appearance, complexity, and geometry

Bin Count Constraint2

ii

k

1i)VS,f(ΣR(S)

1f(x) ibin for (x)fi

S,fiS1,|S|

12

Regional FunctionalExamples

Page 13: Segmentation with non-linear constraints on appearance, complexity, and geometry

13

Regional FunctionalExamples

• Histogram Constraint

VS)PΣR(S) 2ii

k

1i

(

2L||-|| R(S) TS

S1,

S,f(S)P

ii

Page 14: Segmentation with non-linear constraints on appearance, complexity, and geometry

14

Regional FunctionalExamples

• Histogram Constraint

V

(S)P(S)logPΣR(S)

i

ii

k

1i

KL( R(S) )|| TS

S1,

S,f(S)P

ii

Page 15: Segmentation with non-linear constraints on appearance, complexity, and geometry

15

Regional FunctionalExamples

• Histogram Constraint

ii

k

1iV(S)PΣlogR(S)

Bha( R(S) ), TS

S1,

S,f(S)P

ii

Page 16: Segmentation with non-linear constraints on appearance, complexity, and geometry

16

Shape Prior

• Volume Constraint is a very crude shape prior

• Can be generalized to constraints for a set of shape moments mpq

Page 17: Segmentation with non-linear constraints on appearance, complexity, and geometry

17

• Volume Constraint is a very crude shape prior

Shape Prior

01pq yxy)(x,f 22pq yxy)(x,f 32pq yxy)(x,f

qppq

pqpq

yxy)(x,f

Sf(S)m

,

Page 18: Segmentation with non-linear constraints on appearance, complexity, and geometry

18

Shape Prior using Shape Moments mpq

Volumem00

...

RatioAspect

nOrientatio Principal

mm

mm

0211

1120

Mass OfCenter )m,(m 0110

Page 19: Segmentation with non-linear constraints on appearance, complexity, and geometry

19

• Shape Prior Constraint

Shape Prior using Shape moments

kqp

2pqpq (T))m(S)(mR(S)

qppq

pqpq

yxy)(x,f

f(S)m

S,

Dist( ),R(S) S T

Page 20: Segmentation with non-linear constraints on appearance, complexity, and geometry

20

Optimization of Energies with Higher-order Regional Functionals

B(S)R(S)E(S)

Page 21: Segmentation with non-linear constraints on appearance, complexity, and geometry

21

Gradient Descent (e.g. level sets)

• Gradient Descent• First Order Taylor Approximation for R(S)• First Order approximation for B(S)

(“curvature flow”) • Robust with tiny steps– Slow– Sensitive to initialization

B(S)R(S)E(S)

http://en.wikipedia.org/wiki/File:Level_set_method.jpg

Ben Ayed et al. CVPR 2010,Freedman et al. tPAMI 2004

Page 22: Segmentation with non-linear constraints on appearance, complexity, and geometry

22

Energy Specific vs. General

• Speedup via energy- specific methods– Bhattacharyya Distance– Volume Constraint

• We propose– trust region optimization algorithm

for general high-order energies– higher-order (non-linear) approximation

Ben Ayed et al. CVPR 2010,Werner, CVPR2008Woodford, ICCV2009

Page 23: Segmentation with non-linear constraints on appearance, complexity, and geometry

23

B(S)(S)U(S)E 0d||SS|| 0

~min

General Trust Region ApproachAn overview

• The goal is to optimize

Trust region

Trust Region Sub-Problem

B(S)R(S)E(S)

B(S)(S)U(S)E 0 ~

• First Order Taylor for R(S)• Keep quadratic B(S)

0S

d

Page 24: Segmentation with non-linear constraints on appearance, complexity, and geometry

24

General Trust Region ApproachAn overview

• The goal is to optimizeB(S)R(S)E(S)

B(S)(S)U(S)E 0 ~

Trust Region Sub-Problem

B(S)(S)U(S)E 0d||SS|| 0

~min

0Sd

Page 25: Segmentation with non-linear constraints on appearance, complexity, and geometry

25

||SS||λB(S)(S)U(S)L 00λ

Solving Trust Region Sub-Problem

• Constrained optimizationminimize

• Unconstrained Lagrangian Formulationminimize

• Can be optimized globally u using graph-cut or convex continuous formulation

d||SS||s.t.

B(S)(S)U(S)E

0

0

~

L2 distance can be approximated with unary terms

[Boykov, Kolmogorov, Cremers, Delong, ECCV’06]

Page 26: Segmentation with non-linear constraints on appearance, complexity, and geometry

Approximating distance

0C

2s dsdCdC,dC

||SS|| 0

C

00 dp)p(d2)C,C(dist

[BKCD – ECCV 2006]

Page 27: Segmentation with non-linear constraints on appearance, complexity, and geometry

27

Trust Region

• Standard (adaptive) Trust Region– Control of step size d

• Lagrangian Formulation– Control of

the Lagrange multiplier λ

λd

Page 28: Segmentation with non-linear constraints on appearance, complexity, and geometry

28

Spectrum of Solutions for different λ or d

• Newton step• “Gradient Descent”• Exact Line Search (ECCV12)

Page 29: Segmentation with non-linear constraints on appearance, complexity, and geometry

Volume Constraint for Vertebrae segmentation

Log-Lik. + length + volumeFast Trust Region

InitializationsLog-Lik. + length

29

maxVminV0

)(SR

|| S

Page 30: Segmentation with non-linear constraints on appearance, complexity, and geometry

30

Appearance model with KL Divergence Constraint

Init

Fast Trust Region

“Gradient Descent”Exact Line Search

Appearance model is obtained from the ground truth

Page 31: Segmentation with non-linear constraints on appearance, complexity, and geometry

31

Appearance Model with Bhattacharyya Distance Constraint

“ “

Fast Trust Region “Gradient Descent”Exact Line Search

Appearance model is obtained from the ground truth

Page 32: Segmentation with non-linear constraints on appearance, complexity, and geometry

32

Shape prior with Tchebyshev moments for spine segmentation

Log-Lik. + length + Shape PriorFast Trust Region

Second order Tchebyshev moments computed for the user scribble

Page 33: Segmentation with non-linear constraints on appearance, complexity, and geometry

Part 2

Complexity constraints on appearance

Page 34: Segmentation with non-linear constraints on appearance, complexity, and geometry

Segment appearance ?

• sum of log-likelihoods (linear appearance) – histograms– mixture models

assumes i.i.d. pixels

with constraints– based on information theory (MDL complexity)– based on geometry (anatomy, scene layout)

• now: allow sub-regions (n-labels)

Page 35: Segmentation with non-linear constraints on appearance, complexity, and geometry

35

Natural Images: GMM or MRF?

MRFare pixels in this image i.i.d.? NO!

Page 36: Segmentation with non-linear constraints on appearance, complexity, and geometry

36

Natural Images: GMM or MRF?

GMM

Page 37: Segmentation with non-linear constraints on appearance, complexity, and geometry

37

Natural Images: GMM or MRF?

MRF

Page 38: Segmentation with non-linear constraints on appearance, complexity, and geometry

38

Natural Images: GMM or MRF?

MRF?

Page 39: Segmentation with non-linear constraints on appearance, complexity, and geometry

39

Binary graph cuts

[Boykov & Jolly, ICCV 2001] [Rother, Kolmogorov, Blake, SIGGRAPH 2004]

Page 40: Segmentation with non-linear constraints on appearance, complexity, and geometry

40[Boykov & Jolly, ICCV 2001] [Rother, Kolmogorov, Blake, SIGGRAPH 2004]

Binary graph cuts

Page 41: Segmentation with non-linear constraints on appearance, complexity, and geometry

41

GMM

GMM

[Boykov & Jolly, ICCV 2001] [Rother, Kolmogorov, Blake, SIGGRAPH 2004]

Binary graph cuts

Page 42: Segmentation with non-linear constraints on appearance, complexity, and geometry

42

• Objects within image can be as complex as image itself

• Where do we draw the line?

A Spectrum of Complexity

MRF?GMM?Gaussian? object recognition??

Page 43: Segmentation with non-linear constraints on appearance, complexity, and geometry

43

Single Model Per Class Label

GMM

GMM

Pixels are identically distributed inside each segment

Page 44: Segmentation with non-linear constraints on appearance, complexity, and geometry

44

Multiple Models Per Class Label

GMM

GMMGMM

GMMGMM

GMM

Now pixels are not identically distributed inside each segment

Page 45: Segmentation with non-linear constraints on appearance, complexity, and geometry

45

Multiple Models Per Class Label

MRFMRF

Now pixels are not identically distributed inside each segmentOur Energy ≈ Supervised Zhu & Yuille!

Page 46: Segmentation with non-linear constraints on appearance, complexity, and geometry

46

boundary length

MDL regularizer

+color similarity

+

a-expansion (graph cuts) can handle such energies with some optimality guarantees [IJCV’12,CVPR’10]

• Leclerc, PAMI’92• Zhu & Yuille. PAMI’96; Tu & Zhu. PAMI’02• Unsupervised clustering of pixels

Page 47: Segmentation with non-linear constraints on appearance, complexity, and geometry

(unsupervised image segmentation)

Fitting color models

information theory (MDL) interpretation:= number of bits to compress image I losslessly

L

LLNqp

qpp

pI hLLwLpE )()(||||)(),(

LL

)|Pr(ln pp LI

each label L represents some distribution Pr(I|L)

Page 48: Segmentation with non-linear constraints on appearance, complexity, and geometry

(unsupervised image segmentation)

Fitting color models

Label costs only

Delong, Osokin, Isack, Boykov, IJCV 12 (UFL-approach)

Page 49: Segmentation with non-linear constraints on appearance, complexity, and geometry

(unsupervised image segmentation)

Fitting color models

Spatial smoothness only [Zabih & Kolmogorov, CVPR 04]

Page 50: Segmentation with non-linear constraints on appearance, complexity, and geometry

(unsupervised image segmentation)

Fitting color models

Spatial smoothness + label costs

Zhu & Yuille, PAMI 1996 (gradient descent)Delong, Osokin, Isack, Boykov, IJCV 12 (a-expansion)

Page 51: Segmentation with non-linear constraints on appearance, complexity, and geometry

Fitting planes (homographies)

L

LLNqp

qpp

p hLLTwLpE )()(||||)(),(

LL

Delong, Osokin, Isack, Boykov, IJCV 12 (a-expansion)

Page 52: Segmentation with non-linear constraints on appearance, complexity, and geometry

Fitting planes (homographies)

Delong, Osokin, Isack, Boykov, IJCV 12 (a-expansion)

L

LLNqp

qpp

p hLLTwLpE )()(||||)(),(

LL

Page 53: Segmentation with non-linear constraints on appearance, complexity, and geometry

53

Back to interactive segmentation

Page 54: Segmentation with non-linear constraints on appearance, complexity, and geometry

54

segmentation colour models“sub-labeling”

EMMCVPR 2011

Page 55: Segmentation with non-linear constraints on appearance, complexity, and geometry

55

Main Idea• Standard MRF:

• Two-level MRF:

object MRF

GMMs GMMs

background MRF

image-level MRF

object GMM background GMM

image-level MRF

unknown number of labels in each group!

Page 56: Segmentation with non-linear constraints on appearance, complexity, and geometry

56

Our multi-label energy functional

• Penalizes number of GMMs (labels)– prefer fewer, simpler models– MDL / information criterion

regularize “unsupervised” aspect

• Discontinuity cost c is higher between labels of different categories

data costs smooth costs label costs

GMMs GMMs

Ll

plNpq

qppqPp

pp lfpIhffcwfDE ):(),()(

set of labels L

background labels

object labels

two categories of labels (respecting hard-constraints)

Page 57: Segmentation with non-linear constraints on appearance, complexity, and geometry

57

More Examplesstandard 1-level MRF 2-level MRF

Page 58: Segmentation with non-linear constraints on appearance, complexity, and geometry

58

More Examples2-level MRFstandard 1-level MRF

Page 59: Segmentation with non-linear constraints on appearance, complexity, and geometry

59

Beyond GMMs

GMMs

GMMs + planes

plane

GMMs only

Page 60: Segmentation with non-linear constraints on appearance, complexity, and geometry

Part 3

Geometric constraints on sub-segments

Page 61: Segmentation with non-linear constraints on appearance, complexity, and geometry

• Sub-labels maybe known apriori- known parts of organs or cells- interactivity becomes optional

• Geometric constraints should be added- human anatomy (medical imaging)

- or known scene layout (computer vision)

Towards biomedical image segmentation…

Page 62: Segmentation with non-linear constraints on appearance, complexity, and geometry

Illustrative Example

• We want to distinguish between these objects

62

input what mixed model giveswhat we want

mixed appearance model:

Page 63: Segmentation with non-linear constraints on appearance, complexity, and geometry

main ideas

– sub-labels with distinct appearance models (as earlier) – basic geometric constraints between parts

- inclusion/exclusion- expected distances and margins

For some constraints globally optimal segmentationcan be computedin polynomial time

63

Page 64: Segmentation with non-linear constraints on appearance, complexity, and geometry

Illustrative Example

• Model as two parts: “light X contains dark Y”

64

Center object the only object that fits two-part model(no localization)

Page 65: Segmentation with non-linear constraints on appearance, complexity, and geometry

‘layer cake’

a-la Ishikawa’03

Our Energy

65variables

Let over objects L and pixels P

Page 66: Segmentation with non-linear constraints on appearance, complexity, and geometry

Surface Regularization Terms

• Standard regularization of each independent surface

66

Let over objects L and pixels P

Page 67: Segmentation with non-linear constraints on appearance, complexity, and geometry

Geometric Interaction Terms

• Inter-surface interaction

67

Let over objects L and pixels P

Page 68: Segmentation with non-linear constraints on appearance, complexity, and geometry

So What Can We Do?• Nestedness/inclusion of sub-segments

ICCV 2009 (submodular, exact solution)

• Spring-like repulsion of surfaces, minimum distanceICCV 2009 (submodular, exact solution)

• Spring-like attraction of surfaces, Hausdorf distanceECCV 2012 (approximation)

• Extends Li, Wu, Chen & Sonka [PAMI’06]– no pre-computed medial axes– no topology constraints

68

Page 69: Segmentation with non-linear constraints on appearance, complexity, and geometry

Applications

• Medical Segmentation– Lots of complex shapes with

priors between boundaries – Better domain-specific models

• Scene Layout Estimation– Basically just regularize

Hoiem-style data terms [4]

69

Page 70: Segmentation with non-linear constraints on appearance, complexity, and geometry

Application: Medical

70

our resultinput

Page 71: Segmentation with non-linear constraints on appearance, complexity, and geometry

Application: Medical

71

full body MRI two-part model

Page 72: Segmentation with non-linear constraints on appearance, complexity, and geometry

Application: Medical

72

full body MRI

Page 73: Segmentation with non-linear constraints on appearance, complexity, and geometry

Conclusions

• linear functionals are very limited– be careful with i.i.d. (histograms or mixture models)

• higher-order regional functionals• use sub-segments regularized by

– complexity or sparcity (MDL, information theory) – geometry (based on anatomy)

literature: ICCV’09, EMMCVPR’11, ICCV’11, , IJCV12, ECCV’12