Page 1 of 1

How to exclude history info from identify

Posted: 2007-08-16T12:12:01-07:00
by Aldures
Here is a newbie question.

When doing "identify pic -verbose -crop 100x100+1+1" sometimes get history info. Other times I don't, it really depends on the picture content.

I also would like to know how I would only get this info from identify:

"
Channel statistics:
Red:
Min: 0 (0)
Max: 1 (1)
Mean: 0.004375 (0.004375)
Standard deviation: 0.0659989 (0.0659989)
Green:
Min: 0 (0)
Max: 1 (1)
Mean: 0.004375 (0.004375)
Standard deviation: 0.0659989 (0.0659989)
Blue:
Min: 0 (0)
Max: 1 (1)
Mean: 0.00435547 (0.00435547)
Standard deviation: 0.0658521 (0.0658521)
"


Any and all suggestions would be greatly appreciated.

Thanks.

Re: How to exclude history info from identify

Posted: 2007-08-18T16:32:27-07:00
by anthony
Use convert .... -format %c histogram:info:
See IM Examples, file handling, histogram.
http://www.imagemagick.org/Usage/files/#histogram

As for channel statistics, at this time the ONLY method is to try to use veraious text utilities to extract it.

For one such example see...
http://www.imagemagick.org/Usage/compare/#type_general
and go down to 'Black and White Images'

Re: How to exclude history info from identify

Posted: 2007-08-20T17:07:39-07:00
by Aldures
Thanks Anthony.

I was trying to avoid any pipe method and you have answered my question 100%, thanks.