Skip to content

Commit

Permalink
fix intrinsic scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
thuzhaowang authored Aug 25, 2020
1 parent 05c404f commit 386de63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/dataset/kitti_prepared.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ def read_cam_intrinsic(self, fname):
return cam_intrinsics

def rescale_intrinsics(self, K, img_hw_orig, img_hw_new):
K[0,:] = K[0,:] * img_hw_new[0] / img_hw_orig[0]
K[1,:] = K[1,:] * img_hw_new[1] / img_hw_orig[1]
K[0,:] = K[0,:] * img_hw_new[1] / img_hw_orig[1]
K[1,:] = K[1,:] * img_hw_new[0] / img_hw_orig[0]
return K

def get_intrinsics_per_scale(self, K, scale):
Expand Down

0 comments on commit 386de63

Please sign in to comment.