1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with...

49
1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless Fowlkes, David Martin, Xiaofeng Ren, Michael Maire, Pablo Arbelaez)

Transcript of 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with...

Page 1: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

1

Contours and Junctions in Natural

Images

Jitendra MalikUniversity of California at Berkeley

(with Jianbo Shi, Thomas Leung, Serge Belongie, Charless Fowlkes, David Martin, Xiaofeng Ren, Michael Maire, Pablo Arbelaez)

Page 2: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

2

From Pixels to Perception

TigerGrass

Water

Sand

outdoorwildlife

Tiger

tail

eye

legs

head

back

shadow

mouth

Page 3: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

3

I stand at the window and see a house, trees, sky. Theoretically I might say there were 327 brightnesses and nuances of colour.

Do I have "327"?

No. I have sky, house, and trees.

---- Max Wertheimer, 1923

Page 4: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

4

Perceptual Organization

Grouping Figure/Ground

Page 5: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

5

Key Research Questions in Perceptual Organization

• Predictive power– Factors for complex, natural stimuli ?

– How do they interact ?

• Functional significance– Why should these be useful or confer some

evolutionary advantage to a visual organism?

• Brain mechanisms– How are these factors implemented given what we

know about V1 and higher visual areas?

Page 6: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

6

Attneave’s Cat (1954)Line drawings convey most of the

information

Page 7: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

7

Contours and junctions are fundamental…

• Key to recognition, inference of 3D scene properties, visually- guided manipulation and locomotion…

• This goes beyond local, V1-like, edge-detection. Contours are the result of perceptual organization, grouping and figure/ground processing

Page 8: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

8

Some computer vision history…

• Local Edge Detection was much studied in the 1970s and early 80s (Sobel, Rosenfeld, Binford-Horn, Marr-Hildreth, Canny …)

• Edge linking exploiting curvilinear continuity was studied as well (Rosenfeld, Zucker, Horn, Ullman …)

• In the 1980s, several authors argued for perceptual organization as a precursor to recognition (Binford, Witkin and Tennebaum, Lowe, Jacobs …)

Page 9: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

9

However in the 90s …

1. We realized that there was more to images than edges• Biologically inspired filtering approaches (Bergen & Adelson,

Malik & Perona..)

• Pixel based representations for recognition (Turk & Pentland, Murase & Nayar, LeCun …)

2. We lost faith in the ability of bottom-up vision• Do minimal bottom up processing , e.g. tiled orientation

histograms don’t even assume that linked contours or junctions can be extracted

• Matching with memory of previously seen objects then becomes the primary engine for parsing an image.

?

Page 10: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

10

At Berkeley, we took a contrary view…

1. Collect Data Set of Human segmented images

2. Learn Local Boundary Model for combining brightness, color and texture

3. Global framework to capture closure, continuity

4. Detect and localize junctions

5. Integrate low, mid and high-level information for grouping and figure-ground segmentation

Page 11: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

11D. Martin, C. Fowlkes, D. Tal, J. Malik. "A Database of Human Segmented Natural Images and its

Application to Evaluating Segmentation Algorithms and Measuring Ecological Statistics", ICCV, 2001

Berkeley Segmentation DataSet [BSDS]

Page 12: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

12

Page 13: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

13

Contour detection ~1970

13

Page 14: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

14

Contour detection ~1990

14

Page 15: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

15

Contour detection ~2004

15

Page 16: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

16

Contour detection ~2008 (gray)

16

Page 17: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

17

Contour detection ~2008 (color)

17

Page 18: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

18

Outline

1. Collect Data Set of Human segmented images

2. Learn Local Boundary Model for combining brightness, color and texture

3. Global framework to capture closure, continuity

4. Detect and localize junctions

5. Integrate low, mid and high-level information for grouping and figure-ground segmentation

Page 19: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

19

Contours can be defined by any of a number of cues (P. Cavanagh)

Page 20: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

20Grill-Spector et al. , Neuron 1998

Objects from disparityObjects from texture

Objects from luminance

Cue-Invariant Representations

Line drawings

Gray level photographs

Objects from motion

Page 21: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

21

Martin, Fowlkes, Malik PAMI 04Image

Boundary Cues

Model

Pb

Brightness

Color

Texture

Challenges: texture cue, cue combination Goal: learn the posterior probability of a boundary Pb(x,y,) from local information only

Cue Combination

Page 22: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

22

Individual Features

• 1976 CIE L*a*b* colorspace• Brightness Gradient BG(x,y,r,)

– Difference of L* distributions

• Color Gradient CG(x,y,r,)– Difference of a*b* distributions

