Recent progress in optical flow

Slides:



Advertisements
Similar presentations
Bayesian Belief Propagation
Advertisements

CISC 489/689 Spring 2009 University of Delaware
Motion.
Principal Component Analysis Based on L1-Norm Maximization Nojun Kwak IEEE Transactions on Pattern Analysis and Machine Intelligence, 2008.
November 12, 2013Computer Vision Lecture 12: Texture 1Signature Another popular method of representing shape is called the signature. In order to compute.
Investigation Into Optical Flow Problem in the Presence of Spatially-varying Motion Blur Mohammad Hossein Daraei June 2014 University.
Analysis of Contour Motions Ce Liu William T. Freeman Edward H. Adelson Computer Science and Artificial Intelligence Laboratory Massachusetts Institute.
Motion Estimation I What affects the induced image motion? Camera motion Object motion Scene structure.
Geometric (Classical) MultiGrid. Hierarchy of graphs Apply grids in all scales: 2x2, 4x4, …, n 1/2 xn 1/2 Coarsening Interpolate and relax Solve the large.
Contours and Optical Flow: Cues for Capturing Human Motion in Videos Thomas Brox Computer Vision and Pattern Recognition Group University of Bonn Research.
Or where do the pixels move? Alon Gat. Given: two or more frames of an image sequence Wanted: Displacement field between two consecutive frames  optical.
Computer Vision Optical Flow
1 Recent progress in optical flow progress Presented by: Darya Frolova and Denis Simakov.
A New Block Based Motion Estimation with True Region Motion Field Jozef Huska & Peter Kulla EUROCON 2007 The International Conference on “Computer as a.
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.
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.
Motion Detail Preserving Optical Flow Estimation Li Xu 1, Jiaya Jia 1, Yasuyuki Matsushita 2 1 The Chinese University of Hong Kong 2 Microsoft Research.
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.
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.
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.
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,
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.
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.
December 9, 2014Computer Vision Lecture 23: Motion Analysis 1 Now we will talk about… Motion Analysis.
Effective Optical Flow Estimation
Over-Parameterized Variational Optical Flow
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.
Segmentation of Vehicles in Traffic Video Tun-Yu Chiang Wilson Lau.
Lecture 21 MA471 Fall 03. Recall Jacobi Smoothing We recall that the relaxed Jacobi scheme: Smooths out the highest frequency modes fastest.
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 using Markov Random Fields Hrvoje Bogunović Image Processing Group Faculty of Electrical Engineering and Computing University of Zagreb.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities May 2, 2005 Prof. Charlene Tsai.
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.
Representing Moving Images with Layers J. Y. Wang and E. H. Adelson MIT Media Lab.
1 Multi Scale Markov Random Field Image Segmentation Taha hamedani.
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.
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 and Optical Flow
Robust Visual Motion Analysis: Piecewise-Smooth Optical Flow
Range Imaging Through Triangulation
Motion Estimation Today’s Readings
Announcements more panorama slots available now
Analysis of Contour Motions
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
Presentation transcript:

Recent progress in optical flow Presented by: Darya Frolova and Denis Simakov

Optical Flow is not in favor Very popular slide: Often not using Optical Flow is stated as one of the main advantages of a method Optical Flow methods have a reputation of either unreliable or slow Recent works claim: Optical Flow can be computed fast and accurately

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

In This Lecture We will describe : Ingredients for an accurate and robust optical flow How people combine these ingredients Fast algorithms Papers: Combining the advantages of local and global optic flow methods (“Lucas/Kanade meets Horn/Schunck”) A. Bruhn, J. Weickert, C. Schnörr, 2002 - 2005 High accuracy optical flow estimation based on a theory for warping T. Brox, A. Bruhn, N. Papenberg, J. Weickert, 2004 - 2005 Real-Time Optic Flow Computation with Variational Methods A. Bruhn, J. Weickert, C. Feddern, T. Kohlberger, C. Schnörr, 2003 - 2005 Towards ultimate motion estimation: Combining highest accuracy with real-time performance A. Bruhn, J. Weickert, 2005 Bilateral filtering-based optical flow estimation with occlusion detection J.Xiao, H.Cheng, H.Sawhney, C.Rao, M.Isnardi, 2006

What is Optical Flow? explain: arrows and dots of flow field …

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

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

Applications optical flow video compression 3D reconstruction segmentation object detection activity detection key frame extraction interpolation in time motion field We are usually interested in actual motion

Outline Ingredients for an accurate and robust optical flow Local image constraints on motion Robust statistics Spatial coherence How people combine these ingredients Fast algorithms

Local image constraints

Brightness Constancy u frame t+1 v frame t

