Skip to content

Conversation

@sarlinpe
Copy link
Member

#3465 moved the call to MaxNumKeypoints from FeatureMatcherController::Setup to its constructor. Unfortunately, in the automatic reconstructor, the controllers are all created upfront, so MaxNumKeypoints is called when the database is empty and thus returns 0.

The proposed fix keeps the logic simple, with the only drawback that MaxNumKeypoints is called in each worker, which is OK since it's a cheap call.

@sarlinpe sarlinpe requested a review from ahojnnes July 10, 2025 21:42
@ahojnnes ahojnnes enabled auto-merge (squash) July 11, 2025 05:15
@ahojnnes ahojnnes merged commit d61dbd0 into main Jul 11, 2025
14 checks passed
@ahojnnes ahojnnes deleted the sarlinpe/fix-bug-max_num_matches branch July 11, 2025 05:33
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.

3 participants