Skip to content

Add confidence threshold to camera adjuster#19

Merged
lukasalexanderweber merged 2 commits intoOpenStitching:mainfrom
chinery:adjuster_confidence
Aug 8, 2022
Merged

Add confidence threshold to camera adjuster#19
lukasalexanderweber merged 2 commits intoOpenStitching:mainfrom
chinery:adjuster_confidence

Conversation

@chinery
Copy link
Copy Markdown
Contributor

@chinery chinery commented Aug 8, 2022

In some of my tests, I was getting the occasional match between two images that was just below the default confidence threshold (e.g. 0.9 or so). When setting the confidence threshold lower, I noticed this gave markedly worse results – even matches with confidence 0.98 completely failed to stitch. It was only digging into the C++ code I realised that the camera adjuster completely skips matches with a confidence below its own confidence threshold setting, which was always set to 1.0 in camera_adjuster.py. This PR re-uses the same confidence threshold that is passed into the subsetter for the camera adjuster, which greatly improves the results on lower confidence matches.

(Also, as part of running the pre-commit hooks, the black formatter also updated some single quotes to double quotes in stitcher.py!)

@lukasalexanderweber
Copy link
Copy Markdown
Member

Oh wow now it completely makes sense why the stitching failed for me several times during adjusting when I lowered the threshold. I never realized this, eventually I always ended up setting adjuster="no"

thanks also for the black formatting, it comes from here which was rather a quick fix.

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