Red eye removal - dt 4.6.

Thank-you @kofa. Now I could understand some subtilities of masking, which I did not before despites watching many tutorials. And I know for sure of at least four methods to remove red eyes.
Rgrds,

I’m a little confused why you first desaturate red, and then select the for the saturated part of the Chroma (Cz) tab, when it’s the red areas we shall apply the mask to.
I appreciate it if you would explain that, @kofa.

The mask is based on the input, where the pixels are still red.
So, two things will be done to the pixels that are originally red:

  • they will be turned grey;
  • they will be darkened.

The desaturation does not take away all the red (left: original; right: red desaturated):

Then the brightness change:

The code is here, but I don’t understand it: https://github.com/darktable-org/darktable/blob/master/src/iop/channelmixerrgb.c#L702-L761, so I just suspect that since the skin and the eyes are not pure Rec2020 red, the desaturation is not complete, and then the brightness can still work based on the remaining red (R channel value).

1 Like

As I said: “confused” …
Thanks!