pyaesthetics.colorfulness.colorfulness_hsv

pyaesthetics.colorfulness.colorfulness_hsv(img)

This function evaluates the colorfulness of a picture using the formula described in Yendrikhovskij et al., 1998. Input image is first converted to the HSV color space, then the S values are selected. Ci is evaluated with a sum of the mean S and its std, as in:

Ci = mean(Si) + std(Si)

Parameters:

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

Returns:

colorfulness index

Return type:

float