Apply sRGB transfer function (or gamma) to linear RGB values.
Input values must have been transformed using a conversion matrix derived
from sRGB primaries relative to D65.
- Parameters:
rgb (tuple, list or ndarray of floats) – Nx3 or NxNx3 array of linear RGB values, last dim must be size == 3
specifying RBG values.
reverse (boolean) – If True, the reverse transfer function will convert sRGB -> linear RGB.
- Returns:
Array of transformed colors with same shape as input.
- Return type:
ndarray