Linearized brightness constancy Deviation from brightness constancy (we want it to be zero) Complex dependence on Linearize:

Linearized brightness constancy Let us square the difference: J – “motion tensor”, or “structure tensor”

Averaged linearized constraint J is a function of x, y (a matrix for every point) Combine over small neighborhoods (more robust to noise): J = *

Method of Lucas&Kanade Solve independently for each point [ Lucas&Kanade 1981 ] linear system Can be solved for every point where matrix is not degenerate

Lukas&Kanade - Results Rubik cube Hamburg taxi flow field flow field

Brightness is not always constant Rotating cylinder Brightness constancy does not always hold Gradient constancy holds intensity intensity derivative position position

Local constraints - Summary We have seen linearized brightness constancy averaged linearized averaged linearized gradient constancy

Local constraints are not enough!

Local constraints work poorly Optical flow direction using only local constraints input video color encodes direction as marked on the boundary

Where local constraints fail Uniform regions Motion is not observable in the image (locally)

Where local constraints fail “Aperture problem” We can estimate only one flow component (normal)

Where local constraints fail Occlusions We have not seen where some points moved Occluded regions are marked in red

Obtaining support from neighbors Two main problems with local constraints: information about motion is missing in some points => need spatial coherency constraints do not hold everywhere => need methods to combine them robustly good missing wrong

Robust combination of partially reliable data or: How to hold elections

Toy example xi xi → xi + ∆ L2: L1: Find “best” representative for the set of numbers xi L2: L1: Influence of xi on E: xi → xi + ∆ proportional to equal for all xi Outliers influence the most Majority decides

Elections and robust statistics many ordinary people a very rich man wealth Oligarchy Democracy ordinary people – 1 vote a rich man – many votes If you know what to do – choose oligarchy, if don’t know - democracy Votes proportional to the wealth One vote per person like in L2 norm minimization like in L1 norm minimization

Combination of two flow constraints usual: L2 easy to analyze and minimize sensitive to outliers robust: L1 robust in presence of outliers non-smooth: hard to analyze robust regularized smooth: easy to analyze robust in presence of outliers ε [A. Bruhn, J. Weickert, 2005] Towards ultimate motion estimation: Combining highest accuracy with real-time performance

Spatial Propagation

Obtaining support from neighbors Two main problems with local constraints: information about motion is missing in some points => need spatial coherency constraints do not hold everywhere => need methods to combine them robustly good missing wrong

Homogeneous propagation - flow in the x direction flow in the y direction gradient This constraint is not correct on motion boundaries => over-smoothing of the resulting flow [Horn&Schunck 1981]

Robustness to flow discontinuities ε (also known as isotropic flow-driven regularization) [T. Brox, A. Bruhn, N. Papenberg, J. Weickert, 2004] High accuracy optical flow estimation based on a theory for warping

Selective flow filtering We want to propagate information without crossing image and flow discontinuities from “good” points only (not occluded) Solution: use “bilateral” filter in space, intensity, flow; taking into account occlusions [J.Xiao, H.Cheng, H.Sawhney, C.Rao, M.Isnardi, 2006] Bilateral filtering-based optical flow estimation with occlusion detection

Bilateral filter Unilateral (usual) Bilateral x I I x Preserves discontinuities! x I x I [C. Tomasi, R. Manduchi, 1998] Bilateral filtering for gray and color images.

Using of bilateral filter - Example occluded regions cyan rectangle moves to the right and occludes background region marked by red [J.Xiao, H.Cheng, H.Sawhney, C.Rao, M.Isnardi, 2006] Bilateral filtering-based optical flow estimation with occlusion detection

Learning of spatial coherence Come to the next lecture …

Spatial coherence: Summary Homogeneous propagation - oversmoothing Robust statistics with homogeneous propagation - preserves flow discontinuities Bilateral filtering - combines information from regions with similar flow and similar intensities Handles occlusions

Two more useful ingredients in brief – one slide each

2D vs. 3D Several frames allow more accurate optical flow estimation

Multiscale Optical Flow Linearization: valid only for small flow pyramid for frame 1 pyramid for frame 2 frame 1 warped ? + upsample + (other names: “warping”, “coarse-to-fine”, “multiresolution”)

How to make tasty soup with these ingredients: several recipes Methods How to make tasty soup with these ingredients: several recipes

Outline Ingredients for an accurate and robust optical flow How people combine these ingredients Lukas & Kanade meet Horn & Schunck The more ingredients – the better Bilateral filtering and occlusions Fast algorithms

Combining ingredients Spatial coherency Homogeneous Flow-driven Bilateral filtering + occlusions Local constraints Brightness constancy Image gradient constancy Energy = ∫ϕ (Data) + ∫ϕ (“Smoothness”) Combined using robust statistics Computed coarse-to-fine Use several frames

