SlideShare a Scribd company logo
An Introduction to the Optical Flow
                            Sylvain LOBRY


Contents
1 Introduction                                                              2

2 Definition of the optical flow                                              2

3 Overview of the existing methods                                          3
  3.1 Local methods . . . . . . . . . . . . . . . . . . . . . . . . . . .   3
  3.2 Global methods . . . . . . . . . . . . . . . . . . . . . . . . . .    4

4 Further ideas                                                             5




                                      1
1     Introduction
Optical flow is defined as the apparent motion of the brightness patterns in
image. Computing it leads to many applications, including video compression
and motion estimation. It is also the first step of many video inpainting
algorithms.
    Even though the first attempts of computing the optical flow has been
made in 1981 by [3], the subject is the object of many recent studies leading
to many improvements.
    In this introduction to the optical flow computation, we will start by
giving a formal definition of the problem. The existing methods will be then
overviewed and classified. Finally, we will specify a roadmap for this study.


2     Definition of the optical flow
In the following, we will only handle the 2D case with 1D values (i.e. gray
images).

   Let I(x, y, t) be the value of the (x, y) pixel at frame t and (u(x, y, t), v(x, y, t))
the flow at the (x, y) pixel at frame t.
   The main idea of most algorithms for computing optical flow is to use the
Brightness Constancy : from a frame to an other, the brightness of a pixel
does not change according to the flow. This can be written as :

                         I(x, y, t) = I(x + u, y + v, t + 1)                           (1)
Equation 1 can be approximate with Taylor series to
                                                  ∂I    ∂I ∂I
                    I(x, y, t) = I(x, y, t) + u      +v    +                           (2)
                                                  ∂x    ∂y   ∂t
                                         ∂I            ∂I              ∂I
Introducing the abbreviations Ex =       ∂x
                                            ,   Ey =   ∂y
                                                            and Et =   ∂t
                                                                            , the following
holds :

                               uEx + vEy + Et = 0                                      (3)
Equation 3 is often denoted as the Optical Flow Contraint. We have a single
equation with two unknowns. This ill-posed problem is often called the
Apperture Problem illustrated by figure 1.


                                          2
(a) First frame              (b) Second frame

Figure 1: We can not tell in which way the line is moving with only those 2
frames.


    To compute optical flow from equation 3, we must add additional con-
straints to obtain a system with more equations. Finding those constraints
is the main challenge adressed by articles about optical flow.


3     Overview of the existing methods
Methods for computing optical flow can be classified into two categories. The
first one is known as local methods whereas the other take a global approach
to the problem.

3.1    Local methods
Local methods are based on the approximation that the flow does not vary
inside small regions. The first method using this assumption is [3].
    Following this simple idea, we can obtain, given a window of size n × n




                                    3
and by denoting pn the nth pixel inside :

                         Ex (p1 )u + Ey (p1 )v + Et (p1 ) = 0
                         Ex (p2 )u + Ey (p2 )v + Et (p2 ) = 0
                                                     ...
                      Ex (pn2 )u + Ey (pn2 )v + Et (pn2 ) = 0


    Thus, this assumption allows us to have n2 equations for 2 unknowns,
giving a simple system to solve.

   Further developpements of this method includes a coarse-to-fine imple-
mentation by pyramidal representation of the image. This have two advan-
tages :
     • We can take into account larger displacements.

     • It can speed-up computations.
   This coarse-to-fine implementations seem to be the most used optical flow
computation algorithm into video inpainting solutions. On the opposite, it
has not been the object of many improvements during the recent years for
optical flow algorithms. Indeed, the global methods seems to have more
potential.

3.2     Global methods
Global methods generally works by favoring small first-order derivates of the
flow field. The first method to follow this idea is [2] which considers the opti-
cal flow computation by defining the measure of departure from smoothness
in the flow using an L2 norm :
                               2                2            2            2
                  2       ∂u           ∂u               ∂v           ∂v
                 Es   =            +                +            +            (4)
                          ∂x           ∂y               ∂x           ∂y
  Using equations 3 (denoted Ec = uEx + vEy + Et ) and 4 and introducing
 2
α to balance both terms, we can define the total error to be minimized :

                          Err2 =       (α2 Es + Ec ) dx dy
                                            2    2
                                                                              (5)

                                            4
We can note that having a high value for α2 will lead to smoother flows. This
factor is application dependant.
    Other approaches include weightening Es along with the gradients (| I|)
