Skip to content

Commit

Permalink
fix(projection): Hides unnecessary error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
cornerfarmer committed Jan 26, 2024
1 parent 1aa9a0b commit f61d951
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions blenderproc/python/camera/CameraProjection.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@ def unproject_points(points_2d: np.ndarray, depth: np.ndarray, frame: Optional[i

# Unproject 2D into 3D
points = np.concatenate((points_2d, np.ones_like(points_2d[:, :1])), -1)
points *= depth[:, None]
points_cam = (K_inv @ points.T).T
with np.errstate(invalid='ignore'):
points *= depth[:, None]
points_cam = (K_inv @ points.T).T

# Transform into world frame
points_cam[...,2] *= -1
Expand Down

0 comments on commit f61d951

Please sign in to comment.