Miguel Tavares Coimbra

Slides:



Advertisements
Similar presentations
CSCE 643 Computer Vision: Lucas-Kanade Registration
Advertisements

Optical Flow Estimation
Motion.
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.
Optical Flow Methods 2007/8/9.
CSCE 641 Computer Graphics: Image Registration Jinxiang Chai.
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.
Feature matching and tracking Class 5 Read Section 4.1 of course notes Read Shi and Tomasi’s paper on.
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.
Caltech, Oct Lihi Zelnik-Manor
Visual motion Many slides adapted from S. Seitz, R. Szeliski, M. Pollefeys.
Motion Computing in Image Analysis
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.
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.
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.
Automatic Image Alignment via Motion Estimation
KLT tracker & triangulation Class 6 Read Shi and Tomasi’s paper on good features to track
Computational Photography: Image Registration Jinxiang Chai.
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.
Motion and optical flow Thursday, Nov 20 Many slides adapted from S. Seitz, R. Szeliski, M. Pollefeys, S. Lazebnik.
Optical flow Combination of slides from Rick Szeliski, Steve Seitz, Alyosha Efros and Bill Freeman.
Feature Tracking and Optical Flow
Mestrado em Ciência de Computadores Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos VC 14/15 – TP3 Digital Images Miguel Tavares Coimbra.
1 Motion Estimation Readings: Ch 9: plus papers change detection optical flow analysis Lucas-Kanade method with pyramid structure Ming Ye’s improved.
Optical Flow Donald Tanguay June 12, Outline Description of optical flow General techniques Specific methods –Horn and Schunck (regularization)
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”
CSE 185 Introduction to Computer Vision Feature Tracking and Optical Flow.
Visual motion Many slides adapted from S. Seitz, R. Szeliski, M. Pollefeys.
Mestrado em Ciência de Computadores Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos VC 14/15 – TP8 Segmentation Miguel Tavares Coimbra.
Mestrado em Ciência de Computadores Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos VC 14/15 – TP6 Frequency Space Miguel Tavares Coimbra.
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.
3D Imaging Motion.
Optical Flow. Distribution of apparent velocities of movement of brightness pattern in an image.
1 Motion Analysis using Optical flow CIS601 Longin Jan Latecki Fall 2003 CIS Dept of Temple University.
Mestrado em Ciência de Computadores Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos VC 15/16 – TP7 Spatial Filters Miguel Tavares Coimbra.
O PTICAL F LOW & L AYERED M OTION Prepared by: Lidya Tonkonogi Mu’in Rizik 1.
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?
1 Lucas-Kanade Motion Estimation Thanks to Steve Seitz, Simon Baker, Takeo Kanade, and anyone else who helped develop these slides.
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.
1 Motion Estimation Readings: Ch 9: plus papers change detection optical flow analysis Lucas-Kanade method with pyramid structure Ming Ye’s improved.
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
Feature Tracking and Optical Flow
CPSC 641: Image Registration
Motion and Optical Flow
Motion Estimation Today’s Readings
Announcements more panorama slots available now
Motion Estimation Thanks to Steve Seitz, Simon Baker, Takeo Kanade, and anyone else who helped develop these slides.
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 Computer Vision Spring 2019, Lecture 21
Optical flow and keypoint tracking
Image Motion.
Presentation transcript:

Miguel Tavares Coimbra VC 14/15 – TP12 Optical Flow Mestrado em Ciência de Computadores Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos Miguel Tavares Coimbra

Outline Optical Flow Constraint Equation Aperture problem. The Lucas & Kanade Algorithm Acknowledgements: Most of this course is based on the excellent courses offered by Prof. Shree Nayar at Columbia University, USA and by Prof. Srinivasa Narasimhan at CMU, USA. Please acknowledge the original source when reusing these slides for academic purposes. VC 14/15 - TP12 - Optical Flow

Topic: Optical Flow Constraint Equation Aperture problem. The Lucas & Kanade Algorithm VC 14/15 - TP12 - Optical Flow

