[magick-users] Number of colors (identify -verbose)
Anthony Thyssen
anthony at griffith.edu.au
Mon Nov 5 18:11:27 PST 2007
Al Bogner on wrote...
| Am Montag, 5. November 2007 03:17:02 schrieb Anthony Thyssen:
|
| > | I changed from Suse 10.2 to Suse 10.3, which changed the IM version too
| > | from
| > |
| > | Suse 10.2
| > | identify -version
| > | Version: ImageMagick 6.3.0 10/12/07 Q16
| > |
| > | Suse 10.3
| > | identify -version
| > | Version: ImageMagick 6.3.5 09/25/07 Q16
| > |
| > | Suse 10.2
| > | identify -verboset test.jpg | grep "Colors:"
| > | Colors: 373602
| > |
| > | Suse 10.3
| > | no result
| > |
| > | Was the number of colors removed or did Suse something wrong?
| >
| > Errr.. try removing the 't' from "-verboset"
|
| Thanks, this was a typo
|
| > And you are right 'Colors:' appears missing.
| >
| > But you can get them using
| > identify -format %k test.jpg
|
| This works fine.
|
| > NOTE: the number of colors in a JPEG image is actually rather usless as
| > a jpeg does not store 'colors' but foruier waves. That is the actual
| > color is generated whenever the image is read, often resulting in a
| > unique color for each and every pixel.
|
| I don't need an exact value. I want to compare pictures with less or more
| colors and I round it to 100000, eg.
| http://www.flickr.com/photos/tags/colors700000/
|
I hate suggesting this as I don't like the option, but try using
-segment on the image first. This attempts to make areas of simular
color a single color (for image segmentation purposes). The number of
colors generated should give you a better idea of the image complexity
than the number of colors.
However as I said I don't like the current implementation.
Anthony Thyssen ( System Programmer ) <A.Thyssen at griffith.edu.au>
-----------------------------------------------------------------------------
SPACE FOR THIS INSERTION IS DONATED BY THE PUBLISHERS AS
A SERVICE TO THE COMMUNITY -- John Brunner - "The Sheep Look Up"
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
More information about the Magick-users
mailing list