dntks / easyLUT

Android library for applying color look-up table (CLUT) image transformations on bitmaps and imageviews
Apache License 2.0
70 stars 15 forks source link

Support Hald CLUTs #2

Closed pflammertsma closed 6 years ago

pflammertsma commented 6 years ago

It would be nice if easyLUT supported Hald variant color lookup tables.

There's a nice description with some C source code on this website:
http://www.quelsolaar.com/technology/clut.html

The trouble is that the API will need to change, since Hald LUTs and regular LUTs are both square images; they only differ in grid sizes. Compare these two 512x512 images:

Conventional LUT: Regular LUT

Hald LUT: Hald LUT

pflammertsma commented 6 years ago

Hald support and countless other improvements have been made in https://github.com/Pixplicity/easyLUT. Let me know if you want me to make a massive PR for all this.

dntks commented 6 years ago

Cool, thanks again for the contribution!