Items with no label
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
3331 Discussions

process to view D415 live or captured depth stream into matlab.In fact , I need a pointcloud.

vkuma45
Beginner
778 Views

Hello,

How should we process (.ply format) to form a pointclouds and stitch together all the (.ply format )step by step in matlab.

I am quiet new to this matlab as well as real sense camera .So your answers will be worth to me. I went few of the answers of joe, eliza , but i did not get exaclty how to proceed with capture images( 3D export in .ply) to form a point cloud and make different images into one.

Thank you @idata ,@JBos3​ ,@VHess​ ,@MMend10​ @MartyG​ 

and @EMuel​ :- can u please tell me the code and how you solve the issue of two camera D415 simultaneously.

0 Kudos
7 Replies
MartyG
Honored Contributor III
356 Views

MATLAB is probably not a suitable platform for combining live point clouds from two separate cameras. You might have more success with the method in the guide linked to below for combining clouds from 2 cameras, which was suggested in a similar case by Dorodnic the RealSense SDK Manager.

 

https://github.com/intel-ros/realsense/wiki/Showcase-of-using-2-cameras

 

There is also a version of the guide for using 3 cameras across 2 machines.

 

https://github.com/intel-ros/realsense/wiki/showcase-of-using-3-cameras-in-2-machines

vkuma45
Beginner
356 Views

Thank you for the response @MartyG​ .

however, i need information on this

Process to view D415 live or captured depth stream into matlab.In fact , I need a pointcloud.?

How should we process (.ply format) to form a pointclouds and stitch together all the (.ply format )step by step in matlab?

 

Thank you.

MartyG
Honored Contributor III
356 Views

Apologies for the delay in responding. I wanted to take time to think carefully about your situation if you really need to do the operation with MATLAB.

 

I would recommend forgetting about using live streams and focus on the ply file approach instead. It is possible to read a single ply file into MATLAB to generate a point cloud, using the pcread function.

 

https://uk.mathworks.com/help/vision/ref/pcread.html?language=en_US

 

Importing and combining more than one ply is going to be harder though. After an extensive search, the best reference I could find was someone who tried to import and merge six ply files into MATLAB, and described the process that they were using.

 

https://uk.mathworks.com/matlabcentral/answers/259918-merging-point-clouds-to-get-a-3-d-model

vkuma45
Beginner
356 Views

Thank you for the response again @MartyG​ g.

Definitely, please convey me as soon as you find something new or useful for me.I will work on that. I am actually running out of time. I have done till getting the ply into matlab. Yes ,it is diificult to get and merge.

I will process according to links you have given to merge and compile all into one. By the way, do you have any reference , how we can do it in Python for the future reference.But right now, i cant switch from matlab to python because of the situation demand.

Thank you.

 

MartyG
Honored Contributor III
356 Views

The 'Box Dimensioner' Python example program has code for calculating a cumulative point cloud from multiple live cameras.

 

https://github.com/IntelRealSense/librealsense/blob/master/wrappers/python/examples/box_dimensioner_multicam/measurement_task.py

vkuma45
Beginner
356 Views
MartyG
Honored Contributor III
356 Views

You are very welcome. Glad I could be of help!​

Reply