pyaesthetics.brightness.relativeluminance_bt709

pyaesthetics.brightness.relativeluminance_bt709(img)

This function evaluates the brightness of an image by means of Y, where Y is evaluated as:

Y = 0.7152G + 0.0722B + 0.2126R B = mean(Y)

Parameters:

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

Returns:

mean brightness

Return type:

float