Commit 6734a2bf authored by Julia Garriga Ferrer's avatar Julia Garriga Ferrer
Browse files

[core][tests] Adds test for sift in components matching

parent 24faf95d
Pipeline #22236 failed with stage
in 2 minutes and 20 seconds
......@@ -63,8 +63,11 @@ class TestComponentsMatching(unittest.TestCase):
self.assertNotEqual(ed, 0)
def test_match_components(self):
def test_sift_match(self):
final_matches, matches = self.componentsMatching.match_components(method=Method.sift_feature_matching)
self.assertEqual(final_matches[0], 1)
def test_orb_match(self):
final_matches, matches = self.componentsMatching.match_components(method=Method.orb_feature_matching)
self.assertEqual(final_matches[0], 1)
......@@ -79,3 +82,8 @@ class TestComponentsMatching(unittest.TestCase):
final_matches, matches = self.componentsMatching.match_components(method=Method.euclidean_distance)
stack = self.componentsMatching.draw_matches(final_matches, matches)
self.assertEqual(stack[2].shape, (512, 1024))
def test_draw_matches2(self):
final_matches, matches = self.componentsMatching.match_components(method=Method.sift_feature_matching)
stack = self.componentsMatching.draw_matches(final_matches, matches)
self.assertEqual(stack[2].shape, (512, 1024))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment