I\'m using the following code to retrieve the local transforms from a depth map.
def reconstruct3d(depth_map, camera_parameters): transformation = np.iden