Skip to content

Conversation

@StonerLing
Copy link
Contributor

@StonerLing StonerLing commented Jul 7, 2025

This PR adds a min_num_neighbors option to spatial_matcher, ensuring that each image is matched with at least the specified number of neighbors. This makes matching more adaptive to different image distributions and removes the need to manually tune max_distance in some cases.

  • Adds min_num_neighbors to SpatialMatchingOptions. When set to a positive value, the matcher will always include at least that number of neighbors, even if some exceed max_distance
  • Adds CMakeUserPresets.json and .clangd to .gitignore

@ahojnnes ahojnnes enabled auto-merge (squash) July 8, 2025 11:12
@ahojnnes
Copy link
Contributor

ahojnnes commented Jul 8, 2025

Thank you!

@ahojnnes ahojnnes merged commit 43ff7c4 into colmap:main Jul 8, 2025
14 checks passed
@StonerLing StonerLing deleted the feature/min-num-neighbors branch July 9, 2025 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants