Commit 98188ac0 authored by Adam Paquette's avatar Adam Paquette
Browse files

Removed get_matches method.

parent 8f7a0f35
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
@@ -886,18 +886,3 @@ class CandidateGraph(nx.Graph):
                return False

        return True

    def get_matches(self, clean_keys=[]):
        matches = []
        for s, d, e in self.edges_iter(data=True):
            match, _ = e.clean(clean_keys=clean_keys)
            match = match[['source_image', 'source_idx',
                           'destination_image', 'destination_idx']]
            skps = e.get_keypoints('source', index=match.source_idx)
            skps.columns = ['source_x', 'source_y']
            dkps = e.get_keypoints('destination', index=match.destination_idx)
            dkps.columns = ['destination_x', 'destination_y']
            match = match.join(skps, on='source_idx')
            match = match.join(dkps, on='destination_idx')
            matches.append(match)
        return matches