Introduction
A .cube file is a colour lookup table (LUT): a list of output colours
used to remap the colours of an image, for example as a colour grading preset. The
format is known as the Iridas cube LUT, and Adobe has published a Cube LUT
specification.
Structure
The file is text. TITLE names the table, and either
LUT_1D_SIZE or LUT_3D_SIZE declares its kind and size.
DOMAIN_MIN and DOMAIN_MAX set the input range, which
otherwise runs from 0 to 1. Lines starting with # are comments. In the
table data the red index changes fastest and the blue index slowest.
Not described
Known, not yet covered
- Reference: this page is a summary; the full grammar and the variants of other programs are not yet described on this site.
- Viewer: the site has no viewer for lookup tables.
Also used for
- Gaussian Cube File – Text format for atoms and volumetric grids from quantum chemistry.
Links
Software
- ImageMagick – image tools that read Cube lookup tables
Developers
- Colour – colour science library with a reader and writer for Iridas cube files (Python)
Reference
- Iridas cube reader and writer – Colour’s source code, which cites Adobe’s Cube LUT specification