I'm converting a script from Imagick in PHP to command line IM 7.
One thing has held me up for a while now.
This method in PHP:
Code: Select all
$im->getImageChannelMean(Imagick::CHANNEL_ALL);
Returns the following means for 5 arbitrary images I was testing with:
Code: Select all
22282.14894013
30473.356623976
38031.623559618
31193.137382776
13730.786592171
However using "magick identify -verbose" on those same 5 images, here are the means from the "Image statistics: Overall:" section:
Code: Select all
64.0298
118.573
147.983
90.7432
53.4272
What is the relation between these numbers, and how can I get the same number PHP returns (or close to it)?
Any help you can provide would be much appreciated.