Computer Vision Optical Flow Marc Pollefeys COMP 256 Some slides and illustrations from L. Van Gool, T. Darell, B. Horn, Y. Weiss, P. Anandan, M. Black,

Slides:



Advertisements
Similar presentations
Bayesian Belief Propagation
Advertisements

Stereo matching Class 7 Read Chapter 7 of tutorial Tsukuba dataset.
Gratuitous Picture US Naval Artillery Rangefinder from World War I (1918)!!
Computer Vision Optical Flow
Motion Estimation I What affects the induced image motion? Camera motion Object motion Scene structure.
Scene Planes and Homographies class 16 Multiple View Geometry Comp Marc Pollefeys.
Projective structure from motion
Stereo. STEREOPSIS Reading: Chapter 11. The Stereopsis Problem: Fusion and Reconstruction Human Stereopsis and Random Dot Stereograms Cooperative Algorithms.
Announcements Quiz Thursday Quiz Review Tomorrow: AV Williams 4424, 4pm. Practice Quiz handout.
Computer Vision cmput 613 Sequential 3D Modeling from images using epipolar geometry and F 3D Modeling from images using epipolar geometry and F Martin.
Optical Flow Methods 2007/8/9.
Multiple View Geometry & Stereo
Computing F and rectification class 14 Multiple View Geometry Comp Marc Pollefeys.
Announcements Project1 artifact reminder counts towards your grade Demos this Thursday, 12-2:30 sign up! Extra office hours this week David (T 12-1, W/F.
Feature matching and tracking Class 5 Read Section 4.1 of course notes Read Shi and Tomasi’s paper on.
Computing motion between images
Multiple View Geometry
Optical Flow Brightness Constancy The Aperture problem Regularization Lucas-Kanade Coarse-to-fine Parametric motion models Direct depth SSD tracking.
Computer Vision Segmentation Marc Pollefeys COMP 256 Some slides and illustrations from D. Forsyth, T. Darrel,...
Announcements Project 1 test the turn-in procedure this week (make sure your folder’s there) grading session next Thursday 2:30-5pm –10 minute slot to.
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
Caltech, Oct Lihi Zelnik-Manor
Visual motion Many slides adapted from S. Seitz, R. Szeliski, M. Pollefeys.
Optical Flow Brightness Constancy The Aperture problem Regularization Lucas-Kanade Coarse-to-fine Parametric motion models Direct depth SSD tracking.
Assignment 2 Compute F automatically from image pair (putative matches, 8-point, 7-point, iterative, RANSAC, guided matching) (due by Wednesday 19/03/03)
Motion Computing in Image Analysis
Computer Vision Structure from motion Marc Pollefeys COMP 256 Some slides and illustrations from J. Ponce, A. Zisserman, R. Hartley, Luc Van Gool, …
Optical Flow Estimation
Lecture 19: Optical flow CS6670: Computer Vision Noah Snavely
Visual motion Many slides adapted from S. Seitz, R. Szeliski, M. Pollefeys.
Motion Estimation Today’s Readings Trucco & Verri, 8.3 – 8.4 (skip 8.3.3, read only top half of p. 199) Numerical Recipes (Newton-Raphson), 9.4 (first.
Motion Field and Optical Flow. Outline Motion Field and Optical Flow Definition, Example, Relation Optical Flow Constraint Equation Assumptions & Derivation,
Affine structure from motion
3D Rigid/Nonrigid RegistrationRegistration 1)Known features, correspondences, transformation model – feature basedfeature based 2)Specific motion type,
Matching Compare region of image to region of image. –We talked about this for stereo. –Important for motion. Epipolar constraint unknown. But motion small.
CSE473/573 – Stereo Correspondence
Optical Flow Digital Photography CSE558, Spring 2003 Richard Szeliski (notes cribbed from P. Anandan)
Computer Vision Multiple View Geometry & Stereo Marc Pollefeys COMP 256.
Announcements Project1 due Tuesday. Motion Estimation Today’s Readings Trucco & Verri, 8.3 – 8.4 (skip 8.3.3, read only top half of p. 199) Supplemental:
CSCE 641 Computer Graphics: Image Registration Jinxiang Chai.
Computer Vision Optical Flow Marc Pollefeys COMP 256 Some slides and illustrations from L. Van Gool, T. Darell, B. Horn, Y. Weiss, P. Anandan, M. Black,
Stereo matching Class 10 Read Chapter 7 Tsukuba dataset.
Motion and optical flow Thursday, Nov 20 Many slides adapted from S. Seitz, R. Szeliski, M. Pollefeys, S. Lazebnik.
Optical Flow Donald Tanguay June 12, Outline Description of optical flow General techniques Specific methods –Horn and Schunck (regularization)
Tzu ming Su Advisor : S.J.Wang MOTION DETAIL PRESERVING OPTICAL FLOW ESTIMATION 2013/1/28 L. Xu, J. Jia, and Y. Matsushita. Motion detail preserving optical.
Stereo Class 7 Read Chapter 7 of tutorial Tsukuba dataset.
Visual motion Many slides adapted from S. Seitz, R. Szeliski, M. Pollefeys.
Uses of Motion 3D shape reconstruction Segment objects based on motion cues Recognize events and activities Improve video quality Track objects Correct.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm Lecture #16.
Effective Optical Flow Estimation
Joint Tracking of Features and Edges STAN BIRCHFIELD AND SHRINIVAS PUNDLIK CLEMSON UNIVERSITY ABSTRACT LUCAS-KANADE AND HORN-SCHUNCK JOINT TRACKING OF.
Optical Flow. Distribution of apparent velocities of movement of brightness pattern in an image.
Miguel Tavares Coimbra
Motion Estimation Today’s Readings Trucco & Verri, 8.3 – 8.4 (skip 8.3.3, read only top half of p. 199) Newton's method Wikpedia page
Motion Estimation I What affects the induced image motion?
Motion Estimation Today’s Readings Trucco & Verri, 8.3 – 8.4 (skip 8.3.3, read only top half of p. 199) Newton's method Wikpedia page
Optical flow and keypoint tracking Many slides adapted from S. Seitz, R. Szeliski, M. Pollefeys.
Announcements Final is Thursday, March 18, 10:30-12:20 –MGH 287 Sample final out today.
Image Motion. The Information from Image Motion 3D motion between observer and scene + structure of the scene –Wallach O’Connell (1953): Kinetic depth.
Motion and optical flow
Motion and Optical Flow
Motion Extraction .
What have we learned so far?
Motion Estimation Today’s Readings
Filtering Things to take away from this lecture An image as a function
Announcements more panorama slots available now
Announcements Questions on the project? New turn-in info online
Announcements more panorama slots available now
Filtering An image as a function Digital vs. continuous images
Optical flow and keypoint tracking
Presentation transcript:

