Top Banner
Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute of Technology Neural Information Processing Systems 2006
72

Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Dec 14, 2015

Download

Documents

Alia Beauford
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: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Analysis of Contour Motions

Ce Liu William T. Freeman Edward H. Adelson

Computer Science and Artificial Intelligence Laboratory

Massachusetts Institute of Technology

Neural Information Processing Systems 2006

Page 2: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Visual Motion Analysis in Computer Vision

• Motion analysis is essential in– Video processing – Geometry reconstruction– Object tracking, segmentation and recognition– Graphics applications

• Is motion analysis solved?

• Do we have good representation for motion analysis?

• Is it computationally feasible to infer the representation from the raw video data?

• What is a good representation for motion?

Page 3: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Seemingly Simple Examples

Kanizsa square

From real video

Page 4: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Output from the State-of-the-Art Optical Flow Algorithm

T. Brox et al. High accuracy optical flow estimation based on a theory for warping. ECCV 2004

Optical flow fieldKanizsa square

Page 5: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Output from the State-of-the-Art Optical Flow Algorithm

T. Brox et al. High accuracy optical flow estimation based on a theory for warping. ECCV 2004

Optical flow field

Dancer

Page 6: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Optical flow representation: aperture problem

Corners Lines Flat regions

Spurious junctions Boundary ownership Illusory boundaries

Page 7: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Optical Flow Representation

Corners Lines Flat regions

Spurious junctions Boundary ownership Illusory boundaries

We need motion representation beyond pixel level!

Page 8: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Layer Representation

• Video is a composite of layers

• Layer segmentation assumes sufficient textures for each layer to represent motion

• A true success?

J. Wang & E. H. Adelson 1994

Y. Weiss & E. H. Adelson 1994

Achieved with the help of spatial segmentation

Page 9: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Layer Representation

• Video is a composite of layers

• Layer segmentation assumes sufficient textures for each layer to represent motion

• A true success?

J. Wang & E. H. Adelson 1994

Y. Weiss & E. H. Adelson 1994

Achieved with the help of spatial segmentation

Layer representation is good, but the existing layersegmentation algorithms cannot find the right layersfor textureless objects

Page 10: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Challenge: Textureless Objects under Occlusion

• Corners are not always trustworthy (junctions)

• Flat regions do not always move smoothly (discontinuous at illusory boundaries)

• How about boundaries?– Easy to detect and track for textureless

objects

– Able to handle junctions with illusory boundaries

Page 11: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Analysis of Contour Motions

• Our approach: simultaneous grouping and motion analysis– Multi-level contour representation

– Junctions are appropriated handled

– Formulate graphical model that favors good contour and motion criteria

– Inference using importance sampling

• Contribution– An important component in motion analysis toolbox for

textureless objects under occlusion

Page 12: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Three Levels of Contour Representation

– Edgelets: edge particles

– Boundary fragments: a chain of edgelets with small curvatures

– Contours: a chain of boundary fragments

Forming boundary fragments: easy (for textureless objects)

Forming contours: hard (the focus of our work)

Page 13: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Overview of our system

1. Extract boundary fragments 2. Edgelet tracking with uncertainty.

3. Boundary grouping and illusory boundary 4. Motion estimation based on the grouping

Page 14: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Forming Boundary Fragments

• Boundary fragments extraction in frame 1– Steerable filters to obtain edge energy for each

orientation band– Spatially trace boundary fragments– Boundary fragments: lines or curves with small curvature

• Temporal edgelet tracking with uncertainties

(a) (b)

(c) (d)

– Frame 1: edgelet (x, y, )

– Frame 2: orientation energy of

– A Gaussian pdf is fit with the weight of orientation energy

– 1D uncertainty of motion (even for T-junctions)

Page 15: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Forming Contours: Boundary Fragments Grouping

• Grouping representation: switch variables (attached to every end of the fragments)– Exclusive: one end connects to at most one other end

