feature-tracking

Android: Using calcOpticalFlowPyrLK with MatOfPoint2f

♀尐吖头ヾ 提交于 2019-12-07 17:58:27
问题 I have been unable to use calcOpticalFlowPyrLK with MatOfPoint2f. I declared my types as follows: private Mat mPreviousGray; // previous gray-level image private List<MatOfPoint2f> points; // tracked features private MatOfPoint initial; // initial position of tracked points And use the following to find and track features (My code is based on a sample optical flow application in C++ by Robert Laganiere.) // Called whenever a new frame m is captured private void OpticalFlow(Mat m, int