pyaesthetics.colorfulness.colorfulness_rgb¶
- pyaesthetics.colorfulness.colorfulness_rgb(img)¶
This function evaluates the colorfulness of a picture using Metric 3 described in Hasler & Suesstrunk, 2003. Ci is evaluated with as:
Ci = std(rgyb) + 0.3 mean(rgyb) [Equation Y] std(rgyb) = sqrt(std(rg)^2 + std(yb)^2) mean(rgyb) = sqrt(mean(rg)^2 + mean(yb)^2) rg = R - G yb = 0.5(R + G) - B
- Parameters:
img (numpy.ndarray) – image to analyze, in RGB
- Returns:
colorfulness index
- Return type:
float