pyaesthetics.utils.sRGB2RGB

pyaesthetics.utils.sRGB2RGB(img)

this function converts a sRGB img to linear RGB values.

It loops through each pixel, and apply a conversion to pass from sRGB to linear RGB value.

Parameters:

img (numpy.ndarray) – image to analyze, in sRGB

Returns:

image to analyze, in RGB

Rtyipe:

numpy.ndarray