Skip to content

Commit

Permalink
Merge pull request #1694 from pierotofy/matcherfix
Browse files Browse the repository at this point in the history
Always use matcher-neighbors if less than 2 pictures
  • Loading branch information
pierotofy authored Sep 6, 2023
2 parents ebba01a + 8276751 commit 340e32a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions opendm/osfm.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,11 @@ def setup(self, args, images_path, reconstruction, append_config = [], rerun=Fal
else:
matcher_graph_rounds = 50
matcher_neighbors = 0

# Always use matcher-neighbors if less than 2 pictures
if len(photos) <= 2:
matcher_graph_rounds = 0
matcher_neighbors = 2

config = [
"use_exif_size: no",
Expand Down

0 comments on commit 340e32a

Please sign in to comment.