Combining Local and Global Remember: Lucas&Kanade Horn&Schunk Basic “Combining local and global” [A. Bruhn, J. Weickert, C. Schnörr, 2002 ]

Sensitivity to noise – quantitative results frame t+1 Error measure: angle between true and computed flow in (x,y,t) space frame t ground truth flow

The more ingredients - the better brightness constancy spatial coherence gradient constancy [Bruhn, Weickert, 2005] Towards ultimate motion estimation: Combining highest accuracy with real-time performance

Combining local and global Quantitative results Average Standard Deviation Lucas&Kanade 4.3 (density 35%) Horn&Schunk 9.8 16.2 Combining local and global 4.2 7.7 “Towards ultimate …” 2.4 6.7 Angular error Method Yosemite sequence with clouds Average error decreases, but standard deviation is still high….

Influence of each ingredient For Yosemite sequence with clouds

Handling occlusions bilateral filtering of flow: preserve intensity and flow discontinuities; model occlusions [J.Xiao, H.Cheng, H.Sawhney, C.Rao, M.Isnardi, ECCV 2006] Bilateral filtering-based optical flow estimation with occlusion detection

Qualitative results

Combining local and global Bilateral+occlusions Quantitative results Average Standard Deviation Lucas&Kanade 4.3 (density 35%) Horn&Schunk 9.8 16.2 Combining local and global 4.2 7.7 “Towards ultimate …” 2.4 6.7 Bilateral+occlusions 2.6 6.1 Angular error Method Yosemite sequence with clouds

Outline Ingredients for an accurate and robust optical flow How people combine these ingredients Fast algorithms Energy functional => discrete equation Multigrid solver: nearly real-time

Euler-Lagrange equation How to minimize energy Analogy: Necessary condition: Necessary condition Euler-Lagrange equation

An example Let us see how to derive discretized equation for 1D Horn & Schuhck Horn&Schunk 1D version (simplified):

Iterative minimization (simple example) Euler-Lagrange Linear system of equation for u Discretized: Local iterations:

Life is not a picnic Linear discretized system Non-linear in u, non-linear discretized system Even more complicated

Optimization algorithms Simple iterative minimization Multigrid: much faster convergence

Solving the system How to solve? Start with some initial guess and apply some iterative method fast convergence good initial guess 2 components of success:

Relaxation smoothes the error Relaxation schemes have smoothing property: . . . . . . . . . . . . It may take thousands of iterations to propagate information to large distance oscillatory modes of the error are eliminated effectively, but smooth modes are damped slowly Only neighboring pixels are coupled in relaxation scheme

Relaxation smoothes the error Examples 1D case: 2D case: Error of initial guess Error after 5 relaxation Error after 15 relaxations

Idea: coarser grid On a coarser grid low frequencies become higher initial grid – fine grid On a coarser grid low frequencies become higher Hence, relaxations can be more effective coarse grid – we take every second point

Multigrid 2-Level V-Cycle 5. Correct the previous solution 6. Iterate ⇒ remove interpolation artifacts 1. Iterate ⇒ error becomes smooth 2. Transfer error equation to the coarse level ⇒ low frequencies become high 4. Transfer error to the fine level 3. Solve for the error on the coarse level ⇒ good error estimation

Coarse grid - advantages Coarsening allows: make iteration process faster (on the coarse grid we can effectively minimize the error) obtain better initial guess (solve directly on the coarsest grid) go to the coarsest grid interpolate to the finer grid solve here the equation to find

Multigrid approach – Full scheme

Non-linear: Full Approximation Scheme A(·) non-linear Linear Non-linear fine level: coarse level: Difference from the linear case: Equation for error involves current solution u0: ⇒ Need to transfer current solution to the coarser level

Multigrid: Summary Used to solve linear or non-linear equations Method: combine two techniques Basic iterative solver: quickly removes high frequencies of the error Coarsening: makes low frequencies high Contribution: fast minimization of loosely coupled equations

Fast Optimization: Results Time [sec] frames/sec Gauss-Seidel 1.15 0.87 Full multigrid 0.016 62.8 9.52 0.11 FAS-multigrid 0.087 11.5 34.5 0.03 0.396 2.5 Horn&Schunck CLG “Towards ultimate…” image size: 160 x 120

Summary of the Talk 25 years of Optical Flow : a lot of useful ingredients were developed: local constraints: brightness constancy gradient constancy smoothing techniques: homogeneous flow-driven (preserving discontinuities) bilateral filters handling of occlusions robust functions multiscale All ingredients are combined an a global Energy Minimization approach This difficult global optimization can be done very fast using Multigrid

Thank you!