Colour - CLF IO#

Reading and Writing CLF Files#

colour.colour_clf_io

read_clf_from_file(path)

Read given CLF file and return a ProcessList.

read_clf(text)

Read given string as a CLF file and return a ProcessList.

write_clf(process_list[, path, namespace])

Write the given ProcessList as a CLF file to the target location.

Process List & Process Nodes#

colour_clf_io

ProcessList(id, compatible_CLF_version, ...)

Represent a ProcessList, the root element for any CLF file.

ProcessNode(id, name, in_bit_depth, ...)

Represent a ProcessNode, an operation to be applied to the image data.

LUT1D(id, name, in_bit_depth, out_bit_depth, ...)

Represent a LUT1D element.

LUT3D(id, name, in_bit_depth, out_bit_depth, ...)

Represent a LUT3D element.

Matrix(id, name, in_bit_depth, ...)

Represent a Matrix element.

Range(id, name, in_bit_depth, out_bit_depth, ...)

Represent a Range element.

Log(id, name, in_bit_depth, out_bit_depth, ...)

Represent a Log element.

Exponent(id, name, in_bit_depth, ...)

Represent an Exponent element.

ASC_CDL(id, name, in_bit_depth, ...)

Represent an ASC_CDL element.

Elements#

colour_clf_io

Array(values, dim)

Represent an Array element.

CalibrationInfo(display_device_serial_num, ...)

Represent a CalibrationInfo container element for a colour_clf_io.ProcessList class instance.

ExponentParams(exponent, offset, channel)

Represent a ExponentParams element for a colour_clf_io.Exponent Process Node.

Info(app_release, copyright, revision, ...)

Represent an Info element.

LogParams(base, log_side_slope, ...)

Represent a LogParams element for a colour_clf_io.Log Process Node.

SatNode(saturation)

Represent a SatNode element for a colour_clf_io.ASC_CDL Process Node.

SOPNode(slope, offset, power)

Represent a SOPNode element for a colour_clf_io.ASC_CDL Process Node.

Values (Enumerations)#

colour_clf_io

BitDepth(value[, names, module, qualname, ...])

Represents the valid bit depth values of the CLF specification.

Channel(value[, names, module, qualname, ...])

Represents the valid values of the channel attribute in the Range element.

Interpolation1D(value[, names, module, ...])

Represents the valid interpolation values of a LUT1D element.

Interpolation3D(value[, names, module, ...])

Represents the valid interpolation values of a LUT3D element.

ExponentStyle(value[, names, module, ...])

Represent the valid values of the style attribute of a colour_clf_io.Exponent Process Node.

LogStyle(value[, names, module, qualname, ...])

Represent the valid values of the style attribute of a colour_clf_io.Log Process Node.

RangeStyle(value[, names, module, qualname, ...])

Represent the valid values of the style attribute of a colour_clf_io.Range Process Node.

ASC_CDLStyle(value[, names, module, ...])

Represents the valid values of the style attribute of an ASC_CDL element.