Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Which version of OpenCV is this? 2.4. something?

In 3.4.1, there's a built-in convert function. Aaand, in 2.4.13 it's HERE.

That gets you to a vector<keypoint> where you can use the Keypoint::convert function to turn it into a vector<point2f>, and that goes straight into the optical flow.