– Reversible: if end (i,ti) connects to (j,tj), then (j,tj) connects to (i,ti)

Arbitrarily possible connection

1b 2b

3b

Reversibility

A legal contour grouping

Another legal contour grouping

0

1

0

1

1

0

Page 16: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Local Spatial-Temporal Cues for Grouping

Motion stimulus

Illusory boundaries corresponding to the groupings (generated by spline interpolation)

Page 17: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Local spatial-temporal cues for grouping: (a) Motion similarity

Motion stimulus

xv

yv

Velocity space

KL( ) < KL( )

The grouping with higher motion similarity is favored

Page 18: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Local spatial-temporal cues for grouping: (b) Curve smoothness

Motion stimulus

The grouping with smoother and shorter illusory boundary is favored

Page 19: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Local spatial-temporal cues for grouping: (c) Contrast consistency

Motion stimulus

The grouping with consistent local contrast is favored

Page 20: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

The Graphical Model for Grouping

• Affinity metric terms

– (a) Motion similarity

– (b) Curve smoothness

– (c) Contrast consistency

• The graphical model for grouping

1b

2b

),( 1111

),( 2121

1b

r

2b

reversibilityaffinity

11h

12h

21h

22h

1b

2b

no self-intersection

Page 21: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Motion estimation for grouped contours

• Gaussian MRF (GMRF) within a boundary fragment

• The motions of two end edgelets are similar if they are grouped together

• The graphical model of motion: joint Gaussian given the grouping

This problem is solved in early work: Y. Weiss, Interpreting images by propagating Bayesian beliefs, NIPS, 1997.

Page 22: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Inference

• Two-step inference– Grouping (switch variables)

– Motion based on grouping (easy, least square)

• Grouping: importance sampling to estimate the marginal of the switch variables– Bidirectional proposal density

– Toss the sample if self-intersection is detected

• Obtain the optimal grouping from the marginal

Page 23: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

1b2b

3b4b

Why bidirectional proposal in sampling?

Page 24: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Why bidirectional proposal in sampling?

1b2b

3b4b

b1b2: 0.39

b1b3: 0.01

b1b4: 0.60

Normalized affinity metrics

b4b1: 0.20

b4b2: 0.05

b4b3: 0.85

b2b1: 0.50

b2b3: 0.45

b2b4: 0.05

b3b1: 0.01

b3b2: 0.45

b3b4: 0.54

b1b2: 0.1750

b1b3: 0.0001

b1b4: 0.1200

Affinity metric of the switch variable (darker, thicker means larger affinity)

Bidirectional proposal

Page 25: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Why bidirectional proposal in sampling?

b1b2: 0.39

b1b3: 0.01

b1b4: 0.60

Normalized affinity metrics Bidirectional proposal(Normalized)

b4b1: 0.20

b4b2: 0.05

b4b3: 0.85

b2b1: 0.50

b2b3: 0.45

b2b4: 0.05

b3b1: 0.01

b3b2: 0.45

b3b4: 0.54

b1b2: 0.62

b1b3: 0.00

b1b4: 0.38

Bidirectional proposal of the switch variable (darker, thicker means larger affinity)

1b2b

3b4b

Page 26: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Example of Sampling

Motion stimulusSelf intersection

Page 27: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Example of Sampling

Motion stimulus

A valid grouping

Page 28: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Example of Sampling

Motion stimulus

More valid groupings

Page 29: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Example of Sampling

Motion stimulus

More valid groupings

Page 30: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

From Affinity to Marginals

Affinity metric of the switch variable (darker, thicker means larger affinity)

Motion stimulus

Page 31: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

From Affinity to Marginals

Marginal distribution of the switch variable (darker, thicker means larger affinity)

Motion stimulus

Greedy algorithm to search for the best grouping based on the marginals

Page 32: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Experiments

• All the results are generated using the same parameter settings

• Running time depends on the number of boundary fragments, varying from ten seconds to a few minutes in MATLAB

Page 33: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Frame 1

Two Moving Bars

Page 34: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Frame 2

Two Moving Bars

Page 35: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Extracted boundary fragments. The green circles are the boundary fragment end points.

Two Moving Bars

Page 36: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Optical flow from Lucas-Kanade algorithm. The flow vectors are only plotted at the edgelets

Two Moving Bars

Page 37: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Estimated motion by our system after grouping

Two Moving Bars

Page 38: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Boundary grouping and illusory boundaries (frame 1). The fragments belonging to the same contour are

plotted in one color.

Two Moving Bars

Page 39: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Boundary grouping and illusory boundaries (frame 2). The fragments belonging to the same contour are

plotted in one color.

Two Moving Bars

Page 40: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Kanizsa Square

Page 41: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Frame 1

Page 42: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Frame 2

Page 43: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Extracted boundary fragments

Page 44: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Optical flow from Lucas-Kanade algorithm

Page 45: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Estimated motion by our system, after grouping

Page 46: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Boundary grouping and illusory boundaries (frame 1)

Page 47: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Boundary grouping and illusory boundaries (frame 2)

Page 48: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Dancer

Page 49: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Frame 1

Page 50: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Frame 2

Page 51: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Extracted boundary fragments

Page 52: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Optical flow from Lucas-Kanade

algorithm

Page 53: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Estimated motion by our system, after

grouping

Page 54: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Lucas-Kanade flow field

Estimated motion by our system, after grouping

Page 55: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Boundary grouping and illusory boundaries

(frame 1)

Page 56: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Boundary grouping and illusory boundaries

(frame 2)

Page 57: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Rotating Chair

Page 58: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Frame 1

Page 59: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Frame 2

Page 60: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Extracted boundary fragments

Page 61: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Estimated flow field from Brox et al.

Page 62: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Estimated motion by our system, after grouping

Page 63: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Boundary grouping and illusory boundaries (frame 1)

Page 64: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Boundary grouping and illusory boundaries (frame 2)

Page 65: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Conclusion

• A contour-based representation to estimate motion for textureless objects under occlusion

• Motion ambiguities are preserved and resolved through appropriate contour grouping

• An important component in motion analysis toolbox

• To be combined with the classical motion estimation techniques to analyze complex scenes

Page 66: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Thanks!

Analysis of Contour Motions

Ce Liu William T. Freeman Edward H. Adelson

Computer Science and Artificial Intelligence LaboratoryMassachusetts Institute of Technology

http://people.csail.mit.edu/celiu/contourmotions/

Page 67: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Backup Slides

Page 68: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

1b2b

3b4b

Why bidirectional proposal in sampling?

Page 69: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Why bidirectional proposal in sampling?

1b2b

3b4b

b1b2: 0.39

b1b3: 0.01

b1b4: 0.60

Normalized affinity metrics

b4b1: 0.20

b4b2: 0.05

b4b3: 0.85

b2b1: 0.50

b2b3: 0.45

b2b4: 0.05

b3b1: 0.01

b3b2: 0.45

b3b4: 0.54

b1b2: 0.1750

b1b3: 0.0001

b1b4: 0.1200

Affinity metric of the switch variable (darker, thicker means larger affinity)

Bidirectional proposal

Page 70: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Why bidirectional proposal in sampling?

b1b2: 0.39

b1b3: 0.01

b1b4: 0.60

Normalized affinity metrics Bidirectional proposal(Normalized)

b4b1: 0.20

b4b2: 0.05

b4b3: 0.85

b2b1: 0.50

b2b3: 0.45

b2b4: 0.05

b3b1: 0.01

b3b2: 0.45

b3b4: 0.54

b1b2: 0.62

b1b3: 0.00

b1b4: 0.38

Bidirectional proposal of the switch variable (darker, thicker means larger affinity)

1b2b

3b4b

Page 71: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Sampling Grouping (Switch Variables)

Motion stimulus

Page 72: Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.

Lucas-Kanade flow field

Estimated motion by our system, after grouping