How to get %[fx:standard_deviation] from PerlMagick?
Posted: 2011-05-31T13:46:12-07:00
I've been experimenting with commandline ImageMagick, and
tells me the value I'm interested in. However, I can't see how to get the same info from PerlMagick.
doesn't do it, and
returns a list which includes standard deviation, but separately for each colour channel.
So is there a way to get the standard_deviation value directly, or maybe calculate it from the per-channel values (maybe I can square each one, add them together and take the square root? Stats was a loooong time ago!)
Thanks
Code: Select all
identify -format "%[fx:standard_deviation]" file.jpg
Code: Select all
img->Fx(expression=>'standard_deviation')
Code: Select all
img->Statistics()
So is there a way to get the standard_deviation value directly, or maybe calculate it from the per-channel values (maybe I can square each one, add them together and take the square root? Stats was a loooong time ago!)
Thanks