motion estimation
play

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


  1. Motion Estimation Lecture 6

  2. 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

  3. 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

  4. Optical Flow - What is it? J. J. Gibson, The Ecological Approach to Visual Perception

  5. Optical Flow - What is it? Image Credit: Wikipedia. Optical Flow.

  6. 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.

  7. Optical flow - What is it? B. Horn, Robot Vision, MIT Press Optical flow = 2D velocity field describing the apparent motion in the images.

  8. 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

  9. 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

  10. 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

  11. Optical Flow - What is it good for? Painterly effect Slide Credit: Michael Black

  12. Optical Flow - What is it good for? Face morphing in matrix reloaded Slide Credit: Michael Black

  13. Optical Flow - What is it good for? Slide Credit: Michael Black

  14. Optical Flow - What is it good for? Slide Credit: Michael Black

  15. Optical Flow - What is it good for?

  16. 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

  17. Compute Optical Flow Goal Compute the apparent 2D image motion of pixels from one image frame to the next in a video sequence.

  18. Compute Optical Flow Step 1 - Assumptions Step 2 - Objective Function Step 3 - Optimization Source: Wikipedia.

  19. Assumption 1 - Brightness Constancy 𝐽 𝑦 + 𝑣, 𝑧 + 𝑀, 𝑒 + 1 = 𝐽(𝑦, 𝑧, 𝑒) Slide Credit: Michael Black

  20. Assumption 2 - Spatial Smoothness Slide Credit: Michael Black

  21. Assumption 3 – Temporal Coherence Slide Credit: Michael Black

  22. Compute Optical Flow Step 1 - Assumptions Step 2 - Objective Function Source: Wikipedia.

  23. Optimization Function (𝐽 𝑦 3 + 𝑣 3 , 𝑧 3 + 𝑀 3 , 𝑒 + 1 βˆ’ 𝐽 𝑦, 𝑧, 𝑒 ) 5 𝐹 / 𝐯, 𝐰 = 2 3 New Assumption: Gaussian noise

  24. 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

  25. Optimization Function 𝐹 𝑣, 𝑀 = βˆ‘ 3 (𝐽 𝑦 3 + 𝑣 3 , 𝑧 3 + 𝑀 3 , 𝑒 + 1 βˆ’ 𝐽 𝑦, 𝑧, 𝑒 ) 5 + πœ‡ βˆ‘ 7∈9(3) (𝑣 3 βˆ’ 𝑣 7 ) 5 + βˆ‘ 7∈9(3) 𝑀 3 βˆ’ 𝑀 7 5

  26. Compute Optical Flow Step 1 - Assumptions Step 2 - Objective Function Step 3 - Optimization Source: Wikipedia.

  27. 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

  28. Optical Flow Constraint Equation 𝑣 πœ€ πœ€π‘¦ 𝐽 𝑦, 𝑧, 𝑒 + 𝑀 πœ€ πœ€π‘§ 𝐽 𝑦, 𝑧, 𝑒 + πœ€ πœ€π‘’ 𝐽 𝑦, 𝑧, 𝑒 = 0 𝐽 ? 𝑣 + 𝐽 @ 𝑀 + 𝐽 A = 0 New Assumptions: Flow is small Image is differentiable First order Taylor series is a good approximation

  29. Optical Flow Constraint Equation

  30. Aperture Problem Slide Credit: CS223b – Sebastian Thrun

  31. Aperture Problem Slide Credit: CS223b – Sebastian Thrun

  32. What are the constraint lines? 𝑀 A C B 𝑣

  33. Multiple Constraints Slide Credit: Michael Black

  34. How do we solve this optimization problem?

  35. How do we solve this optimization problem?

  36. How do we solve this optimization problem?

  37. How do we solve this optimization problem?

  38. Image Gradient Examples - Edge

  39. Image Gradient Examples – Low texture

  40. Image Gradient Examples – Low texture

  41. Bag of tricks Small motion assumption

  42. Bag of tricks Reduce Resolution * From Khurram Hassan-Shafique CAP5415 Computer Vision 2003

  43. 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

  44. Scene Flow

  45. What are the main challenges with this traditional formulation? 1. Assumptions a. Brightness constancy b. Small motion c. Etc 2. Occlusions 3. Large motion

  46. Learning-based approaches 1. Since 2015 2. Availability of data

  47. 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

  48. FlowNet - Learning Optical Flow with Convolutional Networks

  49. Motion-based Object Segmentation based on Dense RGB-D Scene Flow

  50. Motion-based Object Segmentation based on Dense RGB-D Scene Flow

  51. Motion-based Object Segmentation based on Dense RGB-D Scene Flow

  52. Motion-based Object Segmentation based on Dense RGB-D Scene Flow

  53. Motion-based Object Segmentation based on Dense RGB-D Scene Flow

Recommend


More recommend