irtk.io.write_image

irtk.io.write_image(image_path: str, image: ndarray, is_srgb: bool | None = None) None

Writes an image to a file.

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

  • image – The image as a numpy array.

  • is_srgb – Whether the image is in sRGB format.