• Texture Gradient TG(x,y,r,)– Difference of distributions of

V1-like filter responses

r(x,y)

These are combined using logistic regression

Page 23: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

23

Various Cue Combinations

Page 24: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

24

Outline

1. Collect Data Set of Human segmented images

2. Learn Local Boundary Model for combining brightness, color and texture

3. Global framework to capture closure, continuity

4. Detect and localize junctions

5. Integrate low, mid and high-level information for grouping and figure-ground segmentation

Page 25: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

25

Exploiting global constraints:Image Segmentation as Graph Partitioning

Build a weighted graph G=(V,E) from image

V: image pixels

E: connections between pairs of nearby pixels

Partition graph so that similarity within group is large and similarity between groups is small -- Normalized Cuts [Shi & Malik 97]

Page 26: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

26

Wij small when intervening contour strong, small when weak..

Cij = max Pb(x,y) for (x,y) on line segment ij; Wij = exp ( - Cij /

Page 27: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

27

Normalized Cuts as a Spring-Mass system

• Each pixel is a point mass; each connection is a spring:

• Fundamental modes are generalized eigenvectors of

(D - W) x = Dx

DyyWD =− )(

QuickTime™ and aYUV420 codec decompressor

are needed to see this picture.

Page 28: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

28

Eigenvectors carry contour information

Page 29: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

29

Page 30: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

30

We do not try to find regions from the eigenvectors, so we avoid the “broken sky” artifacts of Ncuts ..

Page 31: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

31

The Benefits of GlobalizationMaire, Arbelaez, Fowlkes, Malik, CVPR 08

Page 32: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

32

Comparison to other approaches

Page 33: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

33

Page 34: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

34

Outline

1. Collect Data Set of Human segmented images

2. Learn Local Boundary Model for combining brightness, color and texture

3. Global framework to capture closure, continuity

4. Detect and localize junctions

5. Integrate low, mid and high-level information for grouping and figure-ground segmentation

Page 35: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

35

Detecting Junctions

Page 36: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

36

Page 37: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

37

Benchmarking corner detection

Page 38: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

38

Page 39: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

39

Better object recognition using previous version of Pb

• Ferrari, Fevrier, Jurie and Schmid (PAMI 08)

• Shotton, Blake and Cipolla (PAMI 08)

Page 40: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

40

Outline

1. Collect Data Set of Human segmented images2. Learn Local Boundary Model for combining

brightness, color and texture3. Global framework to capture closure, continuity4. Detect and localize junctions5. Integrate low, mid and high-level cues for

grouping and figure-ground segmentation1. Ren, Fowlkes, Malik, IJCV ‘082. Fowlkes, Martin, Malik, JOV ‘073. Ren, Fowlkes, Malik, ECCV ‘06

Page 41: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

41

Power laws for contour lengths

Page 42: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

42

Convexity(p) = log(ConvF / ConvG)

Convexity [Metzger 1953, Kanizsa and Gerbino 1976]

ConvG = percentage of straight lines that lie completely within region G

pG F

Page 43: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

43

Figural regions tend to be convex

Page 44: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

44

LowerRegion(p) = θG

Lower Region[Vecera, Vogel & Woodman 2002]

θ

p

center of mass

Page 45: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

45

Figural regions tend to lie below ground regions

Page 46: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

46

Ren, Fowlkes, Malik ECCV ‘06

• Human subjects label groundtruth figure/ground assignments in natural images.

• Shapemes encode high-level knowledge in a generic way, capturing local figure/ground cues.

• A conditional random field incorporates junction cues and enforces global consistency.

Grouping /Segmentation

Figure/GroundOrganization

Object and Scene Recognition

Page 47: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

47

Forty years of contour detection

47

Roberts(1965)

Sobel(1968)

Prewitt(1970)

MarrHildreth(1980)

Canny(1986)

PeronaMalik(1990)

MartinFowlkesMalik(2004)

MaireArbelaezFowlkesMalik(2008)

Page 48: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

48

Forty years of contour detection

48

???(2013)

Roberts(1965)

Sobel(1968)

Prewitt(1970)

MarrHildreth(1980)

Canny(1986)

PeronaMalik(1990)

MartinFowlkesMalik(2004)

MaireArbelaezFowlkesMalik(2008)

Page 49: 1 Contours and Junctions in Natural Images Jitendra Malik University of California at Berkeley (with Jianbo Shi, Thomas Leung, Serge Belongie, Charless.

49

Curvilinear Grouping

• Boundaries are smooth in nature!

• A number of associated visual phenomena

Good continuation Visual completion Illusory contours