Optical flow , A tutorial of the paper:

Slides:



Advertisements
Similar presentations
3D Reconstruction – Factorization Method Seong-Wook Joo KG-VISA 3/10/2004.
Advertisements

Mean transform, a tutorial KH Wong mean transform v.5a1.
Large-Scale, Real-World Face Recognition in Movie Trailers Week 2-3 Alan Wright (Facial Recog. pictures taken from Enrique Gortez)
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.
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 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.
Announcements Quiz Thursday Quiz Review Tomorrow: AV Williams 4424, 4pm. Practice Quiz handout.
Optical Flow Methods 2007/8/9.
Probabilistic video stabilization using Kalman filtering and mosaicking.
CSc83029 – 3-D Computer Vision/ Ioannis Stamos 3-D Computational Vision CSc Optical Flow & Motion The Factorization Method.
Optical flow and Tracking CISC 649/849 Spring 2009 University of Delaware.
1 Surface Velocity Computation of Debris Flows by Vector Field Measurements Physics and Chemistry of the Earth H. Inaba, Y. Itakura and M.Kasahara.
Caltech, Oct Lihi Zelnik-Manor
Original image: 512 pixels by 512 pixels. Probe is the size of 1 pixel. Picture is sampled at every pixel ( samples taken)
Optical Flow Estimation
Optical Flow Estimation using Variational Techniques Darya Frolova.
Matching Compare region of image to region of image. –We talked about this for stereo. –Important for motion. Epipolar constraint unknown. But motion small.
Optical Flow Digital Photography CSE558, Spring 2003 Richard Szeliski (notes cribbed from P. Anandan)
Jump to first page The research report Block matching algorithm Motion compensation Spatial transformation Xiaomei Yu.
3-D Scene u u’u’ Study the mathematical relations between corresponding image points. “Corresponding” means originated from the same 3D point. Objective.
Linear Algebra and Matrices
A plane-plus-parallax algorithm Basic Model: When FOV is not very large and the camera motion has a small rotation, the 2D displacement (u,v) of an image.
INTRODUCTION TO DYNAMICS ANALYSIS OF ROBOTS (Part 5)
Crash Course on Machine Learning
Image Stitching Ali Farhadi CSE 455
Machine Vision for Robots
Extrapolation Models for Convergence Acceleration and Function ’ s Extension David Levin Tel-Aviv University MAIA Erice 2013.
The Measurement of Visual Motion P. Anandan Microsoft Research.
Motion Segmentation By Hadas Shahar (and John Y.A.Wang, and Edward H. Adelson, and Wikipedia and YouTube) 1.
December 9, 2014Computer Vision Lecture 23: Motion Analysis 1 Now we will talk about… Motion Analysis.
Digital Image Processing Lecture 10: Image Restoration March 28, 2005 Prof. Charlene Tsai.
Pyramidal Implementation of Lucas Kanade Feature Tracker Jia Huang Xiaoyan Liu Han Xin Yizhen Tan.
3D Imaging Motion.
Digital Image Processing Lecture 10: Image Restoration
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.
Segmentation of Vehicles in Traffic Video Tun-Yu Chiang Wilson Lau.
Review of fundamental 1 Data mining in 1D: curve fitting by LLS Approximation-generalization tradeoff First homework assignment.
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.Optical Flow 2.LogPolar Transform 3.Inertial Sensor 4.Corner Detection 5. Feature Tracking 6.Lines.
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 Lecture 8 Post-Graduate Students Advanced Programming (Introduction to MATLAB) Code: ENG 505 Dr. Basheer M. Nasef Computers & Systems Dept.
Optical flow and keypoint tracking Many slides adapted from S. Seitz, R. Szeliski, M. Pollefeys.
8.7 Exponential Functions. Goals / “I can….” Evaluate exponential functions Graph exponential functions 8.7 – Exponential Functions.
Amir Yavariabdi Introduction to the Calculus of Variations and Optical Flow.
MOTION Model. Road Map Motion Model Non Parametric Motion Field : Algorithms 1.Optical flow field estimation. 2.Block based motion estimation. 3.Pel –recursive.
Digital Image Processing Lecture 10: Image Restoration
Linear Filters and Edges Chapters 7 and 8
3D Vision Interest Points.
Motion and Optical Flow
A Gentle Introduction to Bilateral Filtering and its Applications
Mean transform , a tutorial
Representing Moving Images with Layers
Representing Moving Images with Layers
10701 / Machine Learning Today: - Cross validation,
Section 1.2 Introduction to Parent Functions
Announcements more panorama slots available now
Turning to the Masters: Motion Capturing Cartoons
Image and Video Processing
Announcements more panorama slots available now
Introduction to Mathematical tools in used in DIP
Optical flow Computer Vision Spring 2019, Lecture 21
Optical flow and keypoint tracking
Linear Algebra and Matrices
Image cross-correlation analysis reveals the emergence of a dynamic steady state actin distribution in the minimal cortex. Image cross-correlation analysis.
Image Stitching Linda Shapiro ECE/CSE 576.
Image Stitching Linda Shapiro ECE P 596.
Presentation transcript:

