Input and Output

Image Data

colour

read_image(path[, bit_depth, attributes]) Reads given image using OpenImageIO.
write_image(image, path[, bit_depth, attributes]) Writes given image using OpenImageIO.

Ancillary Objects

colour.io

ImageAttribute_Specification Defines the an image specification attribute.

Look Up Table (LUT) Data

colour

LUT1D([table, name, domain, size, comments]) Defines the base class for a 1D LUT.
LUT2D([table, name, domain, size, comments]) Defines the base class for a 2D LUT.
LUT3D([table, name, domain, size, comments]) Defines the base class for a 3D LUT.
LUTSequence(*args) Defines the base class for a LUT sequence, i.e.
read_LUT(path[, method]) Reads given LUT file using given method.
write_LUT(LUT, path[, decimals, method]) Writes given LUT to given file using given method.

Ancillary Objects

colour.io

AbstractLUTSequenceOperator Defines the base class for LUT sequence operators.
LUT_to_LUT(LUT, cls[, force_conversion]) Converts given LUT to given cls class instance.
read_LUT_IridasCube(path) Reads given Iridas .cube LUT file.
write_LUT_IridasCube(LUT, path[, decimals]) Writes given LUT to given Iridas .cube LUT file.
read_LUT_SonySPI1D(path) Reads given Sony .spi1d LUT file.
write_LUT_SonySPI1D(LUT, path[, decimals]) Writes given LUT to given Sony .spi1d LUT file.
read_LUT_SonySPI3D(path) Reads given Sony .spi3d LUT file.
write_LUT_SonySPI3D(LUT, path[, decimals]) Writes given LUT to given Sony .spi3d LUT file.

CSV Tabular Data

colour

read_spds_from_csv_file(path[, delimiter, …]) Reads the spectral data from given CSV file and return its content as an OrderedDict of colour.SpectralPowerDistribution classes.
read_spectral_data_from_csv_file(path[, …]) Reads the spectral data from given CSV file in the following form:
write_spds_to_csv_file(spds, path[, …]) Writes the given spectral power distributions to given CSV file.

IES TM-27-14 Data

colour

IES_TM2714_Spd([path, header, …]) Defines a IES TM-27-14 spectral power distribution.

X-Rite Data

colour

read_spds_from_xrite_file(path) Reads the spectral data from given X-Rite file and returns it as an OrderedDict of colour.SpectralPowerDistribution classes.