Optical Flow and Motion We are interested in finding the movement of scene objects from time-varying images (videos). Lots of uses Track object behavior Correct for camera jitter (stabilization) Align images (mosaics) 3D shape reconstruction Special effects VC 14/15 - TP12 - Optical Flow

Exemplo Where can i find motion? VC 14/15 - TP12 - Optical Flow

Lucas & Kanade Optical Flow method VC 14/15 - TP12 - Optical Flow

Optical Flow – What is that? Optical flow is “the distribution of apparent velocities of movement of brightness patterns in an image” – Horn and Schunck 1980 The optical flow field approximates the true motion field which is a “purely geometrical concept..., it is the [2D] projection into the image [plane] of [the sequence’s] 3D motion vectors” – Horn and Schunk 1993 x y z Image Plane Motion What can i use it for? VC 14/15 - TP12 - Optical Flow

Tracking Rigid Objects VC 14/15 - TP12 - Optical Flow (Simon Baker, CMU)

Tracking – Non-rigid Objects VC 14/15 - TP12 - Optical Flow (Comaniciu et al, Siemens)

Face Tracking (Simon Baker et al, CMU) VC 14/15 - TP12 - Optical Flow

3D Structure from Motion VC 14/15 - TP12 - Optical Flow (David Nister, Kentucky)

Motion Field Image velocity of a point moving in the scene Scene point velocity: Image velocity: Perspective projection: Motion field VC 14/15 - TP12 - Optical Flow

Optical Flow Motion of brightness pattern in the image Ideally Optical flow = Motion field VC 14/15 - TP12 - Optical Flow

Optical Flow Motion Field Motion field exists but no optical flow No motion field but shading changes VC 14/15 - TP12 - Optical Flow

Problem Definition: Optical Flow How to estimate pixel motion from image H to image I? Find pixel correspondences Given a pixel in H, look for nearby pixels of the same color in I Key assumptions color constancy: a point in H looks “the same” in image I For grayscale images, this is brightness constancy small motion: points do not move very far VC 14/15 - TP12 - Optical Flow

Optical Flow Constraint Equation Optical Flow: Velocities Displacement: Assume brightness of patch remains same in both images: Assume small motion: (Taylor expansion of LHS up to first order) VC 14/15 - TP12 - Optical Flow

Optical Flow Constraint Equation Divide by and take the limit Constraint Equation NOTE: must lie on a straight line We can compute using gradient operators! But, (u,v) cannot be found uniquely with this constraint! VC 14/15 - TP12 - Optical Flow

Optical Flow Constraint Intuitively, what does this constraint mean? The component of the flow in the gradient direction is determined. The component of the flow parallel to an edge is unknown. VC 14/15 - TP12 - Optical Flow

Topic: Aperture problem Optical Flow Constraint Equation Aperture problem. The Lucas & Kanade Algorithm VC 14/15 - TP12 - Optical Flow

Optical Flow Constraint VC 14/15 - TP12 - Optical Flow

How does this show up visually? Known as the “Aperture Problem” [Gary Bradski, Intel Research and Stanford SAIL] VC 14/15 - TP12 - Optical Flow

Aperture Problem Exposed [Gary Bradski, Intel Research and Stanford SAIL] Motion along just an edge is ambiguous VC 14/15 - TP12 - Optical Flow

Computing Optical Flow Formulate Error in Optical Flow Constraint: We need additional constraints! Smoothness Constraint (as in shape from shading and stereo): Usually motion field varies smoothly in the image. So, penalize departure from smoothness: Find (u,v) at each image point that MINIMIZES: weighting factor VC 14/15 - TP12 - Optical Flow

Example VC 14/15 - TP12 - Optical Flow

VC 14/15 - TP12 - Optical Flow

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? VC 14/15 - TP12 - Optical Flow

Reduce the Resolution! VC 14/15 - TP12 - Optical Flow

Coarse-to-fine Optical Flow Estimation Gaussian pyramid of image H Gaussian pyramid of image I image I image H u=10 pixels u=5 pixels u=2.5 pixels u=1.25 pixels image H image I VC 14/15 - TP12 - Optical Flow