Computer Vision Optical Flow Marc Pollefeys COMP 256 Some slides and illustrations from L. Van Gool, T. Darell, B. Horn, Y. Weiss, P. Anandan, M. Black, K. Toyama

Computer Vision 2 last week: polar rectification

Computer Vision 3 Last week: polar rectification

Computer Vision 4 Stereo matching Optimal path (dynamic programming ) Similarity measure (SSD or NCC) Constraints epipolar ordering uniqueness disparity limit disparity gradient limit Trade-off Matching cost (data) Discontinuities (prior) (Cox et al. CVGIP’96; Koch’96; Falkenhagen´97; Van Meerbergen,Vergauwen,Pollefeys,VanGool IJCV‘02)

Computer Vision 5 Hierarchical stereo matching Downsampling (Gaussian pyramid) Disparity propagation Allows faster computation Deals with large disparity ranges ( Falkenhagen´97;Van Meerbergen,Vergauwen,Pollefeys,VanGool IJCV‘02)

Computer Vision 6 Disparity map image I(x,y) image I´(x´,y´) Disparity map D(x,y) (x´,y´)=(x+D(x,y),y)

Computer Vision 7 Example: reconstruct image from neighboring images

Computer Vision 8 Multi-view depth fusion Compute depth for every pixel of reference image –Triangulation –Use multiple views –Up- and down sequence –Use Kalman filter (Koch, Pollefeys and Van Gool. ECCV‘98) Allows to compute robust texture

