cv.calcOpticalFlowFarneback - MATLAB File Help
cv.calcOpticalFlowFarneback

Computes a dense optical flow using the Gunnar Farneback's algorithm

flow = cv.calcOpticalFlowFarneback(prevImg, nextImg)
flow = cv.calcOpticalFlowFarneback(prevImg, nextImg, 'OptionName',optionValue, ...)

Input

Output

Options

The function finds an optical flow for each prevImg pixel using the [Farneback2003] alorithm so that:

prevImg(y,x) ~ nextImg(y + flow(y,x,2), x + flow(y,x,1))

References

[Farneback2003]:

Gunnar Farneback. "Two-frame motion estimation based on polynomial expansion". In Image Analysis, pages 363-370. Springer, 2003.

See also