Optical Flow Vectors Direction

조회 수: 4 (최근 30일)
Manasi Pathade
Manasi Pathade 2019년 4월 11일
답변: Vishnu Sreekumar 2019년 6월 25일
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

답변 (1개)

Vishnu Sreekumar
Vishnu Sreekumar 2019년 6월 25일
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.

Community Treasure Hunt

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

Start Hunting!

Translated by