Skip to content

Commit

Permalink
Camera transforms: denormalize with no bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
haraschax committed Jan 7, 2022
1 parent 1de0757 commit ce998be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/transformations/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def normalize(img_pts, intrinsics=fcam_intrinsics):
return img_pts_normalized[:, :2].reshape(input_shape)


def denormalize(img_pts, intrinsics=fcam_intrinsics, width=W, height=H):
def denormalize(img_pts, intrinsics=fcam_intrinsics, width=np.inf, height=np.inf):
# denormalizes image coordinates
# accepts single pt or array of pts
img_pts = np.array(img_pts)
Expand Down

0 comments on commit ce998be

Please sign in to comment.