From e5b404ea70ba36ba33216d85c3fca8e48c08f29a Mon Sep 17 00:00:00 2001 From: Sjouke <38879865+Sjouks@users.noreply.github.com> Date: Sat, 18 Mar 2023 19:30:09 +0100 Subject: [PATCH] Misc: make example in `log_pinhole` runable (#1609) Small fix to make the example in `log_pinhole` runable. --- rerun_py/rerun_sdk/rerun/log/camera.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rerun_py/rerun_sdk/rerun/log/camera.py b/rerun_py/rerun_sdk/rerun/log/camera.py index 9c2a45de06a9..8bbb33cc9382 100644 --- a/rerun_py/rerun_sdk/rerun/log/camera.py +++ b/rerun_py/rerun_sdk/rerun/log/camera.py @@ -39,8 +39,8 @@ def log_pinhole( f_len = (height * width) ** 0.5 rerun.log_pinhole("world/camera/image", - child_from_parent = [[f_len, 0, u_c], - [0, f_len, v_c], + child_from_parent = [[f_len, 0, u_cen], + [0, f_len, v_cen], [0, 0, 1 ]], width = width, height = height)