Commit 423f516c authored by Jay's avatar Jay Committed by jay
Browse files

Update ratio test to match textual description

parent 5435f82f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -69,7 +69,7 @@ def distance_ratio(matches, ratio=0.8):
                # The distances from the unique points are identical
                mask[counter: counter + group_size] = False
                counter += group_size
            elif unique[0] < ratio * unique[1]:
            elif unique[1] / unique[0] > ratio:
                # The ratio test passes
                mask[counter] = True
                mask[counter + 1:counter + group_size] = False