I have been evaluating Visionworks Motion estimator. I could able to run the example in visionworks and also I could able to use Motion Estimator of my own. But I have one question about analyzing the motion field output vx_image.
When I ran the Motion Estimator example, it is showing motion area and arrows pointing to which direction the object is moving. The rendering part is in Render.
How could I extract the motion points and their direction of movement in my application? Could anyone help me here?
ime will evaluate the motion vector for two adjacency frames and store them in the mfOutROI_.
You can access the motion field by calling ime.getMotionField().
The detailed structure of IterativeMotionEstimator is defined in the iterative_motion_estimator.hpp.
The mfOutROI_ contains a pixel-level motion field.
This indicates that value(x, y) is the motion of the point (x, y) from the current frame to the previous frame (backward motion).
More precisely, for point(x, y) with field value(mx, my) in frame N.
The matched point in the frame N-1 is (x+mx, y+my).