Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DSL-Lab/StreamSplat
/ fov2focal
Function
fov2focal
utils/graphics_utils.py:120–121 ·
view source on GitHub ↗
(fov, pixels)
Source
from the content-addressed store, hash-verified
118
return
P
119
120
def
fov2focal(fov, pixels):
121
return
pixels / (2 * math.tan(fov / 2))
122
123
def
focal2fov(focal, pixels):
124
return
2*math.atan(pixels/(2*focal))
Callers
1
camera_to_JSON
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected