fmw42 wrote:What tools do you have to process images with your existing LUTs?
None. That is my problem. As far as I know, GIMP cannot import a text LUT and apply it to an image. (Or can it?)
fmw42 wrote:What is the format of your lut? Is it an image or just text?
Text files in various formats. For example "After Effects" .cube (listing 32768 (32^3) points):
Code: Select all
# Alexa conversion LUT, logc2video, itu709. Full in/legal out.
# created by alexalutconv (2.07)
LUT_3D_SIZE 32
0.062561 0.062561 0.062561
0.062561 0.062561 0.062561
0.065555 0.062561 0.062583
[...]
0.915093 0.918866 0.918839
0.917384 0.918866 0.918856
0.918866 0.918866 0.918866
0.918866 0.918866 0.918866
Or less fine-grained "Scratch" .3dl (listing 4913 (17^3) points):
Code: Select all
# created by alexalutconv (2.07)
# Alexa conversion LUT, logc2video, itu709. Full in/legal out.
0 64 128 192 256 320 384 448 512 576 640 704 768 832 896 960 1023
256 256 256
256 256 262
256 256 391
[...]
3760 3760 3740
3760 3760 3756
3760 3760 3760
That sounds promising. I wasn't aware that IM could do that. Thank you.
I have now a 230 MB txt file of my 1727x1727 hald.png.
Now I "just" have to figure out how to convert each of these points with my 3D LUT, or how to correctly interpret and interpolate values for the new hald-with-lut.png pixels. When I find the right mathematics for that, applying it will just be a few lines of Perl...