def compute_equirectangular_pano_size(imsize, fov):
  """Computes pano dims s.t. perspective crop with given fov is imsize large."""
  pano_height = int(imsize * 180 / fov)
  pano_width = pano_height * 2
  return (pano_width, pano_height)