mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 21:20:18 +08:00
test for the issue #2901
This commit is contained in:
parent
18b2d6bdbb
commit
09fe5cddf1
@ -1,5 +1,6 @@
|
|||||||
package org.opencv.test.features2d;
|
package org.opencv.test.features2d;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -204,7 +205,17 @@ public class BruteForceHammingDescriptorMatcherTest extends OpenCVTestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void testRadiusMatchMatListOfListOfDMatchFloat() {
|
public void testRadiusMatchMatListOfListOfDMatchFloat() {
|
||||||
fail("Not yet implemented");
|
Mat train = getTrainDescriptors();
|
||||||
|
Mat query = getQueryDescriptors();
|
||||||
|
ArrayList<MatOfDMatch> matches = new ArrayList<MatOfDMatch>();
|
||||||
|
|
||||||
|
matcher.radiusMatch(query, train, matches, 50.f);
|
||||||
|
|
||||||
|
assertEquals(matches.size(), 4);
|
||||||
|
assertTrue(matches.get(0).empty());
|
||||||
|
assertMatEqual(matches.get(1), new MatOfDMatch(truth[1]), EPS);
|
||||||
|
assertMatEqual(matches.get(2), new MatOfDMatch(truth[2]), EPS);
|
||||||
|
assertTrue(matches.get(3).empty());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testRadiusMatchMatListOfListOfDMatchFloatListOfMat() {
|
public void testRadiusMatchMatListOfListOfDMatchFloatListOfMat() {
|
||||||
|
Loading…
Reference in New Issue
Block a user