A mesh can be saved as
A fused point cloud can be saved as
A raw point cloud within Depth Viewer Tool can be saved by
Now how do I save a raw point cloud like the Depth Viewer Tool, but from using code (C++) instead of the tool?
Hi @Flocker,
You can use sl.Mat().write()
(API documentation : Mat Class Reference | API Reference | Stereolabs ) function on your point cloud mat to save it to a .ply
file. You just need to call the function after retrieving your point cloud as such:
zed.retrieveMeasure(point_cloud, MEASURE::XYZRGBA);
point_cloud.write("my_point_cloud.ply");
Hope this helps
This is what I was looking for and has helped me greatly! Thank you very much!
Can I save it as . bin file in code?
Hello,
We don’t support .bin
export. What format do you expect behind this extension ?
Antoine