fsio module

File system input and output.

GraphicsFormat(value)

The graphics format of an image file to be saved or loaded.

LUTFormat(value)

Lookup table format.

load_image(fp[, graphics_format])

Load image file as [C, H, W] float32 PyTorch image tensor.

save_image(im, fp[, graphics_format])

Save [C, H, W] float32 PyTorch image tensor as image file.

load_lut(fp[, lut_format])

Load LUT from file.

save_lut(lattice, fp[, lut_format])

Save LUT to a file.

truncate_image(im)

Returns the first three color channels of a multi-channel image.