Loading autocnet/matcher/outlier_detector.py +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading Loading
autocnet/matcher/outlier_detector.py +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading