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()
mirror_ref.set_translation(sl.Translation(2.75,4.0,0))
tr_np = mirror_ref.m
point_cloud_np.dot(tr_np)

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

Hello,

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.

Antoine