Query related to optical flow calculation

2 views (last 30 days)
I am calculating optical flow of video frames using the follwing basic lines of code of optical flow. I am also getting good results. My code is running well. I just want to have knowledge about optical flow.
flow = estimateFlow(opticFlow,I) % estimates optical flow between two consecutive video frames.
Where opticFlow is the object for optical flow estimation.
I want to ask, in the line of code written above, with respect to which frame I am calculating the optical flow. It's written there consecutive frames but from where it is taking the input of previous frame for the current frame I written in the code.
If someone can please solve my query, it will be of great help.
In case, you need more clarity on the question please let me know

Accepted Answer

Vinayak
Vinayak on 5 Jan 2023
More insights regarding the working on the opticFlow command and its underlying implementation can be found on the following MATLAB documentation link below
A generic overview of opticFlow can be inferred through here
https://www.mathworks.com/discovery/optical-flow.html

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!