Skip to content

Commit c7b5c46

Browse files
committed
make_mapped_gaze_video: make sure we send numpy arrays into transformation functions
1 parent b4c8e96 commit c7b5c46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gazeMapper/process/make_mapped_gaze_video.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ def draw_gaze_on_other_video(frame_other, pose_this: plane.Pose, pose_other: pla
530530
# also draw position of this camera on the other video, and possibly gaze vector
531531
if do_draw_camera or do_draw_gaze_vec:
532532
# take point 0,0,0 in this camera's space (i.e. camera position) and transform to the plane's world space
533-
cam_pos_world_this = pose_this.cam_frame_to_world((0.,0.,0.))
533+
cam_pos_world_this = pose_this.cam_frame_to_world(np.zeros((1,3)))
534534
if pose_other.world_frame_to_cam(cam_pos_world_this)[2]<=0:
535535
# other video's camera is behind this camera, won't be visible
536536
# and projecting it anyway yields a nonsensical result

0 commit comments

Comments
 (0)