Optical flow , A tutorial of the paper: G. Farneback , “Two-frame Motion Estimation based on Polynomial Expansion”, 13th Scandinavian Conference, SCIA 2003 Halmstad, Sweden, June 29 – July 2, 2003. KH Wong Optical Flow v.5a (beta)

Introduction Optical flow : Based on two frames sampled at different slight different time, find the change of position of each pixel in the first image to the second image. Reference: G. Farneback , “Two-frame Motion Estimation based on Polynomial Expansion”, 13th Scandinavian Conference, SCIA 2003 Halmstad, Sweden, June 29 – July 2, 2003. Optical Flow v.5a

Problem definition and method Input: Two images Output : motion vectors (v) and xx( c )? of each pixel in the first image. The Farneback method [1] is fast and linear. Method: Step1: Approximate the image using a polynomial Step2: Use the model of polynomial to approximate the motion for each pixel. Optical Flow v.5a

Example Image1 Image2 Optical flow result , vectors showing the direction and intensity of flow of each pixel. Plotting all vectors is too messy, only plot one vector in a window of 10x10 pixels. Optical Flow v.5a

Ideal and method x=[x,y]’ x1 (just show one dimension of x) We use a polynomial (with parameters A,b,c) to model the intensity change of an image (small window). Assume x is dimension2 here, but it can be larger. In image f1 (x) is taken at t , and f2 (x) at t+dt f1 (x)=xTA1x+b1x+c1 x is 2x1, A1 is 2x2, b1 is 2x1, c1 is 1x1 Assume f2 is f1 with a global displacement by d=[d1,d2]’ (shape no change, just displacement) f2 (x)=xTA2x+b2x+c2 By comparing f1 and f2, we get A2=A1, b2=b1-2A1d C2=dTA1d-bT1d+c1 We observe that (when A1 is non-singular , i.e. invertible) 2A1d=-(b2-b1) d=-(1/2)(A1)-1(b2-b1) So if we can measure f1 and f2, can may find d=[d1,d2]’. d is the 2-D displacement and hence the flow of the image pixel. Intensity of image f1(x)) f2(x) d x Image 1, at t Image 2, at t=dt Use a polynomial (with parameters A,b,c) to model the intensity change of an image (assume a small window). Optical Flow v.5a

Step: 1a Model an image using a polynomial For a polynomial with parameters A,b,c : x= is 2x1 A is 2x2 b is 2x1 C is 1x1 d is 2x1 Optical Flow v.5a

Modeling images using polynomials Read the Ph.D thesis Orientation and Velocity, Estimation , Ph.D https://www.facebook.com/download/333523813505207/farneback99-phd.pdf (page22 the example) and also the code make_Abc_fast.m in Code, https://github.com/GunnarFarneback/spatial_domain_toolbox Optical Flow v.5a

step1b Assume all pixels in a small window I() behave the same. If we can measure A1, b1, c1 from f1 for each pixel in I() ; and A2, A2 c2 from f2 we can calculate d. Pointwise is too noisy Sum over an window of I() Optical Flow v.5a

Step2 : find displacement d=[dx,dy]’ (=optical flow) We assume d is not a constant over the window I(), but a function according to its position x,y based on affine transformation. Affine model of d S is 2x8 ST is 8x2 p is 8x1 d is 2x1 wi= is 1x1 0 A , p ,b can be measured. Put them in (19) and minimize (19), or set it to [0,0]’. We can solve for p using (20), if p is found d can be found by (15) Optical Flow v.5a

Some modification Optical Flow v.5a

Result Image: yos2 Image: yos8 Optical flow (averaged) using a sequence of 15 pictures. Plotting all vectors is too messy, only plot one vector in a window of 10x10 pixels. Using the code https://github.com/GunnarFarneback/spatial_domain_toolbox Optical Flow v.5a Image: yos16

Summary Studied a linear method to find the optical flow based on two frames of image. Optical Flow v.5a

References G. Farneback , “Two-frame Motion Estimation based on Polynomial Expansion”, 13th Scandinavian Conference, SCIA 2003 Halmstad, Sweden, June 29 – July 2, 2003. Publications of G. Farneback , http://lmi.bwh.harvard.edu/papers/gunnar.html G. Farneback , Spatial Domain Methods for Orientation and Velocity, Estimation , Ph.D https://www.facebook.com/download/333523813505207/farneback99-phd.pdf Code, https://github.com/GunnarFarneback/spatial_domain_toolbox Optical Flow v.5a