Page 1 of 1
Getting a histogram
Posted: 2008-06-02T20:41:31-07:00
by JDlugosz
I ran identify on a file and it gave me a long listing including a histogram. This just happens to be what I was interested in! I don't recall the "--read-users-mind" option! But how did it know? And more to the point, how do I get such a histogram on other files, which it doesn't seem to do on its own? I can't find an option for that in the main command reference nor in the docs for identify.
--John
Re: Getting a histogram
Posted: 2008-06-02T20:57:34-07:00
by magick
The identify program returns a histogram if the image has 1024 unique colors or less. There is currently no option to force a histogram if the image has more than 1024 colors other than modifying the ImageMagick source.
Re: Getting a histogram
Posted: 2008-06-02T21:46:01-07:00
by JDlugosz
I see. So a small patch of 700 pixels of course had less than 1024 unique colors, and will always generate one. That is good to know for my immediate purpose. Thank you.
--John
Re: Getting a histogram
Posted: 2008-06-02T22:02:15-07:00
by fmw42
Re: Getting a histogram
Posted: 2008-06-05T00:16:03-07:00
by anthony
the IM examples section also details how to get the histogram form the histogram: output image comment, which is always generated!