question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

converting Intel realsense points to helixtoolkit points

See original GitHub issue

I have made a pointcloud using this piece of code using the Intel Realsense:

var points = pc.Process(depthFrame).As<Points>();
                            //float depth = depthFrame.GetDistance(x, y);
                            //bbox = (287, 23, 86, 320);

                            // We colorize the depth frame for visualization purposes
                            var colorizedDepth = colorizer.Process<VideoFrame>(depthFrame).DisposeWith(frames);
                            //var org = Cv2.ImRead(colorFrame);
                            // CopyVertices is extensible, any of these will do:
                            var vertices = new float[points.Count * 3];
                            // var vertices = new Intel.RealSense.Math.Vertex[points.Count];
                            // var vertices = new UnityEngine.Vector3[points.Count];
                            // var vertices = new System.Numerics.Vector3[points.Count]; // SIMD
                            // var vertices = new GlmSharp.vec3[points.Count];
                            //  var vertices = new byte[points.Count * 3 * sizeof(float)];
                            points.CopyVertices(vertices);

And I found out that I need to convert the points to point3d so that it can be used in Point3D collection but I don’t know how to do that. Can someone help me with this?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:49 (23 by maintainers)

github_iconTop GitHub Comments

1reaction
Xander-Vreeswijkcommented, Oct 20, 2020

And when I try your program I see the points so I will keep trying with my code

1reaction
chrkoncommented, Oct 15, 2020

Hi @Xander-Vreeswijk , Just a short info: I have made a small test project and now I can reproduce the error you mentioned.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Display point cloud continuous c# Intel Realsense
You can convert your point cloud directly into helixtoolkit supported points format and update the point model.
Read more >
Converting RealSense Pointcloud to PCL Pointcloud
Saving of the Point Cloud is not a problem, I know how to save it. Function points_to_pcl(points) converts only XYZ values, not RGB....
Read more >
Projection in Intel RealSense SDK 2.0
Coordinates within this space are referred to as "points", and are used to describe locations within 3D space that might be visible within...
Read more >
Capturing a 3D Point Cloud with Intel RealSense and ...
How to use the RealSense Viewer sample to capture a 3D point cloud, and then convert it to a model using MeshLab for...
Read more >
Projection, Texture-Mapping and Occlusion with Intel ...
The process of converting from world to camera pixel coordinates is called projection. The projection process depends on a point in world coordinates...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found