RGB Saturation Gamut Mapping Approach and a Comp/VFX Perspective

Also another update on the gamut-compress repo. I’ve added a “shadow rolloff” parameter. This is a control to smoothly reduce the effect of the gamut compression below a threshold achromatic value. The idea is to protect dark areas of the image which are primarily grain. This works by doing a Toe adjustment on the achromatic used for the division and multiplication portion of the distance calculation.

I think it works pretty well and actually reduces invertibility issues that were occurring in grain areas, where the distance values were going crazy due to the very small value of the denominator in the distance calculation.

I’ve also done a v0.2 release with all compression functions.

1 Like