MCPcopy Index your code
hub / github.com/DNA-Rendering/DNA-Rendering / focal2fov

Function focal2fov

scripts/3DGS/utils/graphics_utils.py:99–100  ·  view source on GitHub ↗
(focal, pixels)

Source from the content-addressed store, hash-verified

97 return pixels / (2 * math.tan(fov / 2))
98
99def focal2fov(focal, pixels):
100 return 2*math.atan(pixels/(2*focal))

Callers 3

readColmapCamerasFunction · 0.90
readCamerasDNARenderingFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected