Convert depth map into pointcloud

Can the depth map be converted into a point cloud, or the point cloud can be obtained directly and saved in a certain format, such as bin format, can you provide an example?

Hi @super-fsy
the ZED SDK and the Python API provide the point cloud without the need to compute it by calling the retrieveMeasure function with the MEASURE.XYZBGRA parameter.

You can find an example on Github

Thanks your response

mirror_ref = sl.Transform()
tr_np = mirror_ref.m

What does the above code mean?
And Whether point cloud data can be directly saved in a certain format ?


The above code is irrelevant to save a point cloud to your disk. It’s a dotproduct, probably to mirror something or to project it.

You can use this example from our github that builds a point cloud and saves it to your disk.