Commit 2ca2d016 authored by jay's avatar jay
Browse files

FIxes x/y pixel coordinate issue

parent 18118f81
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -201,11 +201,10 @@ class Edge(dict, MutableMapping):
        access to x,y easier as a join on the keypoints is not requires.
        """
        skps = self.get_keypoints(self.source, index=self.matches.source_idx)
        self.matches.sort_values(by='source_idx')[['source_x', 'source_y']] = skps.sort_index().values

        dkps = self.get_keypoints(self.destination, index=self.matches.destination_idx)
        self.matches['source_x'] = skps.x.values
        self.matches['source_y'] = skps.y.values
        self.matches['destination_x'] = dkps.x.values
        self.matches['destination_y'] = dkps.y.values
        self.matches.sort_values(by='destination_idx')[['destination_x', 'destination_y']] = dkps.sort_index().values

    def project_matches(self, semimajor, semiminor, on='source', srid=None):
        """