-
Notifications
You must be signed in to change notification settings - Fork 130
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
Extract only valid surfels from GPU to CPU #5
Comments
You are right, at the moment the easiest solution is to use downloadMap and then to filter on the CPU, see: Line 703 in 457c3a0
Alternatively you could write an OpenGL-based filter using Transform Feedback or similar. |
Thank you, I ended up using transform feedback and an atomic counter to get the number of valid points. It is maybe not the smartest way but it seems to make the trick. |
Cool, if this works nicely a pull request would be welcome! :) |
Ok I will just take time to see how it works as I am quit new with github and clean a bit what I've added before. |
Hi,
I am actually using your solution as part of ROS node and was wondering if there was a way to get directly from the GPU only the valid surfels. Because model->downloadMap() extracts even the invalid surfels and so as to publish a point cloud it would be faster to loop only through valid ones. Or do you have a hint about what can I change in the source code to make it possible?
Thank you
The text was updated successfully, but these errors were encountered: