Setting field of view in Blender 2.8 from half angles of horizontal and vertical field of view of camera I would like to position a camera around a scene to reproduce some perspective images. I was given the camera's extrinsics and intrinsics and my camera seems to be at the right position and facing in the right direction. However, the field of view (fov) of the camera seems off and I was able to get a similar fov as that of the perspective images by manually adjusting the focal length and sensor width parameters in Blender.
I was given xfov and yfov which are the half-angles of the horizontal and vertical fields of view of the camera in radians (the angle from the central ray to the leftmost/bottommost ray in the field of view) and the image dimension is 1280x720. I do not have information about the sensor width of the camera. How do I use this information to determine the correct values for the focal length and sensor width of my camera in Blender?
I found what I was looking for from https://blender.stackexchange.com/a/40835/99643 .
The following equations were helpful from that answer:
sensor_width_in_mm = $K[1,1]*K[0,2] / (K[0,0]*K[1,2])$
$s_u$ = resolution_$x$_in_px / sensor_width_in_mm
focal_length_in_mm = $K$[$0,0$] / $s_u$