irtk.io.read_image

irtk.io.read_image(image_path: str, is_srgb: bool | None = None, remove_alpha: bool = True) ndarray

Reads an image from a file.

Parameters:
  • image_path – The path to the image file.

  • is_srgb – Whether the image is in sRGB format.

  • remove_alpha – Whether to remove the alpha channel.

Returns:

The image as a numpy array.