Computer Vision 9 Real-time stereo on graphics hardware Computes Sum-of-Square-Differences Hardware mip-map generation used to aggregate results over support region Trade-off between small and large support window Yang and Pollefeys CVPR03 140M disparity hypothesis/sec on Radeon 9700pro e.g. 512x512x20disparities at 30Hz Shape of a kernel for summing up 6 levels

Computer Vision 10 Sample Re-Projections near far

Computer Vision 11 (1x1) (1x1+2x2) (1x1+2x2 +4x4+8x8) (1x1+2x2 +4x4+8x8 +16x16) Combine multiple aggregation windows using hardware mipmap and multiple texture units in single pass video

Computer Vision 12 Cool ideas Space-time stereo (varying illumination, not shape)

Computer Vision 13 More on stereo … The Middleburry Stereo Vision Research Page Recommended reading D. Scharstein and R. Szeliski. A Taxonomy and Evaluation of Dense Two-Frame Stereo Correspondence Algorithms. IJCV 47(1/2/3):7-42, April-June PDF file (1.15 MB) - includes current evaluation. Microsoft Research Technical Report MSR-TR , November PDF file (1.27 MB).PDF file

Computer Vision 14 Jan 16/18-Introduction Jan 23/25CamerasRadiometry Jan 30/Feb1Sources & ShadowsColor Feb 6/8Linear filters & edgesTexture Feb 13/15Multi-View GeometryStereo Feb 20/22Optical flowProject proposals Feb27/Mar1Affine SfMProjective SfM Mar 6/8Camera CalibrationSilhouettes and Photoconsistency Mar 13/15Springbreak Mar 20/22SegmentationFitting Mar 27/29Prob. SegmentationProject Update Apr 3/5Tracking Apr 10/12Object Recognition Apr 17/19Range data Apr 24/26Final project Tentative class schedule

Computer Vision 15 Optical Flow Brightness Constancy The Aperture problem Regularization Lucas-Kanade Coarse-to-fine Parametric motion models Direct depth SSD tracking Robust flow Bayesian flow

Computer Vision 16 Optical Flow: Where do pixels move to?

Computer Vision 17 Motion is a basic cue Motion can be the only cue for segmentation

Computer Vision 18 Motion is a basic cue Motion can be the only cue for segmentation

Computer Vision 19 Motion is a basic cue Even impoverished motion data can elicit a strong percept

Computer Vision 20 Applications tracking structure from motion motion segmentation stabilization compression Mosaicing …

Computer Vision 21 Optical Flow Brightness Constancy The Aperture problem Regularization Lucas-Kanade Coarse-to-fine Parametric motion models Direct depth SSD tracking Robust flow Bayesian flow

Computer Vision 22 Definition of optical flow OPTICAL FLOW = apparent motion of brightness patterns Ideally, the optical flow is the projection of the three-dimensional velocity vectors on the image 

Computer Vision 23 Caution required ! Two examples : 1. Uniform, rotating sphere  O.F. = 0 2. No motion, but changing lighting  O.F.  0 

Computer Vision 24 Caution required !

Computer Vision 25 Mathematical formulation I (x,y,t) = brightness at (x,y) at time t Optical flow constraint equation :  Brightness constancy assumption:

Computer Vision 26 Optical Flow Brightness Constancy The Aperture problem Regularization Lucas-Kanade Coarse-to-fine Parametric motion models Direct depth SSD tracking Robust flow Bayesian flow

Computer Vision 27 The aperture problem 1 equation in 2 unknowns 

Computer Vision 28 The aperture problem 0

Computer Vision 29

Computer Vision 30 The aperture problem

Computer Vision 31 Remarks

Computer Vision 32 Apparently an aperture problem 

