Add EstimateGeneralizedAbsolutePose#2174
Merged
ahojnnes merged 23 commits intocolmap:mainfrom Sep 18, 2023
Merged
Conversation
ahojnnes
reviewed
Sep 15, 2023
ahojnnes
reviewed
Sep 15, 2023
ahojnnes
reviewed
Sep 15, 2023
ahojnnes
reviewed
Sep 15, 2023
72a3369 to
ff0502e
Compare
ff0502e to
827ed22
Compare
sarlinpe
commented
Sep 16, 2023
Member
Author
|
PTAL. |
ahojnnes
reviewed
Sep 16, 2023
ahojnnes
reviewed
Sep 16, 2023
ahojnnes
reviewed
Sep 16, 2023
ahojnnes
reviewed
Sep 16, 2023
| std::vector<size_t> point3D_ids; | ||
| point3D_ids.reserve(points3D.size()); | ||
| for (const auto& p3D : points3D) { | ||
| point3D_ids.push_back(std::lower_bound(unique_points3D.begin(), |
Contributor
There was a problem hiding this comment.
Since we use isApprox above to prune redundant points, but here we use the exact LowerVector3d, I suspect that you may end up with unique_points3D.end() as a return value, if the last point was pruned. In this case, you will end up with a point3D_id that is out of bounds?
Member
Author
There was a problem hiding this comment.
Yes this is quite error-prone. I've replaced it with the argmin of the distance to all distinct points.
ahojnnes
reviewed
Sep 16, 2023
ahojnnes
reviewed
Sep 16, 2023
ahojnnes
reviewed
Sep 16, 2023
ahojnnes
reviewed
Sep 16, 2023
ahojnnes
reviewed
Sep 16, 2023
Member
Author
|
PTAL. |
sarlinpe
commented
Sep 17, 2023
Member
Author
|
All tests now pass - PTAL. |
Contributor
|
Thanks, looks great. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
estimators/generalized_poseasestimators/poseis getting too crowded