to give less importance to areas having a high value for | I|. Indeed, it
is more likely to find flow discontinuities at an edge than elsewhere. The
equation to be minimized become :

                   Err2 =       (α2 w(| I|)Es + Ec ) dx dy
                                            2    2
                                                                           (6)

Equation 6 can be improved by adopting an anisotropic approach such as in
[5]. Some methods also look at the second-order derivate ([4]).
    A method which might have a lot of potential is [1]. It considers several
energies including ones given by high level descriptors such as SIFT. We will
see in section 4 an idea to improve it.


4     Further ideas
Understanding existing methods implies implementing a certain amount of
them. After doing that, some idea must be considered :

    • We can make a better use (than in [1]) of high level descriptors. Whereas
      in [1] the descriptor is used only fot the computation of the optical flow
      where it is defined, we want to use it to guide our computation. Indeed,
      those descriptors gives much more robust information than the optical
      flow we could compute gives.

    • We can use the fact that the optical flow is temporally smooth. In
      section 3.2, we have seen how to use the fact that the optical flow
      is smooth inside a frame. We could apply this idea to many frames
      and trying to find the smoothest flow at each point. This idea could
      be combined with the traditionals global methods in order to improve
      their results.

    Trying those ideas will be the main challenge of this semester.




                                      5
References
[1] Thomas Brox and Jitendra Malik. Large displacement optical flow: De-
    scriptor matching in variational motion estimation. IEEE Trans. Pattern
    Anal. Mach. Intell., 33(3):500–513, March 2011.

[2] Berthold K. P. Horn and Brian G. Schunck. Determining optical flow.
    ARTIFICAL INTELLIGENCE, 17:185–203, 1981.

[3] Bruce D. Lucas and Takeo Kanade. An iterative image registration tech-
    nique with an application to stereo vision. In Proceedings of the 7th
    international joint conference on Artificial intelligence - Volume 2, pages
    674–679, San Francisco, CA, USA, 1981. Morgan Kaufmann Publishers
    Inc.

[4] Werner Trobin and Daniel Cremers. An unbiased second-order prior for
    high-accuracy motion estimation ?, 2008.

[5] Manuel Werlberger, Werner Trobin, Thomas Pock, Andreas Wedel,
    Daniel Cremers, and Horst Bischof. Anisotropic huber-l1 optical flow.
    In Proceedings of the British Machine Vision Conference (BMVC), Lon-
    don, UK, September 2009. to appear.




                                      6

More Related Content

PDF
ALEXANDER FRACTIONAL INTEGRAL FILTERING OF WAVELET COEFFICIENTS FOR IMAGE DEN...
sipij
 
PPT
Fuzzy c means clustering protocol for wireless sensor networks
mourya chandra
 
PPT
1639 vector-linear algebra
Dr Fereidoun Dejahang
 
PDF
GREY LEVEL CO-OCCURRENCE MATRICES: GENERALISATION AND SOME NEW FEATURES
ijcseit
 
PDF
11.numerical solution of fuzzy hybrid differential equation by third order ru...
Alexander Decker
 
PDF
Numerical solution of fuzzy hybrid differential equation by third order runge...
Alexander Decker
 
PDF
11.[8 17]numerical solution of fuzzy hybrid differential equation by third or...
Alexander Decker
 
PDF
Rough K Means - Numerical Example
Dr.E.N.Sathishkumar
 
ALEXANDER FRACTIONAL INTEGRAL FILTERING OF WAVELET COEFFICIENTS FOR IMAGE DEN...
sipij
 
Fuzzy c means clustering protocol for wireless sensor networks
mourya chandra
 
1639 vector-linear algebra
Dr Fereidoun Dejahang
 
GREY LEVEL CO-OCCURRENCE MATRICES: GENERALISATION AND SOME NEW FEATURES
ijcseit
 
11.numerical solution of fuzzy hybrid differential equation by third order ru...
Alexander Decker
 
Numerical solution of fuzzy hybrid differential equation by third order runge...
Alexander Decker
 
11.[8 17]numerical solution of fuzzy hybrid differential equation by third or...
Alexander Decker
 
Rough K Means - Numerical Example
Dr.E.N.Sathishkumar
 

What's hot (19)

PPTX
Fuzzy c means manual work
Dr.E.N.Sathishkumar
 
PDF
Mixed Spectra for Stable Signals from Discrete Observations
sipij
 
PDF
INDUCTIVE LEARNING OF COMPLEX FUZZY RELATION
ijcseit
 
PDF
Principal Component Analysis for Tensor Analysis and EEG classification
Tatsuya Yokota
 
