-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
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.
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; |
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.
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; } |
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.
Why do we need omp here? Does it really speed up these lines?
No description provided.