Commit 52828686 authored by Adam Paquette's avatar Adam Paquette
Browse files

Added fundmental method to test

parent 4b3e65e8
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -69,6 +69,11 @@ class TestTwoImageMatching(unittest.TestCase):
        # Create fundamental matrix
        cg.compute_fundamental_matrices(clean_keys= ['symmetry', 'ratio'])

        # Create fundamental matrix
        cg.compute_fundamental_matrix(clean_keys=['fundamental'])
        print(edge.masks['fundamental'].sum())


        for source, destination, edge in cg.edges_iter(data=True):

            # Perform the symmetry check
@@ -76,6 +81,8 @@ class TestTwoImageMatching(unittest.TestCase):
            # Perform the ratio test
            self.assertIn(edge.masks['ratio'].sum(), range(30, 100))

            # self.assertIn(edge.masks['fundamental'].sum())

        # Step: Compute the homographies and apply RANSAC
        cg.compute_homographies(clean_keys=['symmetry', 'ratio'])