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