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 ------------ Overview LUT1D ---> LUT3D ---> LUT3x1D Operations LUT1D - Unity 10 ---------------- Dimensions : 1 Domain : [ 0. 1.] Size : (10,) LUT3D - Unity 3 --------------- Dimensions : 3 Domain : [[ 0. 0. 0.] [ 1. 1. 1.]] Size : (3, 3, 3, 3) LUT3x1D - Unity 10 ------------------ 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
Getter and setter property for the underlying LUT sequence.