MATLAB Answers

Optical Flow Vectors Direction

조회 수: 9(최근 30일)
Manasi Pathade
Manasi Pathade 11 Apr 2019
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

댓글을 달려면 로그인하십시오.

답변(1개)

Vishnu Sreekumar
Vishnu Sreekumar 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

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by