PPTX
Hierarchical clustering techniques
Md Syed Ahamad
 
PDF
Euclidean Distance Matrices: A Short Walk Through Theory, Algorithms and Appl...
Juri Ranieri
 
PDF
11.0001www.iiste.org call for paper.differential approach to cardioid distrib...
Alexander Decker
 
PDF
1.differential approach to cardioid distribution -1-6
Alexander Decker
 
PDF
On approximate bounds of zeros of polynomials within
eSAT Publishing House
 
PPT
FUAT – A Fuzzy Clustering Analysis Tool
Selman Bozkır
 
PDF
Performance Improvement of Vector Quantization with Bit-parallelism Hardware
CSCJournals
 
PDF
11.optimal nonlocal means algorithm for denoising ultrasound image
Alexander Decker
 
PDF
Optimal nonlocal means algorithm for denoising ultrasound image
Alexander Decker
 
PDF
Fuzzy c-Means Clustering Algorithms
Justin Cletus
 
PDF
Lesson 19: The Mean Value Theorem (Section 021 slides)
Matthew Leingang
 
PDF
Clustering tutorial
Lio Gonçalves
 
PDF
INFLUENCE OF OVERLAYERS ON DEPTH OF IMPLANTED-HETEROJUNCTION RECTIFIERS
Zac Darcy
 
PDF
A MEDIAN BASED DIRECTIONAL CASCADED WITH MASK FILTER FOR REMOVAL OF RVIN
ijistjournal
 
PDF
Fuzzy c means_realestate_application
Cemal Ardil
 
Fuzzy c means manual work
Dr.E.N.Sathishkumar
 
Mixed Spectra for Stable Signals from Discrete Observations
sipij
 
INDUCTIVE LEARNING OF COMPLEX FUZZY RELATION
ijcseit
 
Principal Component Analysis for Tensor Analysis and EEG classification
Tatsuya Yokota
 
Hierarchical clustering techniques
Md Syed Ahamad
 
Euclidean Distance Matrices: A Short Walk Through Theory, Algorithms and Appl...
Juri Ranieri
 
11.0001www.iiste.org call for paper.differential approach to cardioid distrib...
Alexander Decker
 
1.differential approach to cardioid distribution -1-6
Alexander Decker
 
On approximate bounds of zeros of polynomials within
eSAT Publishing House
 
FUAT – A Fuzzy Clustering Analysis Tool
Selman Bozkır
 
Performance Improvement of Vector Quantization with Bit-parallelism Hardware
CSCJournals
 
11.optimal nonlocal means algorithm for denoising ultrasound image
Alexander Decker
 
Optimal nonlocal means algorithm for denoising ultrasound image
Alexander Decker
 
Fuzzy c-Means Clustering Algorithms
Justin Cletus
 
Lesson 19: The Mean Value Theorem (Section 021 slides)
Matthew Leingang
 
Clustering tutorial
Lio Gonçalves
 
INFLUENCE OF OVERLAYERS ON DEPTH OF IMPLANTED-HETEROJUNCTION RECTIFIERS
Zac Darcy
 
A MEDIAN BASED DIRECTIONAL CASCADED WITH MASK FILTER FOR REMOVAL OF RVIN
ijistjournal
 
Fuzzy c means_realestate_application
Cemal Ardil
 
Ad

Viewers also liked (19)

PDF
Optical Flow на GPU
MSU GML VideoGroup
 
PDF
Video Inpainting detection using inconsistencies in optical Flow
Cybersecurity Education and Research Centre
 
PDF
Lecture30
zukun
 
PPTX
SYSTEM AND METHOD FOR ACQUIRING OF STATIC IMAGES OF OBJECTS IN MOTION
USP
 
PDF
Robust Block-Matching Motion Estimation of Flotation Froth Using Mutual Infor...
CSCJournals
 
PDF
System and method for motion compensation
Arumai Technologies, Inc.
 
PDF
Block Matching Project
dswazalwar
 
PPT
The motion estimation
sakshij91
 
PDF
A Comparison of Block-Matching Motion Estimation Algorithms
Multimedia and Vision Laboratory at Universidad del Valle
 
PPTX
Curved Wavelet Transform For Image Denoising using MATLAB.
Nikhil Kumar
 
PPTX
Dip review
Harish Reddy
 
PPTX
Image denoising
Haitham Ahmed
 
DOCX
final_project
Inderpreet Kaur
 
PDF
digital image processing, image processing
Kalyan Acharjya
 
PPTX
Image denoising algorithms
Mohammad Sunny
 
