colour.offset_YCbCr#
- colour.offset_YCbCr(bits: int = 8, is_legal: bool = False, is_int: bool = False) NDArrayFloat [source]#
Compute the R’G’B’ to Y’CbCr offsets for given bit-depth, range legality and representation.
The related R’G’B’ to Y’CbCr matrix can be computed with the
colour.matrix_YCbCr()
definition.- Parameters:
- Returns:
Y’CbCr matrix.
- Return type:
Examples
>>> offset_YCbCr() array([ 0., 0., 0.]) >>> offset_YCbCr(is_legal=True) array([ 0.0627451..., 0.5019607..., 0.5019607...])