Motion Estimation Lecture 6 Announcement - Project proposal due - - PowerPoint PPT Presentation

β–Ά
motion estimation
SMART_READER_LITE
LIVE PREVIEW

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


slide-1
SLIDE 1

Motion Estimation

Lecture 6

slide-2
SLIDE 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
slide-3
SLIDE 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

slide-4
SLIDE 4

Optical Flow - What is it?

  • J. J. Gibson, The Ecological Approach to Visual Perception
slide-5
SLIDE 5

Optical Flow - What is it?

Image Credit: Wikipedia. Optical Flow.

slide-6
SLIDE 6

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
slide-7
SLIDE 7

Optical flow - What is it?

Optical flow = 2D velocity field describing the apparent motion in the images.

  • B. Horn, Robot Vision, MIT Press
slide-8
SLIDE 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?

Image source: http://www.evl.uic.edu/aej/488/lecture12.html

Slide Credit: Michael Black

slide-9
SLIDE 9

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

slide-10
SLIDE 10

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

slide-11
SLIDE 11

Optical Flow - What is it good for?

Painterly effect

Slide Credit: Michael Black

slide-12
SLIDE 12

Optical Flow - What is it good for?

Face morphing in matrix reloaded

Slide Credit: Michael Black

slide-13
SLIDE 13

Optical Flow - What is it good for?

Slide Credit: Michael Black

slide-14
SLIDE 14

Optical Flow - What is it good for?

Slide Credit: Michael Black

slide-15
SLIDE 15

Optical Flow - What is it good for?

slide-16
SLIDE 16

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

slide-17
SLIDE 17

Compute Optical Flow

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

slide-18
SLIDE 18

Compute Optical Flow

Step 1 - Assumptions Step 2 - Objective Function

Source: Wikipedia.

Step 3 - Optimization

slide-19
SLIDE 19

Assumption 1 - Brightness Constancy

𝐽 𝑦 + 𝑣, 𝑧 + 𝑀, 𝑒 + 1 = 𝐽(𝑦, 𝑧, 𝑒) Slide Credit: Michael Black

slide-20
SLIDE 20

Assumption 2 - Spatial Smoothness

Slide Credit: Michael Black

slide-21
SLIDE 21

Assumption 3 – Temporal Coherence

Slide Credit: Michael Black

slide-22
SLIDE 22

Compute Optical Flow

Step 1 - Assumptions Step 2 - Objective Function

Source: Wikipedia.

slide-23
SLIDE 23

Optimization Function

𝐹/ 𝐯, 𝐰 = 2

3

(𝐽 𝑦3 + 𝑣3, 𝑧3 + 𝑀3, 𝑒 + 1 βˆ’ 𝐽 𝑦, 𝑧, 𝑒 )5

New Assumption: Gaussian noise

slide-24
SLIDE 24

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

slide-25
SLIDE 25

Optimization Function

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

5

slide-26
SLIDE 26

Compute Optical Flow

Step 1 - Assumptions Step 2 - Objective Function

Source: Wikipedia.

Step 3 - Optimization

slide-27
SLIDE 27

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

slide-28
SLIDE 28

Optical Flow Constraint Equation

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

slide-29
SLIDE 29

Optical Flow Constraint Equation

slide-30
SLIDE 30

Aperture Problem

Slide Credit: CS223b – Sebastian Thrun

slide-31
SLIDE 31

Aperture Problem

Slide Credit: CS223b – Sebastian Thrun

slide-32
SLIDE 32

What are the constraint lines?

A B C 𝑀 𝑣

slide-33
SLIDE 33

Multiple Constraints

Slide Credit: Michael Black

slide-34
SLIDE 34

How do we solve this optimization problem?

slide-35
SLIDE 35

How do we solve this optimization problem?

slide-36
SLIDE 36

How do we solve this optimization problem?

slide-37
SLIDE 37

How do we solve this optimization problem?

slide-38
SLIDE 38

Image Gradient Examples - Edge

slide-39
SLIDE 39

Image Gradient Examples – Low texture

slide-40
SLIDE 40

Image Gradient Examples – Low texture

slide-41
SLIDE 41

Bag of tricks

Small motion assumption

slide-42
SLIDE 42

Bag of tricks

Reduce Resolution

* From Khurram Hassan-Shafique CAP5415 Computer Vision 2003

slide-43
SLIDE 43

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

slide-44
SLIDE 44

Scene Flow

slide-45
SLIDE 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

slide-46
SLIDE 46

Learning-based approaches

1.

Since 2015

2.

Availability of data

slide-47
SLIDE 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

slide-48
SLIDE 48

FlowNet - Learning Optical Flow with Convolutional Networks

slide-49
SLIDE 49

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

slide-50
SLIDE 50

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

slide-51
SLIDE 51

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

slide-52
SLIDE 52

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

slide-53
SLIDE 53

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