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