def rgb_to_power(value):
    value = float(value) / 255.0
    if value <= 0.04045:
        value /= 12.92
    else:
        value = pow( (value + 0.055) / 1.055  , 2.4)
    return value
dataset/ETHPy150Open francescortiz/image/image/utils.py/rgb_to_power/original