pyrender icon indicating copy to clipboard operation
pyrender copied to clipboard

How to retrieve intrinsic camera parameters from PerspectiveCamera

Open nonathecoda opened this issue 1 year ago • 0 comments

Hi! I'm trying to create a pointcloud from a depth map that I rendered using a PerspectiveCamera. For this, I will need the intrinsic parameters of the camera. Is there a straightforward way to retrieving those parameters? I tried the following, which clearly seems to be wrong, however I didn't find any other approaches yet:

f=(image_width/2)/math.tan(camera.yfov) s=0 y0 = image_height/2 x0 = image_width/2

intrinsics = np.array( [[f, s, x0], [0, f, y0], [0, 0, 1]])

nonathecoda avatar Jul 25 '23 06:07 nonathecoda