-
Notifications
You must be signed in to change notification settings - Fork 73
Proposal by for how to solve all our RANSAC problems #84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: minnerbe <innerbergerm@hhmi.org>
|
Linking the previous discussion: #82 |
axtimwalde
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does not address circles of more than two as discussed in #82 (or I am missing something).
| { | ||
| ++i; | ||
| continue A; | ||
| break; // the while loop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the for loop now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this now goes back to the for loop, should be equivalent to continue A: since there is no code after the while-loop anymore.
| // make sure we do not only keep the last model, since the | ||
| // second last can be the better (defined as num inliers) one | ||
| // now we need to make sure it is enough inliers | ||
| if ( isGood && m.betterThan( copy ) && tempInliers.size() >= minNumInliers ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This only works for circles between two models, do we have a guarantee that there aren't circles with three or four models?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should work for all cases, it just makes sure we always remember the best model (as long as |inliers| >= minNumInliers, which can grow in the while-loop. The break condition is still the old one <, which worked well.
|
lets find time to discuss this in person, we thought everything is addressed ... but we may miss something |
|
The returned set is actually good, since the best RANSAC model can be retrieved - even though it cannot be re-computed from the points itself - we made this more clear in the docs (this was the original issue from 4 years ago) |
@axtimwalde code is self-explanatory ;)