Optical Flow Vectors Direction
4 views (last 30 days)
Show older comments
Hello
I am using inbuilt function for computing dense opticalflow on an image
I have also obtained the directions of flow vectors. Now I would llike to know, "What is the reference used for computing these flow directions?"
Please Help
Thank you
0 Comments
Answers (1)
Vishnu Sreekumar
on 25 Jun 2019
I have struggled with this a bit. I've come to the conclusion that video applications typically treat the rows of matrices as X and columns as the Y dimension. So that means when you plot your image using imagesc, the X direction is top to bottom and Y direction is left to right. So when you use quiver to plot the arrows, you will need to do quiver(flow.Vy, flow.Vx). In general, it is advisable to watch videos and the flows, plot the directions (rose(flow.Orientation(chosenPixel))) and check how directions map to what flow.Orientation tells you.
0 Comments
See Also
Categories
Find more on Optics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!