How to use the pyramid list from buildOpticalFlowPyramid as input for calcOpticalFlowPyrLK?

asked 2014-01-28 09:33:11 -0600

Cindy gravatar image

updated 2014-02-25 16:29:33 -0600

Rui Marques gravatar image

The function which is used to calculate pyramid in android is :

public static int buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel),

whereas the function used to calculate optical flow is :

public static void calcOpticalFlowPyrLK(Mat prevImg, Mat nextImg, MatOfPoint2f prevPts, MatOfPoint2f nextPts, MatOfByte status, MatOfFloat err, Size winSize, int maxLevel, TermCriteria criteria, int flags, double minEigThreshold)

How to use the List<Mat> pyramid as input of the structure Mat prevImg. A error say it's incompatible.

Thank you very much

edit retag flag offensive close merge delete

Comments

sounds like a bug to me.

any special reason, you want to build your own pyramid ? you could still just use consecutive images.

berak gravatar imageberak ( 2014-01-28 10:20:13 -0600 )edit