PPT
digital image processing
N.CH Karthik
 
PPTX
Image denoising
Abdur Rehman
 
PPTX
Real time image processing ppt
ashwini.jagdhane
 
PDF
Introduction to Digital Image Processing Using MATLAB
Ray Phan
 
Optical Flow на GPU
MSU GML VideoGroup
 
Video Inpainting detection using inconsistencies in optical Flow
Cybersecurity Education and Research Centre
 
Lecture30
zukun
 
SYSTEM AND METHOD FOR ACQUIRING OF STATIC IMAGES OF OBJECTS IN MOTION
USP
 
Robust Block-Matching Motion Estimation of Flotation Froth Using Mutual Infor...
CSCJournals
 
System and method for motion compensation
Arumai Technologies, Inc.
 
Block Matching Project
dswazalwar
 
The motion estimation
sakshij91
 
A Comparison of Block-Matching Motion Estimation Algorithms
Multimedia and Vision Laboratory at Universidad del Valle
 
Curved Wavelet Transform For Image Denoising using MATLAB.
Nikhil Kumar
 
Dip review
Harish Reddy
 
Image denoising
Haitham Ahmed
 
final_project
Inderpreet Kaur
 
digital image processing, image processing
Kalyan Acharjya
 
Image denoising algorithms
Mohammad Sunny
 
digital image processing
N.CH Karthik
 
Image denoising
Abdur Rehman
 
Real time image processing ppt
ashwini.jagdhane
 
Introduction to Digital Image Processing Using MATLAB
Ray Phan
 
Ad

Similar to Introduction to Optial Flow (20)

PDF
A current perspectives of corrected operator splitting (os) for systems
Alexander Decker
 
PDF
A study on singular perturbation correction to bond prices under affine term ...
Frank Fung
 
PDF
EXACT SOLUTIONS OF A FAMILY OF HIGHER-DIMENSIONAL SPACE-TIME FRACTIONAL KDV-T...
cscpconf
 
PDF
A Four Directions Variational Method For Solving Image Processing Problems
Claudia Acosta
 
PDF
Module%201
rns02013
 
PPTX
Some Engg. Applications of Matrices and Partial Derivatives
SanjaySingh011996
 
PDF
On Continuous Approximate Solution of Ordinary Differential Equations
Waqas Tariq
 
PDF
Image formation
potaters
 
PDF
Numerical_PDE_Paper
William Ruys
 
PDF
Efficient Solution of Two-Stage Stochastic Linear Programs Using Interior Poi...
SSA KPI
 
PDF
Presentation of Understanding Sharpness Dynamics in NN Training with a Minima...
Geonhui Yoo
 
PDF
FITTED OPERATOR FINITE DIFFERENCE METHOD FOR SINGULARLY PERTURBED PARABOLIC C...
ieijjournal
 
PDF
FITTED OPERATOR FINITE DIFFERENCE METHOD FOR SINGULARLY PERTURBED PARABOLIC C...
ieijjournal
 
PDF
Fitted Operator Finite Difference Method for Singularly Perturbed Parabolic C...
ieijjournal
 
PDF
An Efficient And Safe Framework For Solving Optimization Problems
Lisa Muthukumar
 
PPT
dalrymple_slides.ppt
AzeemKhan17786
 
PDF
Steven Duplij, Raimund Vogl, "Polyadic Braid Operators and Higher Braiding Ga...
Steven Duplij (Stepan Douplii)
 
PDF
Extended Analysis of Cauchy’s Inequality
IRJET Journal
 
PDF
Cauchy’s Inequality based study of the Differential Equations and the Simple ...
IRJET Journal
 
A current perspectives of corrected operator splitting (os) for systems
Alexander Decker
 
A study on singular perturbation correction to bond prices under affine term ...
Frank Fung
 
EXACT SOLUTIONS OF A FAMILY OF HIGHER-DIMENSIONAL SPACE-TIME FRACTIONAL KDV-T...
cscpconf
 
A Four Directions Variational Method For Solving Image Processing Problems
Claudia Acosta
 
Module%201
rns02013
 
Some Engg. Applications of Matrices and Partial Derivatives
SanjaySingh011996
 
On Continuous Approximate Solution of Ordinary Differential Equations
Waqas Tariq
 
Image formation
potaters
 
Numerical_PDE_Paper
William Ruys
 
Efficient Solution of Two-Stage Stochastic Linear Programs Using Interior Poi...
SSA KPI
 
