batch_resize

lib.align.aligned_utils.batch_resize(images: npt.NDArray[ImageDTypeT], size: int, fast_upscale: bool = True) npt.NDArray[ImageDTypeT]

Resize a batch of square images of the same dimensions to the given size

Parameters:
  • images (npt.NDArray[ImageDTypeT]) – The batch of square images to be resized

  • size (int) – The required final size of the images

  • fast_upscale (bool) – True to use cv2.INTER_LINEAR for upscale, False to use cv2.INTER_CUBIC. Default: True

Return type:

The resized images