• Mathias Wein's avatar
    Fix HSY selector modes · 3ddebdec
    Mathias Wein authored
    The RGB<=>HSY conversion really only works properly in linear RGB.
    Gamma needs to be applied to Y', and is now taken from Advanced Color Selector
    Luma coefficients are now fetched on reconfiguration instead of every single
    color conversion.
    Caveat: Some color profiles like "ITUR_2100_PQ_FULL.ICC" define no colorants
    and hence they cannot be linearized with the current implementation.
    A substitution of color spaces like the Small Color Selector does seems
    unavoidable in the long run...
    (cherry picked from commit 6a660c25f68396d7fdb9fcce69048b5ee8d4637a)
KisVisualColorSelector.cpp 25.8 KB