How to use the pyramid list from buildOpticalFlowPyramid as input for calcOpticalFlowPyrLK?
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
sounds like a bug to me.
any special reason, you want to build your own pyramid ? you could still just use consecutive images.