-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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.calculate and points.export_to_ply in C# #3557
Comments
The obsolete warning in this case is harmless, just means you should use the common Sorry about missing PLY export, will be handled in the next PR. |
@ogoshen The problem is that is not clear what is meant by "Use Process method instead". How would this be implemented in C#? Are there (or could someone provide) code examples of how to use this process method in order to retrieve a pointcloud? |
Here's a sample for running the Also, Points.ExportPLY is now merged to development branch. |
@ogoshen |
@jacobusp The latest stable release v2.20.0 has included the changes. Please have a check. Thanks! https://github.com/IntelRealSense/librealsense/blob/v2.20.0/wrappers/csharp/Intel.RealSense/Frames/Points.cs#L116 |
@jacobusp Did you get the chance to have a try with v2.20.0? Any other questions about this ticket? Looking forward to your update. Thanks! |
I have added the new version to my project and I can confirm the export to ply functionality was added. Thanks for helping me out. |
How to interprete the vertices converted from the points? For a 640 * 480 depth image, I got 640 * 480 * 3 float numbers, which is reasonable. However, I found that there are 40k non-zero values at position i * 3, 70k non-zero values at positions i * 3+2 and only one 24 value at i * 3+1, where i in range 0 to 640*480 -1. This realy confused me. Can anyone explain? |
Issue Description
I am trying to do two things with the C# wrapper:
In C++ that would look like:
However, the PointCloud.Calculate method is obsolete ("This method is obsolete. Use Process method instead") and the export_to_ply does not seem to be included in the C# wrapper.
What exactly is meant by "Use Process method instead"?
How can I create the above code in C#?
The text was updated successfully, but these errors were encountered: