Motion Estimation Lecture 6 Announcement - Project proposal due - - PowerPoint PPT Presentation
Motion Estimation Lecture 6 Announcement - Project proposal due - - PowerPoint PPT Presentation
Motion Estimation Lecture 6 Announcement - Project proposal due on October 16 (next Wednesday) - Come to our office hours to discuss - My OH this week: tomorrow noon - Kevin Zakka started course notes (see Piazza) - bonus points for
Announcement
- Project proposal due on October 16 (next Wednesday)
- Come to our office hours to discuss
- My OH this week: tomorrow noon
- Kevin Zakka started course notes (see Piazza) - bonus points for contributing
What will you take home today?
Optical Flow What is it and why do you care? Assumptions Formulating the optimization problem Solving it Scene Flow Learning-based Approaches to Estimating Motion
Optical Flow - What is it?
- J. J. Gibson, The Ecological Approach to Visual Perception
Optical Flow - What is it?
Image Credit: Wikipedia. Optical Flow.
Optical flow - What is it?
Motion field = 2D motion field representing the projection of the 3D motion of points in the scene onto the image plane.
- B. Horn, Robot Vision, MIT Press
Optical flow - What is it?
Optical flow = 2D velocity field describing the apparent motion in the images.
- B. Horn, Robot Vision, MIT Press
What is the motion field? What is the apparent motion?
Lambertian (matte) ball rotating in 3D What does the 2D motion field look like? What does the 2D optical flow field look like?
Image source: http://www.evl.uic.edu/aej/488/lecture12.html
Slide Credit: Michael Black
What is the motion field? What is the apparent motion?
Stationary Lambertian (matte) ball What does the 2D motion field look like? What does the 2D optical flow field look like?
Image source: http://www.evl.uic.edu/aej/488/lecture12.html
Moving Light Source Slide Credit: Michael Black
Optical flow - What is it?
Motion Displacement of all image pixels
Key Image pixel value at time t and Location π² = π¦, π§ : π½(π¦, π§, π’) π£ π¦, π§ horizontal component π€ π¦, π§ vertical component Slide Credit: Michael Black
Optical Flow - What is it good for?
Painterly effect
Slide Credit: Michael Black
Optical Flow - What is it good for?
Face morphing in matrix reloaded
Slide Credit: Michael Black
Optical Flow - What is it good for?
Slide Credit: Michael Black
Optical Flow - What is it good for?
Slide Credit: Michael Black
Optical Flow - What is it good for?
Optical Flow - What is it good for?
Optical Flow
} { ), (
i
p t I
1
p
2
p
3
p
4
p
1
v !
2
v !
3
v !
4
v !
} { i v !
Velocity vectors
Slide Credit: CS223b β Sebastian Thrun
Compute Optical Flow
Goal Compute the apparent 2D image motion of pixels from one image frame to the next in a video sequence.
Compute Optical Flow
Step 1 - Assumptions Step 2 - Objective Function
Source: Wikipedia.
Step 3 - Optimization
Assumption 1 - Brightness Constancy
π½ π¦ + π£, π§ + π€, π’ + 1 = π½(π¦, π§, π’) Slide Credit: Michael Black
Assumption 2 - Spatial Smoothness
Slide Credit: Michael Black
Assumption 3 β Temporal Coherence
Slide Credit: Michael Black
Compute Optical Flow
Step 1 - Assumptions Step 2 - Objective Function
Source: Wikipedia.
Optimization Function
πΉ/ π―, π° = 2
3
(π½ π¦3 + π£3, π§3 + π€3, π’ + 1 β π½ π¦, π§, π’ )5
New Assumption: Gaussian noise
Optimization Function
πΉ6 π―, π° = 2
7β9(3)
(π£3 β π£7)5 + 2
7β9(3)
π€3 β π€7
5
New Assumptions: Flow field smooth Gaussian Deviations First order smoothness good enough Flow derivative approximated by first differences
Optimization Function
πΉ π£, π€ = β3(π½ π¦3 + π£3, π§3 + π€3, π’ + 1 β π½ π¦, π§, π’ )5 + π β7β9(3)(π£3 β π£7)5 + β7β9(3) π€3 β π€7
5
Compute Optical Flow
Step 1 - Assumptions Step 2 - Objective Function
Source: Wikipedia.
Step 3 - Optimization
Linear Approximation
πΉ π£, π€ = β3(π½ π¦3 + π£3, π§3 + π€3, π’ + 1 β π½ π¦, π§, π’ )5 + π β7β9(3)(π£3 β π£7)5 + β7β9(3) π€3 β π€7 5 π½ π¦, π§, π’ + ππ¦ π ππ¦ π½ π¦, π§, π’ + ππ§ π ππ§ π½ π¦, π§, π’ + ππ’ π ππ’ π½ π¦, π§, π’ β π½ π¦, π§, π’ = 0 π£3 = ππ¦, π€3 = ππ§, ππ’ = 1
Optical Flow Constraint Equation
π£ π ππ¦ π½ π¦, π§, π’ + π€ π ππ§ π½ π¦, π§, π’ + π ππ’ π½ π¦, π§, π’ = 0 π½?π£ + π½@π€ + π½A = 0 New Assumptions: Flow is small Image is differentiable First order Taylor series is a good approximation
Optical Flow Constraint Equation
Aperture Problem
Slide Credit: CS223b β Sebastian Thrun
Aperture Problem
Slide Credit: CS223b β Sebastian Thrun
What are the constraint lines?
A B C π€ π£
Multiple Constraints
Slide Credit: Michael Black
How do we solve this optimization problem?
How do we solve this optimization problem?
How do we solve this optimization problem?
How do we solve this optimization problem?
Image Gradient Examples - Edge
Image Gradient Examples β Low texture
Image Gradient Examples β Low texture
Bag of tricks
Small motion assumption
Bag of tricks
Reduce Resolution
* From Khurram Hassan-Shafique CAP5415 Computer Vision 2003
image It-1 image I Gaussian pyramid of image It-1 Gaussian pyramid of image I image I image It-1 u=10 pixels u=5 pixels u=2.5 pixels u=1.25 pixels
Scene Flow
What are the main challenges with this traditional formulation?
1.
Assumptions
- a. Brightness constancy
- b. Small motion
- c. Etc
2.
Occlusions
3.
Large motion
Learning-based approaches
1.
Since 2015
2.
Availability of data
FlowNet - Learning Optical Flow with Convolutional Networks
Alexey Dosovitskiy, Philipp Fischer, Eddy Ilg, P. HΓ€usser, C. HazΔ±rbaΕ, V. Golkov, P. Smagt, D. Cremers, Thomas Brox. IEEE International Conference on Computer Vision (ICCV), 2015