Optical_Flow
Optical_Flow
G. Johansson, “Visual Perception of Biological Motion and a Model For Its Analysis",
Perception and Psychophysics 14, 201-211, 1973.
Motion and perceptual organization
• Even “impoverished” motion data can evoke a
strong percept
G. Johansson, “Visual Perception of Biological Motion and a Model For Its Analysis",
Perception and Psychophysics 14, 201-211, 1973.
Seeing motion from a static picture?
http://www.ritsumei.ac.jp/~akitaoka/index-e.html
More examples
How is this possible?
• The true mechanism is to
be revealed
• FMRI data suggest that
illusion is related to some
component of eye
movements
• We don’t expect computer
vision to “see” motion from
these stimuli, yet
What do you see?
In fact, …
The cause of motion
• Three factors in imaging process
– Light
– Object
– Camera
• Varying either of them causes motion
– Static camera, moving objects (surveillance)
– Moving camera, static scene (3D capture)
– Moving camera, moving scene (sports, movie)
– Static camera, moving objects, moving light (time lapse)
Motion scenarios (priors)
Moving camera, moving scene Static camera, moving scene, moving light
We still don’t touch these areas
How can we recover motion?
Recovering motion
• Feature-tracking
– Extract visual features (corners, textured areas) and “track” them over
multiple frames
• Optical flow
– Recover image motion at each pixel from spatio-temporal image
brightness variations (optical flow)
I(x,y,t) I(x,y,t+1)
I(x,y,t) I(x,y,t+1)
I ( x + u, y + v, t + 1) ≈ I ( x, y , t ) + I x ⋅ u + I y ⋅ v + I t
I ( x + u, y + v, t + 1) − I ( x, y , t ) = + I x ⋅ u + I y ⋅ v + I t
I x ⋅ u + I y ⋅ v + I t ≈ 0 → ∇I ⋅ [u v] + I t = 0
T
So:
The brightness constancy constraint
Can we use this equation to recover image motion (u,v) at each
pixel?
∇I ⋅ [u v] + I t = 0
T
(u+u’,v+v’)
(u’,v’)
edge
The aperture problem
Actual motion
The aperture problem
Perceived motion
The barber pole illusion
http://en.wikipedia.org/wiki/Barberpole_illusion
The barber pole illusion
http://en.wikipedia.org/wiki/Barberpole_illusion
Solving the ambiguity…
B. Lucas and T. Kanade. An iterative image registration technique with an application to stereo vision. In Proceedings of the
International Joint Conference on Artificial Intelligence, pp. 674–679, 1981.
31
Dealing with larger movements:
Iterative refinement Original (x,y) position
2. Compute (u,v) by
34
Coarse-to-fine optical flow estimation
image J1 image
image I2
u=1.25 pixels
u=2.5 pixels
u=5 pixels
image H
1 u=10 pixels image
image I2
38
Optical Flow Results
Ground Truth
Flow quality evaluation
• Middlebury flow page
– http://vision.middlebury.edu/flow/
Ming Ye
Electrical Engineering
University of Washington
49
Estimating Piecewise-Smooth Optical Flow
with Global Matching and Graduated Optimization
Problem Statement:
50
Approach: Matching-Based Global
Optimization
51
TT: Translating Tree
e∠ ( ) e|•| ( pix ) BA
e ( pix )
S3
BA 2.60 0.128 0.0724
S3 0.248 0.0167 0.00984
e∠ ( ) e|•| ( pix ) BA
e ( pix )
S3
BA 6.36 0.182 0.114
S3 2.60 0.0813 0.0507
53
YOS: Yosemite Fly-Through
54
TAXI: Hamburg Taxi
512x512
(Nagel)
max speed:
6.0 pix/frame
BA
• Key ideas
– By assuming brightness constancy, truncated Taylor
expansion leads to simple and fast patch matching across
frames
– Coarse-to-fine registration
– Global approach by former EE student Ming Ye