Presentation of Understanding Sharpness Dynamics in NN Training with a Minima...
Geonhui Yoo
 
FITTED OPERATOR FINITE DIFFERENCE METHOD FOR SINGULARLY PERTURBED PARABOLIC C...
ieijjournal
 
FITTED OPERATOR FINITE DIFFERENCE METHOD FOR SINGULARLY PERTURBED PARABOLIC C...
ieijjournal
 
Fitted Operator Finite Difference Method for Singularly Perturbed Parabolic C...
ieijjournal
 
An Efficient And Safe Framework For Solving Optimization Problems
Lisa Muthukumar
 
dalrymple_slides.ppt
AzeemKhan17786
 
Steven Duplij, Raimund Vogl, "Polyadic Braid Operators and Higher Braiding Ga...
Steven Duplij (Stepan Douplii)
 
Extended Analysis of Cauchy’s Inequality
IRJET Journal
 
Cauchy’s Inequality based study of the Differential Equations and the Simple ...
IRJET Journal
 

Recently uploaded (20)

PPTX
BASICS IN COMPUTER APPLICATIONS - UNIT I
suganthim28
 
PPTX
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
PDF
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
PPTX
20250924 Navigating the Future: How to tell the difference between an emergen...
McGuinness Institute
 
DOCX
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
PPTX
How to Apply for a Job From Odoo 18 Website
Celine George
 
PPTX
Continental Accounting in Odoo 18 - Odoo Slides
Celine George
 
PPTX
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
PPTX
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
PPTX
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
PPTX
Basics and rules of probability with real-life uses
ravatkaran694
 
PPTX
How to Track Skills & Contracts Using Odoo 18 Employee
Celine George
 
PPTX
PROTIEN ENERGY MALNUTRITION: NURSING MANAGEMENT.pptx
PRADEEP ABOTHU
 
PDF
BÀI TẬP TEST BỔ TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KÈM BÀI TẬP NGHE - TIẾNG A...
Nguyen Thanh Tu Collection
 
PPTX
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
PPTX
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
PPTX
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
PPTX
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
DOCX
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
PPTX
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
BASICS IN COMPUTER APPLICATIONS - UNIT I
suganthim28
 
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
20250924 Navigating the Future: How to tell the difference between an emergen...
McGuinness Institute
 
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
How to Apply for a Job From Odoo 18 Website
Celine George
 
Continental Accounting in Odoo 18 - Odoo Slides
Celine George
 
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
Basics and rules of probability with real-life uses
ravatkaran694
 
How to Track Skills & Contracts Using Odoo 18 Employee
Celine George
 
PROTIEN ENERGY MALNUTRITION: NURSING MANAGEMENT.pptx
PRADEEP ABOTHU
 
BÀI TẬP TEST BỔ TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KÈM BÀI TẬP NGHE - TIẾNG A...
Nguyen Thanh Tu Collection
 
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 

