Optical Flow in Single Video Frame

17 views (last 30 days)
youngz on 18 Jul 2019
Edited: Julius Å on 11 Feb 2021
I am looking to the example available in the pages of the different algorithms implementations of optical frame (e.g., https://it.mathworks.com/help/vision/ref/opticalflowlk.html ).
The optical frame should estimate the direction and speed between two frames in a video. Anyway, in the example, it gets in input a single video frame - i.e. flow = estimateFlow(opticFlow,frameGray); -. Consequentially, how it is able to compute the flow using a single image?

Answers (1)

Roshni Garnayak
Roshni Garnayak on 2 Aug 2019
In the example (https://www.mathworks.com/help/vision/ref/opticalflowlk.html), an optical flow object has been created using the class opticalFlowLK. This class has a function estimateFlow which computes the optical flow between the frame specified in the argument of the function and the previous frame.
For detailed working of the function, you can type the following command in the Command Window:
edit estimateFlow
Julius Å
Julius Å on 11 Feb 2021
I'm also interested in the answer to this question. Have you found out how this can be done?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!