Optical flow explained

Optical flow or optic flow is the pattern of apparent motion of objects, surfaces, and edges in a visual scene caused by the relative motion between an observer and a scene.[1] [2] Optical flow can also be defined as the distribution of apparent velocities of movement of brightness pattern in an image.[3]

The concept of optical flow was introduced by the American psychologist James J. Gibson in the 1940s to describe the visual stimulus provided to animals moving through the world.[4] Gibson stressed the importance of optic flow for affordance perception, the ability to discern possibilities for action within the environment. Followers of Gibson and his ecological approach to psychology have further demonstrated the role of the optical flow stimulus for the perception of movement by the observer in the world; perception of the shape, distance and movement of objects in the world; and the control of locomotion.[5]

The term optical flow is also used by roboticists, encompassing related techniques from image processing and control of navigation including motion detection, object segmentation, time-to-contact information, focus of expansion calculations, luminance, motion compensated encoding, and stereo disparity measurement.[6] [7]

Estimation

Sequences of ordered images allow the estimation of motion as either instantaneous image velocities or discrete image displacements. Fleet and Weiss provide a tutorial introduction to gradient based optical flow.[8] John L. Barron, David J. Fleet, and Steven Beauchemin provide a performance analysis of a number of optical flow techniques. It emphasizes the accuracy and density of measurements.[9]

The optical flow methods try to calculate the motion between two image frames which are taken at times

t

and

t+\Deltat

at every voxel position. These methods are called differential since they are based on local Taylor series approximations of the image signal; that is, they use partial derivatives with respect to the spatial and temporal coordinates.

For a (2D + t)-dimensional case (3D or n-D cases are similar) a voxel at location

(x,y,t)

with intensity

I(x,y,t)

will have moved by

\Deltax

,

\Deltay

and

\Deltat

between the two image frames, and the following brightness constancy constraint can be given:

I(x,y,t)=I(x+\Deltax,y+\Deltay,t+\Deltat)

Assuming the movement to be small, the image constraint at

I(x,y,t)

with Taylor series can be developed to get:

I(x+\Deltax,y+\Deltay,t+\Deltat)=I(x,y,t)+

\partialI
\partialx

\Deltax+

\partialI
\partialy

\Deltay+

\partialI
\partialt

\Deltat+{}

higher-order termsBy truncating the higher order terms (which performs a linearization) it follows that:
\partialI
\partialx

\Deltax+

\partialI
\partialy

\Deltay+

\partialI
\partialt

\Deltat=0

or, dividing by

\Deltat

,
\partialI
\partialx
\Deltax
\Deltat

+

\partialI
\partialy
\Deltay
\Deltat

+

\partialI
\partialt
\Deltat
\Deltat

=0

which results in
\partialI
\partialx
V
x+\partialI
\partialy
V
y+\partialI
\partialt

=0

where

Vx,Vy

are the

x

and

y

components of the velocity or optical flow of

I(x,y,t)

and

\tfrac{\partialI}{\partialx}

,

\tfrac{\partialI}{\partialy}

and

\tfrac{\partialI}{\partialt}

are the derivatives of the image at

(x,y,t)

in the corresponding directions.

Ix

,

Iy

and

It

can be written for the derivatives in the following.

Thus:

IxVx+IyVy=-It

or

\nablaI\vec{V}=-It

This is an equation in two unknowns and cannot be solved as such. This is known as the aperture problem of the optical flow algorithms. To find the optical flow another set of equations is needed, given by some additional constraint. All optical flow methods introduce additional conditions for estimating the actual flow.

Methods for determination

Many of these, in addition to the current state-of-the-art algorithms are evaluated on the Middlebury Benchmark Dataset.[13] [14] Other popular benchmark datasets are KITTI and Sintel.

Uses

Motion estimation and video compression have developed as a major aspect of optical flow research. While the optical flow field is superficially similar to a dense motion field derived from the techniques of motion estimation, optical flow is the study of not only the determination of the optical flow field itself, but also of its use in estimating the three-dimensional nature and structure of the scene, as well as the 3D motion of objects and the observer relative to the scene, most of them using the image Jacobian.[15]

Optical flow was used by robotics researchers in many areas such as: object detection and tracking, image dominant plane extraction, movement detection, robot navigation and visual odometry. Optical flow information has been recognized as being useful for controlling micro air vehicles.[16]

The application of optical flow includes the problem of inferring not only the motion of the observer and objects in the scene, but also the structure of objects and the environment. Since awareness of motion and the generation of mental maps of the structure of our environment are critical components of animal (and human) vision, the conversion of this innate ability to a computer capability is similarly crucial in the field of machine vision.[17]

Consider a five-frame clip of a ball moving from the bottom left of a field of vision, to the top right. Motion estimation techniques can determine that on a two dimensional plane the ball is moving up and to the right and vectors describing this motion can be extracted from the sequence of frames. For the purposes of video compression (e.g., MPEG), the sequence is now described as well as it needs to be. However, in the field of machine vision, the question of whether the ball is moving to the right or if the observer is moving to the left is unknowable yet critical information. Not even if a static, patterned background were present in the five frames, could we confidently state that the ball was moving to the right, because the pattern might have an infinite distance to the observer.

Optical flow sensor

Optical flow should not be confused with Optical flowmeter.

Various configurations of optical flow sensors exist. One configuration is an image sensor chip connected to a processor programmed to run an optical flow algorithm. Another configuration uses a vision chip, which is an integrated circuit having both the image sensor and the processor on the same die, allowing for a compact implementation.[18] [19] An example of this is a generic optical mouse sensor used in an optical mouse. In some cases the processing circuitry may be implemented using analog or mixed-signal circuits to enable fast optical flow computation using minimal current consumption.

