Extracting statistical information of image
Posted: 2018-07-05T04:39:48-07:00
Hello (first post here)
I have a large set of 3 channels images. I want to get the dynamic range of each of them.
Final objective: a csv file holding something like:
"Identify" gives me all these informations:
but I can't figure out how to extract what I want.
I have checked this
https://www.imagemagick.org/script/identify.php
where it says that I can extract some information, for example using the "features" option:
https://www.imagemagick.org/script/comm ... p#features
But this is pretty much unclear.
On the other hand, I see this topic:
viewtopic.php?f=1&t=32127
where it says that this:
should get me the mean value of red channel.
Unfortunately, it does not work (empty output).
Same empty output with:
Is this a version problem? Or did I miss something in the syntax ?
FWIW:
I have a large set of 3 channels images. I want to get the dynamic range of each of them.
Final objective: a csv file holding something like:
Code: Select all
#file;red-min;red-max;red-mean;red-stddev;green-min;green-max;....
Code: Select all
$ Identify -verbose myimage.png
I have checked this
https://www.imagemagick.org/script/identify.php
where it says that I can extract some information, for example using the "features" option:
https://www.imagemagick.org/script/comm ... p#features
But this is pretty much unclear.
On the other hand, I see this topic:
viewtopic.php?f=1&t=32127
where it says that this:
Code: Select all
$ identify -format "%[fx.mean.r]" myimage.png
Unfortunately, it does not work (empty output).
Same empty output with:
Code: Select all
$ identify -format %[fx.mean.r] myimage.png
FWIW:
Code: Select all
$ identify --version
Version: ImageMagick 6.7.7-10 2018-06-11 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP