colour.LUTSequence¶
-
class
colour.
LUTSequence
(*args)[source]¶ Defines the base class for a LUT sequence, i.e. a series of LUTs.
The colour.LUTSequence class can be used to model series of LUTs such as when a shaper LUT is combined with a 3D LUT.
Other Parameters: *args (list, optional) – Sequence of colour.LUT1D, colour.LUT3x1D, colour.LUT3D or colour.io.lut.l.AbstractLUTSequenceOperator class instances. -
sequence
¶
Examples
>>> LUT_1 = LUT1D() >>> LUT_2 = LUT3D(size=3) >>> LUT_3 = LUT3x1D() >>> print(LUTSequence(LUT_1, LUT_2, LUT_3)) LUT Sequence ------------ <BLANKLINE> Overview <BLANKLINE> LUT1D ---> LUT3D ---> LUT3x1D <BLANKLINE> Operations <BLANKLINE> LUT1D - Unity 10 ---------------- <BLANKLINE> Dimensions : 1 Domain : [ 0. 1.] Size : (10,) <BLANKLINE> LUT3D - Unity 3 --------------- <BLANKLINE> Dimensions : 3 Domain : [[ 0. 0. 0.] [ 1. 1. 1.]] Size : (3, 3, 3, 3) <BLANKLINE> LUT3x1D - Unity 10 ------------------ <BLANKLINE> Dimensions : 2 Domain : [[ 0. 0. 0.] [ 1. 1. 1.]] Size : (10, 3)
Methods
__init__
(*args)Initialize self. append
(value)S.append(value) – append value to the end of the sequence apply
(RGB[, interpolator_1D, …])Applies the LUT sequence sequentially to given RGB colourspace array. clear
()copy
()Returns a copy of the LUT sequence. count
(value)extend
(values)S.extend(iterable) – extend sequence by appending elements from the iterable index
(value, [start, [stop]])Raises ValueError if the value is not present. insert
(index, LUT)Inserts given LUT at given index into the LUT sequence. pop
([index])Raise IndexError if list is empty or index is out of range. remove
(value)S.remove(value) – remove first occurrence of value. reverse
()S.reverse() – reverse IN PLACE Attributes
sequence
Getter and setter property for the underlying LUT sequence. -