One area of contemporary research is the use of neuromorphic engineering techniques to implement circuits that respond to optical flow, and thus may be appropriate for use in an optical flow sensor.[20] Such circuits may draw inspiration from biological neural circuitry that similarly responds to optical flow.

Optical flow sensors are used extensively in computer optical mice, as the main sensing component for measuring the motion of the mouse across a surface.

Optical flow sensors are also being used in robotics applications, primarily where there is a need to measure visual motion or relative motion between the robot and other objects in the vicinity of the robot. The use of optical flow sensors in unmanned aerial vehicles (UAVs), for stability and obstacle avoidance, is also an area of current research.[21]

See also

External links

Notes and References

  1. Book: [{{google books|plainurl=yes|id=CSgOAAAAQAAJ|pg=PA77|text=optical flow}} Thinking in Perspective: Critical Essays in the Study of Thought Processes ]. Burton . Andrew . Radford . John . Routledge . 1978 . 978-0-416-85840-2.
  2. Book: [{{google books|plainurl=yes|id=-I_Hazgqx8QC|pg=PA414|text=optical flow}} Electronic Spatial Sensing for the Blind: Contributions from Perception ]. Warren . David H. . Strelow . Edward R. . Springer . 1985 . 978-90-247-2689-9.
  3. Horn . Berthold K.P. . Schunck . Brian G. . August 1981 . Determining optical flow . Artificial Intelligence . en . 17 . 1–3 . 185–203 . 10.1016/0004-3702(81)90024-2. 1721.1/6337 .
  4. Book: Gibson, J.J. . The Perception of the Visual World . Houghton Mifflin . 1950.
  5. Royden . C. S. . Moore . K. D. . 2012 . Use of speed cues in the detection of moving objects by moving observers . Vision Research . 59 . 17–24 . 10.1016/j.visres.2012.02.006. 22406544 . 52847487 . free .
  6. Book: Optical Flow Using Color Information . Aires . Kelson R. T. . Santana . Andre M. . Medeiros . Adelardo A. D. . ACM New York, NY, USA . 2008 . 978-1-59593-753-7.
  7. The computation of optical flow . Beauchemin . S. S. . Barron . J. L. . ACM Computing Surveys . ACM New York, USA . 1995. 27 . 3 . 433–466 . 10.1145/212094.212141 . 1334552 . free .
  8. Book: Handbook of Mathematical Models in Computer Vision . Fleet . David J. . Weiss . Yair . Springer . 2006 . 978-0-387-26371-7 . Paragios . Nikos . 237–257 . Optical Flow Estimation . Chen . Yunmei . Faugeras . Olivier D. . http://www.cs.toronto.edu/~fleet/research/Papers/flowChapter05.pdf.
  9. Barron . John L. . Fleet . David J. . Beauchemin . Steven . amp . 1994 . Performance of optical flow techniques . International Journal of Computer Vision . 12 . 43–77 . 10.1.1.173.481 . 10.1007/bf01420984. 1290100 .
  10. Zhang . G. . Chanson . H. . Hubert Chanson . 2018 . Application of Local Optical Flow Methods to High-Velocity Free-surface Flows: Validation and Application to Stepped Chutes . Experimental Thermal and Fluid Science . 90 . 186–199 . 10.1016/j.expthermflusci.2017.09.010. 2018ETFS...90..186Z .
  11. Book: Glyn W. Humphreys and [[Vicki Bruce]] . Visual Cognition . Psychology Press . 1989 . 978-0-86377-124-8.
  12. Book: Dense Image Registration through MRFs and Efficient Linear Programming . B. Glocker . N. Komodakis . G. Tziritas . N. Navab . N. Paragios . Medical Image Analysis Journal . 2008.
  13. Baker . Simon . Scharstein . Daniel . Lewis . J. P. . Roth . Stefan . Black . Michael J. . Szeliski . Richard . March 2011 . A Database and Evaluation Methodology for Optical Flow . International Journal of Computer Vision . en . 92 . 1 . 1–31 . 10.1007/s11263-010-0390-2 . 316800 . 0920-5691. free .
  14. Web site: Optical Flow . Baker . Simon . Scharstein . Daniel . vision.middlebury.edu . 2019-10-18 . Lewis . J. P. . Roth . Stefan . Black . Michael J. . Szeliski . Richard.
  15. Web site: Corke. Peter. Peter Corke. The Image Jacobian. QUT Robot Academy. 8 May 2017.
  16. Barrows . G. L. . Chahl . J. S. . Srinivasan . M. V. . 2003 . Biologically inspired visual sensing and flight control . Aeronautical Journal . 107 . 1069 . 159–268 . 10.1017/S0001924000011891 . 108782688 . Cambridge University Press .
  17. Book: Brown, Christopher M. . [{{google books|plainurl=yes|id=c97huisjZYYC|pg=PA133|text=optic+flow}} Advances in Computer Vision ]. Lawrence Erlbaum Associates . 1987 . 978-0-89859-648-9.
  18. Book: Moini, Alireza . Vision Chips . 2000 . Springer US . 9781461552673 . Boston, MA . 851803922.
  19. Book: Mead, Carver . Analog VLSI and neural systems . 1989 . Addison-Wesley . 0201059924 . Reading, Mass. . 17954003 . registration .
  20. Book: Stocker, Alan A. . Analog VLSI circuits for the perception of visual motion . 2006 . John Wiley & Sons . 0470034882 . Chichester, England . 71521689.
  21. Book: Flying insects and robots . 2009 . Springer . 9783540893936 . Floreano . Dario . Heidelberg . 495477442 . Zufferey . Jean-Christophe . Srinivasan . Mandyam V. . Ellington . Charlie.