Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

ImageDisplacements

ImageDisplacements[{image1,image2,,imagen}]
gives estimated horizontal and vertical displacements between consecutive images.

ImageDisplacements[{image1,image2,,imagen},flow]
uses flow as an initial estimate for displacement between image1 and image2.

Details and OptionsDetails and Options

  • ImageDisplacements, also known as dense optical flow, compares consecutive images imagei and imagei+1 and returns a matrix of displacements {δx,δy} for every pixel of imagei.
  • All imagei should have the same dimensions.
  • ImageDisplacements accepts a MaxIterations option. By default, MaxIterations->10 is used.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Compute the displacement between two images:

In[1]:=
Click for copyable input
Out[1]=

Plot the displacements:

In[3]:=
Click for copyable input
Out[3]=

Compute the displacements between consecutive images of a list:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
Out[3]=
Introduced in 2016
(11.0)