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 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? B. Horn, Robot Vision, MIT Press Motion field = 2D motion field representing the projection of the 3D motion of points in the scene onto the image plane.
Optical flow - What is it? B. Horn, Robot Vision, MIT Press Optical flow = 2D velocity field describing the apparent motion in the images.
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? Slide Credit: Michael Black Image source: http://www.evl.uic.edu/aej/488/lecture12.html
What is the motion field? What is the apparent motion? Stationary Lambertian (matte) ball Moving Light Source What does the 2D motion field look like? What does the 2D optical flow field look like? Slide Credit: Michael Black Image source: http://www.evl.uic.edu/aej/488/lecture12.html
Optical flow - What is it? Motion Displacement of all image pixels Key Image pixel value at time t and π£ π¦, π§ horizontal component Location π² = π¦, π§ : π€ π¦, π§ 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? ! p v 2 2 ! p v 3 ! 3 p v 1 1 Optical Flow ! p v 4 4 ! I ( t ), { p } { i v } Velocity vectors i 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 Step 3 - Optimization Source: Wikipedia.
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 (π½ π¦ 3 + π£ 3 , π§ 3 + π€ 3 , π’ + 1 β π½ π¦, π§, π’ ) 5 πΉ / π―, π° = 2 3 New Assumption: Gaussian noise
Optimization Function (π£ 3 β π£ 7 ) 5 + 5 πΉ 6 π―, π° = 2 2 π€ 3 β π€ 7 7β9(3) 7β9(3) 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 Step 3 - Optimization Source: Wikipedia.
Linear Approximation πΉ π£, π€ = β 3 (π½ π¦ 3 + π£ 3 , π§ 3 + π€ 3 , π’ + 1 β π½ π¦, π§, π’ ) 5 + π β 7β9(3) (π£ 3 β π£ 7 ) 5 + β 7β9(3) π€ 3 β π€ 7 5 π£ 3 = ππ¦, π€ 3 = ππ§, ππ’ = 1 π½ π¦, π§, π’ + ππ¦ π ππ¦ π½ π¦, π§, π’ + ππ§ π ππ§ π½ π¦, π§, π’ + ππ’ π ππ’ π½ π¦, π§, π’ β π½ π¦, π§, π’ = 0
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 C B π£
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
u=1.25 pixels u=2.5 pixels u=5 pixels u=10 pixels image I t-1 image I image I image I t-1 Gaussian pyramid of image I t-1 Gaussian pyramid of image I
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
FlowNet - Learning Optical Flow with Convolutional Networks
Motion-based Object Segmentation based on Dense RGB-D Scene Flow
Motion-based Object Segmentation based on Dense RGB-D Scene Flow
Motion-based Object Segmentation based on Dense RGB-D Scene Flow
Motion-based Object Segmentation based on Dense RGB-D Scene Flow
Motion-based Object Segmentation based on Dense RGB-D Scene Flow
Recommend
More recommend