[quote=“Entropy512, post:32, topic:43338”]
In this case, generate the profile yourself, either using LCMS2 (see elle stone’s well-behaved ICC profile repository for some good example code), or with the lcms support in the imagecodecs Python package ( see pyimageconvert/imagecodec2tif.py at master · Entropy512/pyimageconvert · GitHub for one example) or use RT’s ICC profile generator.[/quote]
Thanks I’ll look into this. I’ve tried loading her linear profiles before but I get nonlinear output from RawTherapee using it. Even if everything says the profile is linear, even profiles I make in RawTherapee’s profile-maker, and the info from iccdump says it’s linear, and I switch to using camera matrix, I’ll still get nonlinear output. I even tried using a linear XYZ ICC profile as my output profile and the camera matrix, and yet the output was not linear (i.e. a linear function of the raw pixel values, which I can get from rawpy).
It seems I can get close by applying a gamma compression to RT’s output, but it’s frustrating that I don’t know exactly which gamma (sRGB or Rec 709 or something else?).
I have one profile that makes linear stuff directly from RT without fiddling, and it’s one I made using these directions: I changed it to get a linear result though.
[quote=“Entropy512, post:32, topic:43338”]
Keep in mind, again, that unless you are talking about slide film, you also need to take into account the properties of the photo paper from which a negative is printed. Given the rather mild “knees” I’ve seen in many film datasheets for color negative film, it’s my opinion that the traditional filmic “knee” in most film simulations originates not from the knee of the film itself, but from the toe of the print.[/quote]
Correct, except I’m simulating motion picture film, so I simulate black and white print film (I apply it to color channels though, it looks great for the most part).
[quote=“Entropy512, post:32, topic:43338”]
Of course slide/color reversal film is completely different here. That has both a significant toe and knee.[/quote]
If/when I start trying to implement color, I’ll probably start with Ektachrome.
[quote=“Entropy512, post:32, topic:43338”]
As far as getting linear output in RT, iccstore: Allow loading profiles from user-writable configuration directory by Entropy512 · Pull Request #6645 · Beep6581/RawTherapee · GitHub should have helped and I’m pretty sure that’s in 5.10[/quote]
I’ve tried adding all sorts of profiles that are described as “linear” but which don’t get linear output. I have to apply a nonlinear global tone map to linearize RT’s output (though I’m often guessing what that map is, or trying to use colour).