Skip to content

gamut_mapping: greatly simplify perceptual tone mapping

Niklas Haas requested to merge haasn/libplacebo:linear_perceptual into master

Instead of applying this complicated soft-knee along the gamma axis, as inspired by the gamut mapping paper this method was originally based on, I found that simply scaling the chromaticity axis by the equivalent knee function works extremely well, together with hard-clipping for out-of-gamut parts of the image.

(Maybe we need to re-introduce some soft clipping to the source gamut)

Merge request reports