how distance travelled by pixels between frames is calculated using vision.Opticalflow

5 views (last 30 days)
vision.optical flow returns an optical flow System object, HOF, that estimates the direction and speed of object motion from one image to another, or from one video frame to another. In the code attached the pixels are moving in horizontal direction only but the final output which i am getting isn't matching. please help how exactly vision.opticalflow is working.

Answers (0)

Community Treasure Hunt

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

Start Hunting!