Ask Your Question
1

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:

Video.calcOpticalFlowPyrLK(Cadr_Prev,Cadr_Current,
 Point_PrevPts[iindex],
 Point_CurrentPts[iindex],
 _bstatus[iindex], 
 _trackError[iindex]);

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
2

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

Comments

Its work. Thank you very much!

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

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.

Thanks.

edit flag offensive delete link more

Question Tools

Stats

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

Seen: 866 times

Last updated: Dec 14 '12