Loading autocnet/graph/network.py +0 −15 Original line number Diff line number Diff line Loading @@ -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 Loading
autocnet/graph/network.py +0 −15 Original line number Diff line number Diff line Loading @@ -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