stray_visualize_5.py 437 B

12345678
  1. def get_intrinsics(intrinsics):
  2. """
  3. Scales the intrinsics matrix to be of the appropriate scale for the depth maps.
  4. """
  5. intrinsics_scaled = _resize_camera_matrix(intrinsics, DEPTH_WIDTH / 1920, DEPTH_HEIGHT / 1440)
  6. return o3d.camera.PinholeCameraIntrinsic(width=DEPTH_WIDTH, height=DEPTH_HEIGHT, fx=intrinsics_scaled[0, 0],
  7. fy=intrinsics_scaled[1, 1], cx=intrinsics_scaled[0, 2], cy=intrinsics_scaled[1, 2])