Page 1 of 1

Mesuring the "colorfullness" of a image vs its saturation

Posted: 2015-07-02T06:02:56-07:00
by nmaisonneuve
Hi,

What are the common practices to measure the "colorfullness" of an image? (which might be different from its saturation since the white color is a fully saturated one)

colorfull image
http://b.visuels.poliris.com/b600/b/6/e ... 5-9540.jpg

white but not so colorfull image
http://e.visuels.poliris.com/bigs/e/b/8 ... 8-4453.jpg

Best,
nico

Re: Mesuring the "colorfullness" of a image vs its saturation

Posted: 2015-07-02T06:58:21-07:00
by snibgo
In all definitions that I know of, the saturation of black, gray and white is zero.

Code: Select all

convert input.jpg -colorspace HSL -format %[fx:mean.g] info:
This gives the average saturation, on a scale of 0.0 to 1.0.

EDIT: I should add that HSL is a simple arithmetic calculation of saturation. One of the other colorspaces may give a measure that is closer to subjective opinion.