%[mean] vs verbose info for a specific channel
Posted: 2010-08-20T01:34:21-07:00
Hi
I want to find out the mean of a specific channel (red, in this case). But doing this
returns a number that does not correspond to my own calculation. (It returns 29126.7, but it should be 6.2222 instead)
I used a 3 by 3 pixel image, where I calculated the mean by hand.
On the opposite, if I do this:
the numbers for the mean value under Red, Green and Blue do correspond to my results.
Shouldn't this be the same?
Thank you in advance
I want to find out the mean of a specific channel (red, in this case). But doing this
Code: Select all
identify -format "%[mean]" -channel Red image.png
I used a 3 by 3 pixel image, where I calculated the mean by hand.
On the opposite, if I do this:
Code: Select all
identify -verbose image.png
Shouldn't this be the same?
Thank you in advance