From 433523805ff04df6603d560e69d0d4ba9ab60847 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6nberger?= Date: Fri, 29 Jan 2016 09:23:36 +0100 Subject: [PATCH] Fix matching test cases --- skimage/feature/tests/test_match.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/skimage/feature/tests/test_match.py b/skimage/feature/tests/test_match.py index 31d20d36..770dc37b 100644 --- a/skimage/feature/tests/test_match.py +++ b/skimage/feature/tests/test_match.py @@ -36,11 +36,13 @@ def test_binary_descriptors_lena_rotation_crosscheck_false(): extractor = BRIEF(descriptor_size=512) - keypoints1 = corner_peaks(corner_harris(img), min_distance=5) + keypoints1 = corner_peaks(corner_harris(img), min_distance=5, + threshold_abs=0, threshold_rel=0.1) extractor.extract(img, keypoints1) descriptors1 = extractor.descriptors - keypoints2 = corner_peaks(corner_harris(rotated_img), min_distance=5) + keypoints2 = corner_peaks(corner_harris(rotated_img), min_distance=5, + threshold_abs=0, threshold_rel=0.1) extractor.extract(rotated_img, keypoints2) descriptors2 = extractor.descriptors @@ -69,11 +71,13 @@ def test_binary_descriptors_lena_rotation_crosscheck_true(): extractor = BRIEF(descriptor_size=512) - keypoints1 = corner_peaks(corner_harris(img), min_distance=5) + keypoints1 = corner_peaks(corner_harris(img), min_distance=5, + threshold_abs=0, threshold_rel=0.1) extractor.extract(img, keypoints1) descriptors1 = extractor.descriptors - keypoints2 = corner_peaks(corner_harris(rotated_img), min_distance=5) + keypoints2 = corner_peaks(corner_harris(rotated_img), min_distance=5, + threshold_abs=0, threshold_rel=0.1) extractor.extract(rotated_img, keypoints2) descriptors2 = extractor.descriptors