Skip to content

Commit

Permalink
Merge pull request #164 from Visual-Behavior/fix-resize-cam-intrinsic
Browse files Browse the repository at this point in the history
fix: resize intrinsic matrix
  • Loading branch information
thibo73800 authored Apr 4, 2022
2 parents c78c00a + ecb5518 commit 26ba306
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aloscene/camera_calib.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ def _vflip(self, *args, frame_size: Tuple[int, int], **kwargs):

def _resize(self, size, **kwargs):
cam_intrinsic = self.clone()
resize_ratio_w = size[0]
resize_ratio_h = size[1]
resize_ratio_w = size[1]
resize_ratio_h = size[0]
cam_intrinsic[..., 0, 0] *= resize_ratio_w # fx
cam_intrinsic[..., 1, 1] *= resize_ratio_h # fy
cam_intrinsic[..., 0, 2] *= resize_ratio_w # x0
Expand Down

0 comments on commit 26ba306

Please sign in to comment.