components.colourspace.adjustsaturation

class AdjustSaturation(config={}, **kwds)[source]

Bases: Transformer

Make colours more or less saturated.

Convert RGB frames to “YUV” (actually YCbCr), multiply UV by a gain factor, then convert back to RGB.

The matrix config item chooses the matrix coefficient set. It can be '601' (”Rec. 601”, standard definition) or '709' (”Rec. 709”, high definition and sRGB). In 'auto' mode the matrix is chosen according to the number of lines in the image.

WARNING: this component assumes RGB input and output both have black level 0 and white level 255, not the 16..235 range specified in Rec 601.


Comments or questions? Please email jim@jim-easterbrook.me.uk.