LUT for Gain/Offset (Color)

Separate gains and offsets can be applied to each of the three components of an image (contrast enhancement transform). The RGB image must be transformed to the targeted color space, gains and offsets applied, then transformed back to RGB.

  • When applied to a mixture representation, all three gains and offset should vary in a similar way.
  • When applied to luma/chroma representations, the gain and offset of the chromatic components should vary in a similar way.
  • When applied to intensity/saturation/hue representation, it makes no sense to apply gain and offset to the hue component.

EnhancedSaturation UniformLightness

Enhanced saturation / Uniform lightness

The contrast enhancement function can be used to uniformize a given component: setting the gain to 0 for some component has the same result as setting all pixels to the value of the offset for this component.