colour.io.read_LUT_SonySPI3D

colour.io.read_LUT_SonySPI3D(path)[source]

Reads given Sony .spi3d LUT file.

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

Examples

Reading a 3D Sony .spi3d LUT:

>>> import os
>>> path = os.path.join(
...     os.path.dirname(__file__), 'tests', 'resources', 'sony_spi3d',
...     'ColourCorrect.spi3d')
>>> print(read_LUT_SonySPI3D(path))
LUT3D - ColourCorrect
---------------------
<BLANKLINE>
Dimensions : 3
Domain     : [[ 0.  0.  0.]
              [ 1.  1.  1.]]
Size       : (4, 4, 4, 3)
Comment 01 : Adapted from a LUT generated by Foundry::LUT.