1

I want to read Hald clut image for colour correction in GLSL. I found this article http://www.quelsolaar.com/technology/clut.html but it is using 3D texture to read data from clut image but i want to read it using 2D texture. I know how to read 8*8 LUT file but not this(8*64) one.

Can anyone help me reading this clut file?

Ref on how to read LUT(8*8) file: https://github.com/CyberAgent/android-gpuimage/blob/develop/library/src/jp/co/cyberagent/android/gpuimage/GPUImageLookupFilter.java

genpfault
  • 51,148
  • 11
  • 85
  • 139
Manish Kumar
  • 1,095
  • 9
  • 19

1 Answers1

2

I'm working on an Android library on github which is for applying CLUTs: https://github.com/dntks/easyLUT

It handles and applies CLUT-s on Bitmaps and ImageViews, maybe it can help you in what you need.

However it's not working with OpenGL, maybe you can get the idea of how to work with LUTS for color correction from the source code.

For further explanation please check my answer here: How to use LUT with JavaScript?

abbath
  • 2,444
  • 4
  • 28
  • 40
  • Abbath, I have seen your lib and already have opened an issue there. https://github.com/dntks/easyLUT/issues/6. I tried you logic for CLUT but it is not working. I think i am missing some points in it. Can you please explain the logic behind your CLUT read? – Manish Kumar Mar 05 '18 at 09:15