Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ Feature Request ] CLUT Output #2

Open
torridgristle opened this issue Jan 28, 2021 · 7 comments
Open

[ Feature Request ] CLUT Output #2

torridgristle opened this issue Jan 28, 2021 · 7 comments

Comments

@torridgristle
Copy link

The ability to save a CLUT of the color transformation would be useful for applying the transformation to other scenes / videos / games, and for tweaking the transformation with other tools for artistic purposes with color-matcher's output as the starting point.

Look I got the early morning lightheadedness and I wanna gush about this program, this has saved me such a hassle trying to white balance the most fucked up of photos with purple skin, absolutely marvelous. Software intended for auto white-balance just made em all green, but this matched it to a collage of similar faces in better lighting and damn if it isn't just the best outcome I could imagine for the material. I could overhaul an entire dataset and augment the shit out of it if I wanted. This is baller.

@hahnec
Copy link
Owner

hahnec commented Feb 21, 2021

Thanks for the affirmative feedback! The Color Look-Up Table (CLUT) sounds like a valuable feature. Do you have a good source for its specs?

@torridgristle
Copy link
Author

No, but I know you can generate a neutral HaldCLUT PNG with ImageMagick using commands like magick hald:12 -depth 16 -colorspace sRGB hald12_16bit.png and that can be used as-is in many programs.

@hahnec
Copy link
Owner

hahnec commented Feb 21, 2021

I am totally convinced that it is useful. I just wonder how the color information is encoded and what the standard looks like. So, I am still looking for an official specsheet. Just let me know if you find some.

@torridgristle
Copy link
Author

For the HaldCLUT specifically I don't know the details of the pattern for creating it, but for saving a color transformation to it you just apply the color transformation to it like you're editing any other image. The input RGB values are used as the coordinates on the image with some transformation I'm not sure of.

@fosterbuster
Copy link

fosterbuster commented Mar 11, 2021

The format for Adobe's Cube LUT is rather simple, and widely supported (afaik)

https://wwwimages2.adobe.com/content/dam/acom/en/products/speedgrade/cc/pdfs/cube-lut-specification-1.0.pdf

Now i'm not an expert, and what I'm saying might be dumb - But a minor twist might that photographers work in a linear color space, whilst videographers usually work in a logarithmic color space - And I guess that the resulting LUT would look different depending on the color space used - And one or the other might be dissapointed with the result of applying it to their medium.

@torridgristle
Copy link
Author

Typically people using LUTs for these things would be aware of working in log or linear or sRGB etc, as long as it says what the conversion is in folks can convert.

@ambustion
Copy link

I realize this is a bit old, but another fantastic use of this would be a CDL. American society of cinematographers can be emailed directly for this documentation but it is widely available. There are a few formats but it is XML formatted with three floats for slope, offset, power and saturation. It is the main delivery method for color changes shot to shot on feature films and television. Typically it is applied before a 'show lut' that stays the same for the most part between major looks for a show.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants