colour.io.read_LUT_Cinespace

colour.io.read_LUT_Cinespace(path)[source]

Reads given Cinespace .csp LUT file.

Parameters:path (unicode) – LUT path.
Returns:LUT3x1D or LUT3D or LUTSequence class instance.
Return type:LUT3x1D or LUT3D or LUTSequence

References

[RisingSunResearch]

Examples

Reading a 3x1D Cinespace .csp LUT:

>>> import os
>>> path = os.path.join(
...     os.path.dirname(__file__), 'tests', 'resources', 'cinespace',
...     'ACES_Proxy_10_to_ACES.csp')
>>> print(read_LUT_Cinespace(path))
LUT3x1D - ACES Proxy 10 to ACES
-------------------------------
<BLANKLINE>
Dimensions : 2
Domain     : [[ 0.  0.  0.]
              [ 1.  1.  1.]]
Size       : (32, 3)

Reading a 3D Cinespace .csp LUT:

>>> path = os.path.join(
...     os.path.dirname(__file__), 'tests', 'resources', 'cinespace',
...     'Colour_Correct.csp')
>>> print(read_LUT_Cinespace(path))
LUT3D - Generated by Foundry::LUT
---------------------------------
<BLANKLINE>
Dimensions : 3
Domain     : [[ 0.  0.  0.]
              [ 1.  1.  1.]]
Size       : (4, 4, 4, 3)