1
Python and Java API / Creating XYZ maps for each pixel of an image
« on: March 01, 2023, 07:25:00 PM »
Hi, I am looking for an efficient way to export XYZ maps for each image. Metashape can export depth maps that are camera-model distance projections for each pixel in the image, and I need this for the XYZ information.
Alternatively, can the Metashape python API convert a depth map into an XYZ point cloud? Third-party modules like open3d can do this in camera-relative xyz space for a pinhole camera, but I need this in the model's global XYZ space while accounting for camera distortion.
http://www.open3d.org/docs/0.7.0/python_api/open3d.geometry.create_point_cloud_from_depth_image.html
This question is similar to the following threads, but it doesn't look like they fully resolved the need.
https://www.agisoft.com/forum/index.php?topic=12780.0
https://www.agisoft.com/forum/index.php?topic=12392.msg55345#msg55345
Alternatively, can the Metashape python API convert a depth map into an XYZ point cloud? Third-party modules like open3d can do this in camera-relative xyz space for a pinhole camera, but I need this in the model's global XYZ space while accounting for camera distortion.
http://www.open3d.org/docs/0.7.0/python_api/open3d.geometry.create_point_cloud_from_depth_image.html
This question is similar to the following threads, but it doesn't look like they fully resolved the need.
https://www.agisoft.com/forum/index.php?topic=12780.0
https://www.agisoft.com/forum/index.php?topic=12392.msg55345#msg55345