I have a custom workflow where I need to automate 2 tasks:
apply white balance from a spot (x, y coords)
tweak the exposure compensation until I get to a specific L value (Lab)
So far I managed to apply the white balance from a spot, and retrieve the L value from the same spot, but I get really big values for L (I am expecting 2 digit number and I get 4 digit numbers, Eg: expecting 64, and get 6300)
What am I doing wrong ?
Here I apply the white balance:
Here I get the L value from the processed image (from RGB)
Any suggestions are welcome, I did not write C++ since college so if you spot some things which can be done better please let me know
The repo is public
I tested and built on linux in a docker container.
There’s an example photo in the input folder, which is mounted in the docker container.
I overwrote the main-cli.cc file, as I am not confident enough to mess with the CMake files
The cli.cc file is mounted over the original main-cli.cc
To build it you need docker and docker compose:
clone the repo,
run docker-compose build
run docker-compose run app
run ./programs/rawtherapee/rawtherapee-cli ./input/IMG_0416.CR2 ./input/out.jpg
@edcoreweb Please explain in clear words what you want to do. I currently didn’t get it (maybe because my brain isn’t working fully at the current high temperature here in germany…)
So please, try to explain it more simple. I’m sure there’s a better way, once I understood what you want to do.
@heckflosse sorry I was not clear enough, basically I need to adjust the exposure compensation until a ‘hard-coded’ point on the image reaches LAB (L = 79).
Found a solution, not sure it’s the best, but basically I attach a Crop to the StagedImageProcessor and only apply the RGBCURVE bit mask when I change the exposure.