-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Make UniformSampling inherit from FilterIndices instead of Filter #6064
Make UniformSampling inherit from FilterIndices instead of Filter #6064
Conversation
} | ||
} | ||
|
||
// Second pass: go over all leaves and copy data | ||
output.resize (leaves_.size ()); | ||
std::size_t cp = 0; |
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.
std::size_t cp = 0; |
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 think this one is not used.
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.
updated
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.
Looks good to me, thank you!
if (!std::isfinite ((*input_)[(*indices_)[cp]].x) || | ||
!std::isfinite ((*input_)[(*indices_)[cp]].y) || | ||
!std::isfinite ((*input_)[(*indices_)[cp]].z)) | ||
if (!std::isfinite ((*input_)[cp].x) || |
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.
Could use pcl::isXYZFinite.
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.
updated
finish #6051
Please let me know if there is anything that needs to be modified