Optical Flow. Distribution of apparent velocities of movement of brightness pattern in an image.

Slides:



Advertisements
Similar presentations
Andrew Cosand ECE CVRR CSE
Advertisements

Motion.
Dynamic Occlusion Analysis in Optical Flow Fields
Motion Estimation I What affects the induced image motion? Camera motion Object motion Scene structure.
Computer Vision Optical Flow
A New Block Based Motion Estimation with True Region Motion Field Jozef Huska & Peter Kulla EUROCON 2007 The International Conference on “Computer as a.
Active Calibration of Cameras: Theory and Implementation Anup Basu Sung Huh CPSC 643 Individual Presentation II March 4 th,
Motion Tracking. Image Processing and Computer Vision: 82 Introduction Finding how objects have moved in an image sequence Movement in space Movement.
Motion Estimation I What affects the induced image motion? Camera motion Object motion Scene structure.
Recent progress in optical flow
Motion Analysis (contd.) Slides are from RPI Registration Class.
Announcements Quiz Thursday Quiz Review Tomorrow: AV Williams 4424, 4pm. Practice Quiz handout.
Optical Flow Methods 2007/8/9.
Lecture 9 Optical Flow, Feature Tracking, Normal Flow
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.
Optical Flow Brightness Constancy The Aperture problem Regularization Lucas-Kanade Coarse-to-fine Parametric motion models Direct depth SSD tracking.
CSc83029 – 3-D Computer Vision/ Ioannis Stamos 3-D Computational Vision CSc Optical Flow & Motion The Factorization Method.
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.
Optical Flow Brightness Constancy The Aperture problem Regularization Lucas-Kanade Coarse-to-fine Parametric motion models Direct depth SSD tracking.
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.
Motion Field and Optical Flow. Outline Motion Field and Optical Flow Definition, Example, Relation Optical Flow Constraint Equation Assumptions & Derivation,
COMP 290 Computer Vision - Spring Motion II - Estimation of Motion field / 3-D construction from motion Yongjik Kim.
Image Primitives and Correspondence
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.
CSCE 641 Computer Graphics: Image Registration Jinxiang Chai.
Motion from normal flow. Optical flow difficulties The aperture problemDepth discontinuities.
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,
Optical flow (motion vector) computation Course: Computer Graphics and Image Processing Semester:Fall 2002 Presenter:Nilesh Ghubade
Generating panorama using translational movement model.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
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.
Computer Vision, Robert Pless Lecture 11 our goal is to understand the process of multi-camera vision. Last time, we studies the “Essential” and “Fundamental”
Motion Segmentation By Hadas Shahar (and John Y.A.Wang, and Edward H. Adelson, and Wikipedia and YouTube) 1.
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.
1 Computational Vision CSCI 363, Fall 2012 Lecture 28 Structure from motion.
December 9, 2014Computer Vision Lecture 23: Motion Analysis 1 Now we will talk about… Motion Analysis.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm Lecture #16.
3D Imaging Motion.
Raquel A. Romano 1 Scientific Computing Seminar May 12, 2004 Projective Geometry for Computer Vision Projective Geometry for Computer Vision Raquel A.
Joint Tracking of Features and Edges STAN BIRCHFIELD AND SHRINIVAS PUNDLIK CLEMSON UNIVERSITY ABSTRACT LUCAS-KANADE AND HORN-SCHUNCK JOINT TRACKING OF.
Segmentation of Vehicles in Traffic Video Tun-Yu Chiang Wilson Lau.
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
Motion / Optical Flow II Estimation of Motion Field Avneesh Sud.
Optical flow and keypoint tracking Many slides adapted from S. Seitz, R. Szeliski, M. Pollefeys.
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.
2D Motion is just the Beginning
Motion and Optical Flow
Robust Visual Motion Analysis: Piecewise-Smooth Optical Flow
Motion Estimation Today’s Readings
Announcements more panorama slots available now
Announcements Questions on the project? New turn-in info online
Announcements more panorama slots available now
Optical flow Computer Vision Spring 2019, Lecture 21
Open Topics.
Optical flow and keypoint tracking
Presentation transcript:

Optical Flow

Distribution of apparent velocities of movement of brightness pattern in an image

Optical Flow Perspective projection (pinhole camera) Instantaneous 2D velocity

4 Definitions optical flow [ Horn&Schunck ] The optical flow is a velocity field in the image which transforms one image into the next image in a sequence [ Horn&Schunck ] [ Horn&Schunck ] The motion field … is the projection into the image of three-dimensional motion vectors [ Horn&Schunck ] + = frame #1 frame #2 flow field

5 Ambiguity of optical flow Frame 1 flow (1): true motion flow (2)

Determining Optical Flow Berthold K.P. Horn and Brian G. Rhunck Artificial Intelligence Laboratory, MIT.

Optical Flow Optical flow field: Estimate the 2D motion field, which are the 2D velocities for all visible points Two key problems – Determine what image property to track – Determine how to track it

