1
Python and Java API / Depth map or range image?
« on: November 20, 2025, 03:28:45 PM »
Dear Alexey,
Dear Forum Members,
When running the line below, what we get is a range image [1] and not a depth map [2], right?
Because the output seems to consist of (scaled) distances calculated between camera location and point cloud (range), and not from the camera plane along the camera z axis (depth).
Could you please comment whether (according to the wikipedia definitions below) the result is range or depth?
The documentation [3] says the following:
Thanks
Marcel
[1] https://en.wikipedia.org/wiki/Range_imaging
[2] https://en.wikipedia.org/wiki/Depth_map
[3] https://www.agisoft.com/pdf/metashape_python_api_2_3_0.pdf p. 134
Dear Forum Members,
When running the line below, what we get is a range image [1] and not a depth map [2], right?
Code: [Select]
out_img = my_dense_cloud.renderDepth(cam_transform,cam_ calibration)Because the output seems to consist of (scaled) distances calculated between camera location and point cloud (range), and not from the camera plane along the camera z axis (depth).
Could you please comment whether (according to the wikipedia definitions below) the result is range or depth?
The documentation [3] says the following:
Quote
Render point cloud depth image for specified viewpoint.
Thanks
Marcel
[1] https://en.wikipedia.org/wiki/Range_imaging
[2] https://en.wikipedia.org/wiki/Depth_map
[3] https://www.agisoft.com/pdf/metashape_python_api_2_3_0.pdf p. 134

