Skip to content

Commit

Permalink
Dont iterate
Browse files Browse the repository at this point in the history
  • Loading branch information
pierotofy committed Oct 21, 2023
1 parent 42851de commit 343dea1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions opensfm/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ def extract_features_sift(
detector.setDouble("contrastThreshold", sift_peak_threshold)
points = detector.detect(image)
logger.debug("Found {0} points in {1}s".format(len(points), time.time() - t))
break # TODO REMOVE!
if len(points) < features_count and sift_peak_threshold > 0.0001:
sift_peak_threshold = (sift_peak_threshold * 2) / 3
logger.debug("reducing threshold")
Expand Down

0 comments on commit 343dea1

Please sign in to comment.