Skip to content

Commit f5a117c

Browse files
XiaoXuan42facebook-github-bot
authored andcommitted
fix: correct typo in cameras.md (#1501)
Summary: If my understanding is right, prp_screen[1] should be 32 rather than 48. Pull Request resolved: #1501 Reviewed By: shapovalov Differential Revision: D45044406 Pulled By: bottler fbshipit-source-id: 7dd93312db4986f4701e642ba82d94333466b921
1 parent b921efa commit f5a117c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/notes/cameras.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ cameras_ndc = PerspectiveCameras(focal_length=fcl_ndc, principal_point=prp_ndc)
8585
# Screen space camera
8686
image_size = ((128, 256),) # (h, w)
8787
fcl_screen = (76.8,) # fcl_ndc * min(image_size) / 2
88-
prp_screen = ((115.2, 48), ) # w / 2 - px_ndc * min(image_size) / 2, h / 2 - py_ndc * min(image_size) / 2
88+
prp_screen = ((115.2, 32), ) # w / 2 - px_ndc * min(image_size) / 2, h / 2 - py_ndc * min(image_size) / 2
8989
cameras_screen = PerspectiveCameras(focal_length=fcl_screen, principal_point=prp_screen, in_ndc=False, image_size=image_size)
9090
```
9191

0 commit comments

Comments
 (0)