Skip to content
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

fix: optimization "DepthImage" algorithm stage #47

Merged
merged 6 commits into from
Oct 20, 2023

Conversation

LevDenisov
Copy link
Collaborator

No description provided.

@achains achains self-requested a review October 20, 2023 10:49
Copy link
Collaborator

@achains achains left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, these are really nice changes. Still need to fix a bit.

private:
std::unique_ptr<unsigned short> image_;
int32_t width_;
int32_t height_;

Eigen::VectorXf column_indices;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Private field names should be followed by underscore _

#pragma omp section
{ pcd_points.col(0) = (column_indices.array() - cx) * pcd_points.col(2).array() / fx; }
#pragma omp section
{ pcd_points.col(1) = (row_indices.array() - cy) * pcd_points.col(2).array() / fy; }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need omp here? Does it really speed up these lines?

@achains achains self-requested a review October 20, 2023 20:16
@achains achains merged commit 9bade2e into prime-slam:stable Oct 20, 2023
15 checks passed
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