I am using OpenCV wrapper - Emgu CV, and I use optical flow to implement a speed tracker I'm trying to, but I can not understand a way to combine the horizontal and vertical information obtained from the o algorithm:
flowx = new image & lt; Gray, Float & gt; (Shape); Flow = new image & lt; Gray, Float & gt; (Shape); Opticalflow (currmg, prevImg, new size (15, 15), flow, flow);
My problem does not know how to combine information of vertical and horizontal movement to create a tracker of moving object? A new image?
By the way, is there an easy way to display the flow information on the current frame?
Thanks in advance.
Here is the function defined by me, you can find full source code attached to the video
zero computeDenseOpticalFlow () {// Horn and Schunk algo velx = new Image & lt; Gray, Float & gt; (FaceGrayImage.Size); Vely = new image & lt; Gray, Float & gt; (FaceNextGrayImage.Size); Optical Flow HS (FaceGreijs, Faceengreimage, True, Wolfs, Volley, 0.1D, New MCVTRmcitrea (100)); #region Dense optical flow draw size winSize = new size (10, 10); Vectorfield x = (math) Round ((double) facialgricked. With / juggy width); Vectorfield y = (int) math Round ((double) facegreiseme.height / junkies.height); SumVectorFieldX = 0f; SumVectorFieldY = 0f; Vectorfield = new point [vectorfield x] []; For (Int i = 0; I
Comments
Post a Comment