8 Brightness Constancy frame t frame t+1 v u

Brightness Constancy Track points of constant brightness, assuming that surface radiance is constant over time Brightness constancy is often violated by Mother Nature, so the resulting optical flow field is sometimes a very poor approximation to the 2D motion field

Optical Flow The optical flow cannot be computed at a point independently of neighboring points without introducing additional constraints

Brightness Constancy Constraint The brightness of a particular point in the pattern is constant Cannot determine the flow velocity locally without additional constraints Constraint line

Brightness Constancy Constraint Normal Velocity No constraint when the gradient magnitude is zero

13 Optical Flow Assumptions: * Slide from Michael Black, CS

14 Optical Flow Assumptions: * Slide from Michael Black, CS

Smoothness Constraint Constraint Assumption – Neighboring points on the objects have similar velocities and – The velocity field of the brightness patterns in the image varies smoothly almost everywhere – Discontinuities in flow can be expected where one object occludes another Algorithms based on smoothness constraint are likely to have difficulties with occluding edges

Smoothness Constraint Minimize the square of the gradient magnitude of the optical flow velocity Sum of the squares of Laplacians of x- and y- components of the flow

Estimate the Partial Derivatives

Estimate the Laplacian of Flow Velocities

Minimization Minimize the sum of errors in rate of change of image brightness And measure of departure from smoothness Total error to be minimized

Minimization Good (u,v) occurs at

Difference of Flow from Local Average (u,v) lies in the direction towards the constraint line along a line that perpendicular to it a^2 plays significant role when Ex, Ey is small: roughly equal to the expected noise in the estimate of

Constrained Minimization Minimizing While maintaining = 0 The (u,v) here is just the intersection on the constraint line

Iterative Solution

24 Optical Flow: 1D Case Brightness Constancy Assumption: IxIx vItIt  Because no change in brightness with time

25? Tracking in the 1D case:

26 Spatial derivative Temporal derivative Tracking in the 1D case:Assumptions: Brightness constancy Brightness constancy Small motion Small motion

27 Tracking in the 1D case: Temporal derivative at 2 nd iteration Iterating helps refining the velocity vector Can keep the same estimate for spatial derivative Converges in about 5 iterations

28 Algorithm for 1D tracking:  Compute local image derivative at :  Compute local image derivative at p:  Initialize velocity vector:  Repeat until convergence:  Compensate for current velocity vector:  Compute temporal derivative:  Update velocity vector: For all pixel of interest : For all pixel of interest p:  Need access to neighborhood pixels round p to compute  Need access to the second image patch, for velocity compensation:  The pixel data to be accessed in next image depends on current velocity estimate (bad?)  Compensation stage requires a bilinear interpolation (because is not integer)  Compensation stage requires a bilinear interpolation (because v is not integer)  The image derivative needs to be kept in memory throughout the iteration process Requirements:

Iterative Solution Very costly to solve these equations simultaneously Iterative algorithms, such as Gauss-Seidel method It is interesting to note that the new estimates at a particular point do not depend directly on the previous estimate at the same point

Fill in Uniform Region Uniform region: brightness gradient is zero No local information to constrain the vecocity Fill in uniform region – Given the values on region boudnary – Solve the Laplace equation under Dirichlet boundary condition

Tightness of Constraint In general, the solution is most accurately determined in the region where the brightness is not too small and varies in direction from point to point – Constraint information is available in a relative small neighborhood

Choice of Iterative Scheme How to interlace the iterations with the time step? – Get stable values before going to next frame – Only one iteration per time-step gives good initial guess Ability to deal with more images per unit time Better estimation in uniform regions because of the noise in measurements of images will be independent and tend to cancel out

Experiment Very low resolution video, say, 32*32 A rotating ball with smoothly varying patterns, but no shading

Results I Simple linear translation of the entire pattern Estimate between two images Showing the velocity Few changes occur after 32 iterations when errors ~ 10%

Results I 1 time step4 time steps

Results I 16 time steps64 time steps

Results II Only one iteration per time-step More rapid Few changes after 16 iteration when errors ~ 7%

Results II 1 time steps4 time steps

Results II 16 time steps64 time steps

Results III Simple rotation and contraction of the brightness pattern

Result III initial32 time steps

Result IV Rigid body motion – Laplacian for one of the velocity components becomes infinite on the occluding bound – Reasonable results are still obtained with finite velocities

Results IV Rotating cylinderRotating sphere

Results IV Exact flow pattern for a rotating cylinder and rotating sphere

Summary A method for computing optical flow from a sequence of images Two components of flow velocity Additional constraint: smoothness Iterative method

46 Horn&Schunck Optical Flow Research: Timeline Lucas&Kanade now Benchmark: Barron et.al. Benchmark: Galvin et.al. many methods more methods A slow and not very consistent improvement in results, but a lot of useful ingredients were developed Seminal papers