Computer Vision 33 What is Optic Flow, anyway? Estimate of observed projected motion field Not always well defined! Compare: –Motion Field (or Scene Flow) projection of 3-D motion field –Normal Flow observed tangent motion –Optic Flow apparent motion of the brightness pattern (hopefully equal to motion field) Consider Barber pole illusion

Computer Vision 34

Computer Vision 35 Optical Flow Brightness Constancy The Aperture problem Regularization Lucas-Kanade Coarse-to-fine Parametric motion models Direct depth SSD tracking Robust flow Bayesian flow

Computer Vision 36 Horn & Schunck algorithm Additional smoothness constraint : besides OF constraint equation term minimize e s + e c 

Computer Vision 37 Horn & Schunck The Euler-Lagrange equations : In our case, so the Euler-Lagrange equations are is the Laplacian operator 

Computer Vision 38 Horn & Schunck Remarks : 1. Coupled PDEs solved using iterative methods and finite differences 2. More than two frames allow a better estimation of I t 3. Information spreads from corner-type patterns 

Computer Vision 39 

Computer Vision 40 Horn & Schunck, remarks 1. Errors at boundaries 2. Example of regularisation (selection principle for the solution of illposed problems) 

Computer Vision 41 Results of an enhanced system

Computer Vision 42 Structure from motion with OF

Computer Vision 43 Optical Flow Brightness Constancy The Aperture problem Regularization Lucas-Kanade Coarse-to-fine Parametric motion models Direct depth SSD tracking Robust flow Bayesian flow

Computer Vision 44

Computer Vision 45

Computer Vision 46

Computer Vision 47

Computer Vision 48

Computer Vision 49 Optical Flow Brightness Constancy The Aperture problem Regularization Lucas-Kanade Coarse-to-fine Parametric motion models Direct depth SSD tracking Robust flow Bayesian flow

Computer Vision 50

Computer Vision 51

Computer Vision 52

Computer Vision 53 Optical Flow Brightness Constancy The Aperture problem Regularization Lucas-Kanade Coarse-to-fine Parametric motion models Direct depth SSD tracking Robust flow Bayesian flow

Computer Vision 54

Computer Vision 55

Computer Vision 56

Computer Vision 57

Computer Vision 58

Computer Vision 59

Computer Vision 60

Computer Vision 61

Computer Vision 62

Computer Vision 63

Computer Vision 64

Computer Vision 65

Computer Vision 66

Computer Vision 67

Computer Vision 68

Computer Vision 69

Computer Vision 70

Computer Vision 71

Computer Vision 72

Computer Vision 73

Computer Vision 74

Computer Vision 75

Computer Vision 76

Computer Vision 77

Computer Vision 78

Computer Vision 79

Computer Vision 80

Computer Vision 81

Computer Vision 82

Computer Vision 83 Optical Flow Brightness Constancy The Aperture problem Regularization Lucas-Kanade Coarse-to-fine Parametric motion models Direct depth SSD tracking Robust flow Bayesian flow

Computer Vision 84

Computer Vision 85

Computer Vision 86

Computer Vision 87 Optical Flow Brightness Constancy The Aperture problem Regularization Lucas-Kanade Coarse-to-fine Parametric motion models Direct depth SSD tracking Robust flow Bayesian flow

Computer Vision 88

Computer Vision 89

Computer Vision 90

Computer Vision 91

Computer Vision 92

Computer Vision 93 Optical Flow Brightness Constancy The Aperture problem Regularization Lucas-Kanade Coarse-to-fine Parametric motion models Direct depth SSD tracking Robust flow Bayesian flow

Computer Vision 94

Computer Vision 95

Computer Vision 96

Computer Vision 97

Computer Vision 98

Computer Vision 99

Computer Vision 100 Optical Flow Brightness Constancy The Aperture problem Regularization Lucas-Kanade Coarse-to-fine Parametric motion models Direct depth SSD tracking Robust flow Bayesian flow

Computer Vision 101

Computer Vision 102 Rhombus Displays

Computer Vision 103

Computer Vision 104

Computer Vision 105

Computer Vision 106

Computer Vision 107

Computer Vision 108