Introduction to Optial Flow

  • 1. An Introduction to the Optical Flow Sylvain LOBRY Contents 1 Introduction 2 2 Definition of the optical flow 2 3 Overview of the existing methods 3 3.1 Local methods . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 3.2 Global methods . . . . . . . . . . . . . . . . . . . . . . . . . . 4 4 Further ideas 5 1
  • 2. 1 Introduction Optical flow is defined as the apparent motion of the brightness patterns in image. Computing it leads to many applications, including video compression and motion estimation. It is also the first step of many video inpainting algorithms. Even though the first attempts of computing the optical flow has been made in 1981 by [3], the subject is the object of many recent studies leading to many improvements. In this introduction to the optical flow computation, we will start by giving a formal definition of the problem. The existing methods will be then overviewed and classified. Finally, we will specify a roadmap for this study. 2 Definition of the optical flow In the following, we will only handle the 2D case with 1D values (i.e. gray images). Let I(x, y, t) be the value of the (x, y) pixel at frame t and (u(x, y, t), v(x, y, t)) the flow at the (x, y) pixel at frame t. The main idea of most algorithms for computing optical flow is to use the Brightness Constancy : from a frame to an other, the brightness of a pixel does not change according to the flow. This can be written as : I(x, y, t) = I(x + u, y + v, t + 1) (1) Equation 1 can be approximate with Taylor series to ∂I ∂I ∂I I(x, y, t) = I(x, y, t) + u +v + (2) ∂x ∂y ∂t ∂I ∂I ∂I Introducing the abbreviations Ex = ∂x , Ey = ∂y and Et = ∂t , the following holds : uEx + vEy + Et = 0 (3) Equation 3 is often denoted as the Optical Flow Contraint. We have a single equation with two unknowns. This ill-posed problem is often called the Apperture Problem illustrated by figure 1. 2
  • 3. (a) First frame (b) Second frame Figure 1: We can not tell in which way the line is moving with only those 2 frames. To compute optical flow from equation 3, we must add additional con- straints to obtain a system with more equations. Finding those constraints is the main challenge adressed by articles about optical flow. 3 Overview of the existing methods Methods for computing optical flow can be classified into two categories. The first one is known as local methods whereas the other take a global approach to the problem. 3.1 Local methods Local methods are based on the approximation that the flow does not vary inside small regions. The first method using this assumption is [3]. Following this simple idea, we can obtain, given a window of size n × n 3
  • 4. and by denoting pn the nth pixel inside : Ex (p1 )u + Ey (p1 )v + Et (p1 ) = 0 Ex (p2 )u + Ey (p2 )v + Et (p2 ) = 0 ... Ex (pn2 )u + Ey (pn2 )v + Et (pn2 ) = 0 Thus, this assumption allows us to have n2 equations for 2 unknowns, giving a simple system to solve. Further developpements of this method includes a coarse-to-fine imple- mentation by pyramidal representation of the image. This have two advan- tages : • We can take into account larger displacements. • It can speed-up computations. This coarse-to-fine implementations seem to be the most used optical flow computation algorithm into video inpainting solutions. On the opposite, it has not been the object of many improvements during the recent years for optical flow algorithms. Indeed, the global methods seems to have more potential. 3.2 Global methods Global methods generally works by favoring small first-order derivates of the flow field. The first method to follow this idea is [2] which considers the opti- cal flow computation by defining the measure of departure from smoothness in the flow using an L2 norm : 2 2 2 2 2 ∂u ∂u ∂v ∂v Es = + + + (4) ∂x ∂y ∂x ∂y Using equations 3 (denoted Ec = uEx + vEy + Et ) and 4 and introducing 2 α to balance both terms, we can define the total error to be minimized : Err2 = (α2 Es + Ec ) dx dy 2 2 (5) 4
  • 5. We can note that having a high value for α2 will lead to smoother flows. This factor is application dependant. Other approaches include weightening Es along with the gradients (| I|) to give less importance to areas having a high value for | I|. Indeed, it is more likely to find flow discontinuities at an edge than elsewhere. The equation to be minimized become : Err2 = (α2 w(| I|)Es + Ec ) dx dy 2 2 (6) Equation 6 can be improved by adopting an anisotropic approach such as in [5]. Some methods also look at the second-order derivate ([4]). A method which might have a lot of potential is [1]. It considers several energies including ones given by high level descriptors such as SIFT. We will see in section 4 an idea to improve it. 4 Further ideas Understanding existing methods implies implementing a certain amount of them. After doing that, some idea must be considered : • We can make a better use (than in [1]) of high level descriptors. Whereas in [1] the descriptor is used only fot the computation of the optical flow where it is defined, we want to use it to guide our computation. Indeed, those descriptors gives much more robust information than the optical flow we could compute gives. • We can use the fact that the optical flow is temporally smooth. In section 3.2, we have seen how to use the fact that the optical flow is smooth inside a frame. We could apply this idea to many frames and trying to find the smoothest flow at each point. This idea could be combined with the traditionals global methods in order to improve their results. Trying those ideas will be the main challenge of this semester. 5
  • 6. References [1] Thomas Brox and Jitendra Malik. Large displacement optical flow: De- scriptor matching in variational motion estimation. IEEE Trans. Pattern Anal. Mach. Intell., 33(3):500–513, March 2011. [2] Berthold K. P. Horn and Brian G. Schunck. Determining optical flow. ARTIFICAL INTELLIGENCE, 17:185–203, 1981. [3] Bruce D. Lucas and Takeo Kanade. An iterative image registration tech- nique with an application to stereo vision. In Proceedings of the 7th international joint conference on Artificial intelligence - Volume 2, pages 674–679, San Francisco, CA, USA, 1981. Morgan Kaufmann Publishers Inc. [4] Werner Trobin and Daniel Cremers. An unbiased second-order prior for high-accuracy motion estimation ?, 2008. [5] Manuel Werlberger, Werner Trobin, Thomas Pock, Andreas Wedel, Daniel Cremers, and Horst Bischof. Anisotropic huber-l1 optical flow. In Proceedings of the British Machine Vision Conference (BMVC), Lon- don, UK, September 2009. to appear. 6