Feat/improve 2d3d reproj#130
Open
yzhou-bcom wants to merge 4 commits into
Open
Conversation
jim-bcom
approved these changes
May 27, 2026
Contributor
jim-bcom
left a comment
There was a problem hiding this comment.
Approved, just some minor questions.
| /// @param[in] maskCollection input list of masks | ||
| /// @param[out] semanticIds estimated semantic ids and probabilities for each input cloud point | ||
| /// @return FrameworkReturnCode::_SUCCESS (semantic id estimated successfully) otherwise FrameworkReturnCode::_ERROR_ (failure) | ||
| virtual FrameworkReturnCode estimate(const std::vector<SRef<SolAR::datastructure::CloudPoint>>& points, |
Contributor
There was a problem hiding this comment.
Some question to better understand:
- Why has this method been added?
- Why this one takes
pointsas const ? In the current implementation, the other methods calls this one and usessemanticIdsto update itspointCloud. Is it because the first takes a whole point cloud whereas here it can be a subset of cloud points...? - For the other method, aren't we interested in getting semanticIds as well ? It could be optional, for example, the argument could be added as a pointer to the vector, with
nullptras a default value?
estimate(SRef<SolAR::datastructure::PointCloud> pointCloud,
std::vector<std::vector<std::pair<int16_t, float>>>* semanticIds = nullptr);If it's null, you create and use it internally, otherwise, you use the given instance.
Contributor
Author
There was a problem hiding this comment.
this new method has been added to be able to output multiple semantic Ids for the same cloud point. previously, only the most probable semantic Id is set to cloud point via cloudPoint->setSemanticId()
the new method does not call setSemanticId() inside and the input list of points will not be modified
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.
No description provided.