colour
colour copied to clipboard
The *.spimtx reader in the "feature/clf" branch reads offsets incorrectly.
https://github.com/colour-science/colour/blob/6638055709a87162dd1a738bc8ec2101d99d75ad/colour/io/luts/sony_spimtx.py#L36
Looking at the .spimtx parser in OCIO, it would appear that where a .spimtx file includes offsets, these should be treated as 16-bit integer scaled, not normalised float. Likewise the .spimtx writer should do the inverse. When writing the .spimtx parser, I had assumed incorrectly that the format used float offsets, the same as the matrix operator in CLF.