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 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.

Examples

open allclose all

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]=

Applications  (1)

Interactive Examples  (1)

See Also

ImageFeatureTrack  ImageCorrespondingPoints  FindGeometricTransform

Introduced in 2016
(11.0)