Coarse-to-fine Optical Flow Estimation Gaussian pyramid of image H Gaussian pyramid of image I image I image H run iterative OF upsample run iterative OF . image J image I VC 14/15 - TP12 - Optical Flow

Current solutions are not good enough! Types of OF methods Differential Horn and Schunck [HS80], Lucas Kanade [LK81], Nagel [83]. Region-based matching Anandan [Anan87], Singh [Singh90], Digital video encoding standards. Energy-based Heeger [Heeg87] Phase-based Fleet and Jepson [FJ90] Open problem! Current solutions are not good enough! VC 14/15 - TP12 - Optical Flow

Topic: The Lucas & Kanade Algorithm Optical Flow Constraint Equation Aperture problem. The Lucas & Kanade Algorithm VC 14/15 - TP12 - Optical Flow

The Lucas & Kanade Method How to get more equations for a pixel? Basic idea: impose additional constraints most common is to assume that the flow field is smooth locally one method: pretend the pixel’s neighbors have the same (u,v) If we use a 5x5 window, that gives us 25 equations per pixel! VC 14/15 - TP12 - Optical Flow * From Khurram Hassan-Shafique CAP5415 Computer Vision 2003

Lukas-Kanade flow Prob: we have more equations than unknowns Solution: solve least squares problem minimum least squares solution given by solution (in d) of: The summations are over all pixels in the K x K window This technique was first proposed by Lukas & Kanade (1981) described in Trucco & Verri reading VC 14/15 - TP12 - Optical Flow * From Khurram Hassan-Shafique CAP5415 Computer Vision 2003

Conditions for solvability Optimal (u, v) satisfies Lucas-Kanade equation When is This Solvable? ATA should be invertible ATA should not be too small due to noise eigenvalues l1 and l2 of ATA should not be too small ATA should be well-conditioned l1/ l2 should not be too large (l1 = larger eigenvalue) VC 14/15 - TP12 - Optical Flow * From Khurram Hassan-Shafique CAP5415 Computer Vision 2003

Eigenvectors of ATA Suppose (x,y) is on an edge. What is ATA? gradients along edge all point the same direction gradients away from edge have small magnitude is an eigenvector with eigenvalue What’s the other eigenvector of ATA? let N be perpendicular to N is the second eigenvector with eigenvalue 0 The eigenvectors of ATA relate to edge direction and magnitude Suppose M = vv^T . What are the eigenvectors and eigenvalues? Start by considering Mv VC 14/15 - TP12 - Optical Flow * From Khurram Hassan-Shafique CAP5415 Computer Vision 2003

Edge large gradients, all the same large l1, small l2 VC 14/15 - TP12 - Optical Flow * From Khurram Hassan-Shafique CAP5415 Computer Vision 2003

Low texture region gradients have small magnitude small l1, small l2 VC 14/15 - TP12 - Optical Flow * From Khurram Hassan-Shafique CAP5415 Computer Vision 2003

High textured region gradients are different, large magnitudes large l1, large l2 VC 14/15 - TP12 - Optical Flow * From Khurram Hassan-Shafique CAP5415 Computer Vision 2003

Sparse Motion Field We are only confident in motion vectors of areas with two strong eigenvectors. Optical flow. Not so confident when we have one or zero strong eigenvectors. Normal flow (apperture problem). Unknown flow (blank-wall problem). VC 14/15 - TP12 - Optical Flow

Summing all up Optical flow: What applications is this useful for? Algorithms try to approximate the true motion field of the image plane. The Optical Flow Constraint Equation needs an additional constraint (e.g. smoothness, constant local flow). The Lucas Kanade method is the most popular Optical Flow Algorithm. What applications is this useful for? What about block matching? VC 14/15 - TP12 - Optical Flow

Resources Barron, “Tutorial: Computing 2D and 3D Optical Flow.”, http://www.tina-vision.net/docs/memos/2004-012.pdf CVonline: Optical Flow - http://homepages.inf.ed.ac.uk/cgi/rbf/CVONLINE/entries.pl?TAG518 Fast Image Motion Estimation Demo http://extra.cmis.csiro.au/IA/changs/motion/ VC 14/15 - TP12 - Optical Flow