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

Pointcloud Filtering #7160

Closed
upasana27 opened this issue Aug 23, 2020 · 7 comments
Closed

Pointcloud Filtering #7160

upasana27 opened this issue Aug 23, 2020 · 7 comments
Labels

Comments

@upasana27
Copy link

How to proceed with filtering the point cloud obtained from the point cloud example? Since the data structure belongs to rs2 library, how can we access the data?
Thanks and Regards

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Aug 24, 2020

Hi @upasana27 Are you referring to applying post-processing filters to the point cloud data please? If you are, then the Intel guide to post-processing should be helpful.

https://dev.intelrealsense.com/docs/depth-post-processing

Could you also please also confirm which point cloud example you are using so that we know which programming language (C++, C# or Python) you are using. This will allow relevant script references to be suggested. Thanks!

@upasana27
Copy link
Author

Hi @MartyG-RealSense, thanks for replying. I am using the following pointcloud example in C++: https://github.com/IntelRealSense/librealsense/tree/master/examples/pointcloud
Regards

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Aug 24, 2020

Thanks very much for the information. The SDK has a C++ tutorial for defining post-processing filters at the link below:

https://github.com/IntelRealSense/librealsense/tree/master/examples/post-processing

Further documentation about post-processing filters is here:

https://github.com/IntelRealSense/librealsense/blob/master/doc/post-processing-filters.md

It includes a C++ example script at the bottom of the page.

@upasana27
Copy link
Author

upasana27 commented Aug 28, 2020

Hi @MartyG-RealSense, thank you for the help. I am looking forward to filter the generated point cloud using voxel leaf filtering and noise removal. I wanted to use PCL library for the same. Is there any recommended wrapper or code for converting the point cloud generated in the example into pcl format?
https://community.intel.com/t5/Items-with-no-label/Converting-RealSense-Pointcloud-to-PCL-Pointcloud/td-p/541957
This is a code which is available, however it generates a single point cloud rather than a stream.
Please let me know if there is any script which has been used reliably before for the use case.

Kind regards
Upasana

@MartyG-RealSense
Copy link
Collaborator

I have handled a couple of cases in the past where a voxelized point cloud has been generated using PCL. The links are below. I hope that you find some useful insights within them.

#6411
#6802

@upasana27
Copy link
Author

Hi @MartyG-RealSense, thank you for the guidance. The issue has been solved. Closing the thread.

@MartyG-RealSense
Copy link
Collaborator

Thanks very much for the update @upasana27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants