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

Function fov2focal

scripts/3DGS/utils/graphics_utils.py:96–97  ·  view source on GitHub ↗
(fov, pixels)

Source from the content-addressed store, hash-verified

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

Callers 2

camera_to_JSONFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected