Ask Your Question

Work with function calcOpticalFlowPyrLK

asked 2012-11-23 00:09:50 -0600

FreeVMS gravatar image

Can we use «MatOfPoint2f prevPts» an array of all the points MatOfPoint2f[] in method Video.calcOpticalFlowPyrLK as an input parameter, like in OpenCV for Windows?

For Android I only can do the following:


P.S. I run in cycle the function calcOpticalFlowPyrLK for each point and it affects on productivity.

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted

answered 2012-11-23 01:44:17 -0600

Andrey Pavlenko gravatar image

You can create MatOfPoint2f from Point[] array via MatOfPoint2f::fromArray() method. Is this what you mean?

edit flag offensive delete link more


Its work. Thank you very much!

FreeVMS gravatar imageFreeVMS ( 2012-11-25 22:54:36 -0600 )edit

answered 2012-12-14 03:10:46 -0600

V.G. gravatar image

If you believe, that this issue has been resolved, could you please accept the most appropriate answer (even if it's your own one) and close this question. It would greatly improve navigation and overall experience with OpenCV Q&A.


edit flag offensive delete link more

Question Tools


Asked: 2012-11-23 00:09:50 -0600

Seen: 834 times

Last updated: Dec 14 '12