Apply LUT to Image

edited January 2018 in Library Questions

I would like to write a shader to apply a LUT (stored in a cube file) onto an image. But currently I am struggling understanding the cube file format and how the LUT then is applied. I've checked the ImageJ source for an example but was not lucky.

Is there someone or something which is able to explain me the workflow on how to read a cube file (1D and 3D) and how the values then are applied to the pixels.

I am not looking for code to do it, but if you have an example I am happy too ;)

Best regards Florian

Tagged:
Sign In or Register to comment.