Items with no label
3335 Discussions

for C# platform: How one can generate points cloud from realsense camera d435?

AItah
Beginner
2,522 Views

We did the following:

We already connected to the camera.

We get a frameset.

Now trying to use:

pc = new PointCloud();

and

var res = pc.Process(frames);

 

However we don't get XYZ coordinate and we currently stuck.

Can you please share information how to get the pointcloud in C#?

 

Regards,

Amir

0 Kudos
9 Replies
MartyG
Honored Contributor III
1,444 Views

The only C# point cloud code that I know of is extracted from the C#-based RealSense wrapper for the Unity engine.

 

https://github.com/IntelRealSense/librealsense/issues/1289#issuecomment-371067585

0 Kudos
AItah
Beginner
1,444 Views

thanks, however in the code it is written that Calculate is obsolete and instead to use Process however this method does not return points. at least we could not yet to extract from it the coordinates for each pixel.

BTW can we get the coordinate for each pixel in C# and RGB values for each pixel?

 

 

0 Kudos
AItah
Beginner
1,444 Views

thanks, however in the code it is written that Calculate is obsolete and instead to use Process however this method does not return points. at least we could not yet to extract from it the coordinates for each pixel.

BTW can we get the coordinate for each pixel in C# and RGB values for each pixel?

0 Kudos
MartyG
Honored Contributor III
1,444 Views

A tutorial by a RealSense user for getting the coordinates with the 400 Series camera and C# can be found here:

 

https://pterneas.com/2018/10/10/intel-realsense-coordinate-mapping/

0 Kudos
AItah
Beginner
1,444 Views

Thanks, however we notice that it also requires unity.

 

Kind Regards,

Amir Itah

0 Kudos
MartyG
Honored Contributor III
1,444 Views

I will refer this question up the chain to a member of Intel Support who has access to more information resources than I do. Thank you for your patience.

 

@Jesus G.​ 

 

0 Kudos
AItah
Beginner
1,444 Views

Thanks we really appreciate it!

Currently we are looking for a way to get XYZ coordinates and RGB data (for each pixel) without the need for another package (PCL, Unity, OpenGL, ... ).

 

10x!

0 Kudos
Alexandra_C_Intel
1,444 Views
Hi AItah, Thank you for your interest in the Intel RealSense D435 camera. You can run this code to get the distance values: https://github.com/IntelRealSense/librealsense/tree/master/examples/C/distance Regards, Alexandra
0 Kudos
AItah
Beginner
1,444 Views

Thanks Alexandra!

We will try it.

 

Best regards,

Amir I.

0 Kudos
Reply