Click here to Skip to main content
15,884,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Im trying to set different color based on the object movement using Optical Flow on EmguCv.

https://www.youtube.com/watch?v=ssINeWRb58M[^]

Please refer the above video.

I was able to get the flow of two consecutive frames using
C#
OpticalFlow.Farneback(prev, frame1,velx, vely, 0.5, 1, 1, 2, 5, 1.1,
                  Emgu.CV.CvEnum.OPTICALFLOW_FARNEBACK_FLAG.USE_INITIAL_FLOW);


Still I cannot Understand how to use the velx and vely to visualize the flow like in the video.Can someone help me with this.I really appreciate it.

thanks
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900