Motion Estimation I What affects the induced image motion?

Slides:



Advertisements
Similar presentations
Optical Flow Estimation
Advertisements

Motion Estimation I What affects the induced image motion? Camera motion Object motion Scene structure.
Computer Vision Optical Flow
Automatic Image Alignment (direct) : Computational Photography Alexei Efros, CMU, Fall 2006 with a lot of slides stolen from Steve Seitz and Rick.
Motion Estimation I What affects the induced image motion? Camera motion Object motion Scene structure.
Announcements Quiz Thursday Quiz Review Tomorrow: AV Williams 4424, 4pm. Practice Quiz handout.
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
Optical Flow Brightness Constancy The Aperture problem Regularization Lucas-Kanade Coarse-to-fine Parametric motion models Direct depth SSD tracking.
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.
Optical flow and Tracking CISC 649/849 Spring 2009 University of Delaware.
Caltech, Oct Lihi Zelnik-Manor
Motion Estimation I What affects the induced image motion? Camera motion Object motion Scene structure This lesson – unconstrained flow-fields Next lesson.
Motion Computing in Image Analysis
Optical Flow Estimation
Lecture 19: Optical flow CS6670: Computer Vision Noah Snavely
Optical Flow Estimation using Variational Techniques Darya Frolova.
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.
1 Stanford CS223B Computer Vision, Winter 2006 Lecture 7 Optical Flow Professor Sebastian Thrun CAs: Dan Maynes-Aminzade, Mitul Saha, Greg Corrado Slides.
Image Motion.
Linearizing (assuming small (u,v)): Brightness Constancy Equation: The Brightness Constraint Where:),(),(yxJyxII t  Each pixel provides 1 equation in.
Matching Compare region of image to region of image. –We talked about this for stereo. –Important for motion. Epipolar constraint unknown. But motion small.
Automatic Image Alignment via Motion Estimation
KLT tracker & triangulation Class 6 Read Shi and Tomasi’s paper on good features to track
Optical Flow Digital Photography CSE558, Spring 2003 Richard Szeliski (notes cribbed from P. Anandan)
Motion Estimation I What affects the induced image motion? Camera motion Object motion Scene structure.
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.
Optical flow Combination of slides from Rick Szeliski, Steve Seitz, Alyosha Efros and Bill Freeman.
Linearizing (assuming small (u,v)): Brightness Constancy Equation: The Brightness Constraint Where:),(),(yxJyxII t  Each pixel provides 1 equation in.
Optical Flow Donald Tanguay June 12, Outline Description of optical flow General techniques Specific methods –Horn and Schunck (regularization)
The Brightness Constraint
Motion estimation Digital Visual Effects Yung-Yu Chuang with slides by Michael Black and P. Anandan.
The Measurement of Visual Motion P. Anandan Microsoft Research.
EECS 274 Computer Vision Motion Estimation.
CSE 185 Introduction to Computer Vision Feature Tracking and Optical Flow.
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
3D Imaging Motion.
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
Linearizing (assuming small (u,v)): Brightness Constancy Equation: The Brightness Constraint Where:),(),(yxJyxII t  Each pixel provides 1 equation in.
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 / Optical Flow II Estimation of Motion Field Avneesh Sud.
Motion estimation Digital Visual Effects, Spring 2006 Yung-Yu Chuang 2005/4/12 with slides by Michael Black and P. Anandan.
Optical flow and keypoint tracking Many slides adapted from S. Seitz, R. Szeliski, M. Pollefeys.
Linearizing (assuming small (u,v)): Brightness Constancy Equation: The Brightness Constraint Where:),(),(yxJyxII t  Each pixel provides 1 equation in.
1 Motion Estimation Readings: Ch 9: plus papers change detection optical flow analysis Lucas-Kanade method with pyramid structure Ming Ye’s improved.
MASKS © 2004 Invitation to 3D vision Lecture 3 Image Primitives andCorrespondence.
Image Motion. The Information from Image Motion 3D motion between observer and scene + structure of the scene –Wallach O’Connell (1953): Kinetic depth.
MOTION Model. Road Map Motion Model Non Parametric Motion Field : Algorithms 1.Optical flow field estimation. 2.Block based motion estimation. 3.Pel –recursive.
Motion estimation Parametric motion (image alignment) Tracking Optical flow.
Motion estimation Digital Visual Effects, Spring 2005 Yung-Yu Chuang 2005/3/23 with slides by Michael Black and P. Anandan.
Motion and Optical Flow
Digital Visual Effects Yung-Yu Chuang
The Brightness Constraint
The Brightness Constraint
The Brightness Constraint
Motion Estimation Today’s Readings
Announcements more panorama slots available now
Announcements Questions on the project? New turn-in info online
Coupled Horn-Schunck and Lukas-Kanade for image processing
Announcements more panorama slots available now
Optical flow and keypoint tracking
Presentation transcript:

Motion Estimation I What affects the induced image motion? Camera motion Object motion Scene structure

Example Flow Fields This lesson – estimation of general flow-fields Next lesson – constrained by global parametric transformations

The Aperture Problem So how much information is there locally…? So what does it mean “motion consistency of small patches”? Consider for example the following 4 patches. They all have different patterns of intensities (and seem to have different motions). Yet, they have been induced by the same global motion. Therefore, we would like our measure to capture that they are motion consistent. While these 4 intensity patterns cannot result from the same motion, therefore we would like our measure to tell us they are inconsistent. Once again, we want to do than purely based on the intensities of those patches, without estimating their motions. So how much information is there locally…?

The Aperture Problem Not enough info in local regions Copyright, 1996 © Dale Carnegie & Associates, Inc.

The Aperture Problem Not enough info in local regions Copyright, 1996 © Dale Carnegie & Associates, Inc.

The Aperture Problem Copyright, 1996 © Dale Carnegie & Associates, Inc.

The Aperture Problem Information is propagated from regions with high certainty (e.g., corners) to regions with low certainty. Copyright, 1996 © Dale Carnegie & Associates, Inc.

Such info propagation can cause optical illusions… So what does it mean “motion consistency of small patches”? Consider for example the following 4 patches. They all have different patterns of intensities (and seem to have different motions). Yet, they have been induced by the same global motion. Therefore, we would like our measure to capture that they are motion consistent. While these 4 intensity patterns cannot result from the same motion, therefore we would like our measure to tell us they are inconsistent. Once again, we want to do than purely based on the intensities of those patches, without estimating their motions. Illusory corners

Direct (intensity-based) Methods 1. Gradient-based (differential) methods (Horn &Schunk, Lucase & Kanade) 2. Region-based methods (Correlation, SSD, Normalized correlation) Feature-based Methods

Brightness Constancy Assumption Image I (taken at time t+1) Image J (taken at time t)

The Brightness Constancy Constraint Brightness Constancy Equation: Linearizing (assuming small (u,v)):

Need additional constraints… Observations: * One equation, 2 unknowns * A line constraint in (u,v) space. * Can recover Normal Flow. Need additional constraints…

Error in brightness constancy equation Horn and Schunk (1981) Add global smoothness term Error in brightness constancy equation Smoothness error Minimize: Solve by using calculus of variations

Horn and Schunk (1981) Problems… * Smoothness assumption wrong at motion/depth discontinuities  over-smoothing of the flow field. * How is Lambda determined…?

Lucas-Kanade (1984) Assume a single displacement (u,v) for all pixels within a small window (e.g., 3x3, 5x5) Geometrically -- Intersection of multiple line constraints Algebraically -- Minimize E(u,v):

Lucas-Kanade (1984) Minimize E(u,v): Differentiating w.r.t u and v and equating to 0: Solve for (u,v) [ Repeat this process for each and every pixel in the image ]

Lucas-Kanade (1984) Problems… * Still smoothes motion discontinuities (but unlike Horn & Schunk, does not propagate error across the entire image) * Singularities (partially solved by coarse-to-fine)

Where in the image will this matrix be invertible and where not…? Singularites Where in the image will this matrix be invertible and where not…?  Homework

Linearization approximation  iterate & warp estimate update Initial guess: Estimate: x0 x

Linearization approximation  iterate & warp estimate update Initial guess: Estimate:

Linearization approximation  iterate & warp estimate update Initial guess: Estimate:

Linearization approximation  iterate & warp

Revisiting the small motion assumption Is this motion small enough? Probably not—it’s much larger than one pixel (2nd order terms dominate) How might we solve this problem?

Coarse-to-Fine Estimation Advantages: (i) Larger displacements. (ii) Speedup. (iii) Information from multiple window sizes. Pyramid of image J Pyramid of image I image I image J iterate refine + u=10 pixels u=5 pixels u=2.5 pixels u=1.25 pixels ==> small u and v ... image J image I

Optical Flow Results

Optical Flow Results

But… (despite coarse-to-fine estimation) rely on B.C. cannot handle very large motions (no more than 10%-15% of image width/height) small object moving fast…? 1. Gradient based methods (Horn &Schunk, Lucase & Kanade, …) 2. Region based methods (SSD, Normalized correlation, etc.) Copyright, 1996 © Dale Carnegie & Associates, Inc.

Region-Based Methods * Define a small area around a pixel as the region. * Match the region against each pixel within a search area in next image. * Use a match measure (e.g., sum of-squares difference, normalized correlation, etc.) * Choose the maximum (or minimum) as the match. Advantages: Can avoid B.C. assumption Can handle large motions (even of small objects) Disadvantages: Less accurate (smaller sub-pixel accuracy) Computationally more expensive

SSD Surface – Textured area

SSD Surface -- Edge

SSD – homogeneous area [Anandan’89 - Use coarse-to-fine SSD of local windows to find matches. - Propagate information using directional confidence measures extracted from each local SSD surface]

B.C. + Additional constraints: Spatial smoothness: [e.g., Horn & Schunk:81, Anandan:89] Violated at depth/motion discontinuities Increase aperture: [e.g., Lucas & Kanade] Local singularities at degenerate image regions. Increase analysis window to large image regions => Global model constraints: Numerically stable, but requires prior model selection: Planar (2D) world model [e.g., Bergen-et-al:92, Irani-et-al:92+94, Black-et-al] 3D world model [e.g., Hanna-et-al:91+93, Stein & Shashua:97, Irani-et-al:1999] Copyright, 1996 © Dale Carnegie & Associates, Inc.