mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-26 02:49:57 +08:00
Type ODM camera intrinsics to allow fractional values
This commit is contained in:
1 parent
fb39bf3fbe
commit
ef8afd671c
1 file changed
+1
-1
@@ -119,7 +119,7 @@ def cameras2nerfds(
|
|||||||
else:
|
else:
|
||||||
raise ValueError("Unsupported ODM camera model: " + projection_type)
|
raise ValueError("Unsupported ODM camera model: " + projection_type)
|
||||||
|
|
||||||
s = {"w": int(camera["width"]), "h": int(camera["height"])}
|
s: Dict[str, float] = {"w": int(camera["width"]), "h": int(camera["height"])}
|
||||||
|
|
||||||
if projection_type in ["spherical", "equirectangular"]:
|
if projection_type in ["spherical", "equirectangular"]:
|
||||||
s["fl_x"] = s["w"] / 2.0
|
s["fl_x"] = s["w"] / 2.0
|
||||||
|
|||||||
Reference in new issue
Block a user