1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

Migrated goodFeaturesToTrack to features module.

This commit is contained in:
Alexander Smorkalov
2026-04-13 15:23:48 +03:00
parent 53d9a67cf3
commit 5166a6b716
30 changed files with 164 additions and 136 deletions
@@ -1007,26 +1007,6 @@ public class ImgprocTest extends OpenCVTestCase {
assertMatEqual(truth, dst);
}
public void testGoodFeaturesToTrackMatListOfPointIntDoubleDouble() {
Mat src = gray0;
Imgproc.rectangle(src, new Point(2, 2), new Point(8, 8), new Scalar(100), -1);
MatOfPoint lp = new MatOfPoint();
Imgproc.goodFeaturesToTrack(src, lp, 100, 0.01, 3);
assertEquals(4, lp.total());
}
public void testGoodFeaturesToTrackMatListOfPointIntDoubleDoubleMatIntBooleanDouble() {
Mat src = gray0;
Imgproc.rectangle(src, new Point(2, 2), new Point(8, 8), new Scalar(100), -1);
MatOfPoint lp = new MatOfPoint();
Imgproc.goodFeaturesToTrack(src, lp, 100, 0.01, 3, gray1, 4, 3, true, 0);
assertEquals(4, lp.total());
}
public void testGrabCutMatMatRectMatMatInt() {
fail("Not yet implemented");
}