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. |
LUT3x1D([table, name, domain, size, comments]) |
Defines the base class for a 3x1D 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_Cinespace(path) |
Reads given Cinespace .csp LUT file. |
write_LUT_Cinespace(LUT, path[, decimals]) |
Writes given LUT to given Cinespace .csp LUT file. |
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_sds_from_csv_file(path[, delimiter, …]) |
Reads the spectral data from given CSV file and return its content as an OrderedDict of colour.SpectralDistribution classes. |
read_spectral_data_from_csv_file(path[, …]) |
Reads the spectral data from given CSV file in the following form: |
write_sds_to_csv_file(sds, path[, …]) |
Writes the given spectral distributions to given CSV file. |
IES TM-27-14 Data¶
colour
SpectralDistribution_IESTM2714([path, …]) |
Defines a IES TM-27-14 spectral distribution. |
X-Rite Data¶
colour
read_sds_from_xrite_file(path) |
Reads the spectral data from given X-Rite file and returns it as an OrderedDict of colour.SpectralDistribution classes. |