I've been able to read the colorspace using identify -format %[colorspace] rose.jpg
But I'm stuck in trying to figure out how to read the Mean for each Channel..
The output for:
Code: Select all
identify -verbose rose.jpg
Code: Select all
...
Channel statistics:
Red:
min: 0 (0)
max: 255 (1)
mean: 231.673 (0.908523) [b]<!-- This is what i'm after[/b]
standard deviation: 66.5237 (0.260877)
kurtosis: 7.3051
skewness: -3.00254
Green:
min: 0 (0)
max: 255 (1)
mean: 227.871 (0.89361) [b]<!-- This too[/b]
standard deviation: 70.4308 (0.276199)
kurtosis: 5.16135
skewness: -2.59435
Blue:
min: 0 (0)
max: 255 (1)
mean: 224.366 (0.879867) [b]<!-- And this, please[/b]
standard deviation: 77.2012 (0.30275)
kurtosis: 3.677
skewness: -2.35433
...