Skip to content

Instantly share code, notes, and snippets.

View Saafke's full-sized avatar
🖥️
Training...

Xavier Weber Saafke

🖥️
Training...
View GitHub Profile
@Saafke
Saafke / depth2cloud.py
Created August 17, 2022 10:49
Converts a depth image into a 3D pointcloud, using the camera intrinsics.
def dep_2_cld(dpt, K, scale=1000):
"""
Converts a depth image into a pointcloud, using the camera intrinsics.
Arguments
---------
dpt : single-channel image
depth image
K : array (3x3)
intrinsics matrix