colour icon indicating copy to clipboard operation
colour copied to clipboard

The *.spimtx reader in the "feature/clf" branch reads offsets incorrectly.

Open nick-shaw opened this issue 4 years ago • 0 comments

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.

nick-shaw avatar Mar 12 '21 14:03 nick-shaw