"Jonathan Halterman" on wrote... | I'm using MagickUniqueImageColors to determine the set of colors used | in an image, but a problem (for me) is that the resulting Image always | has its unique colors ordered from darkest to lightest. | Actualy it is not even that. I do not think it is even defined what the ordering is.
For example in IM examples I get the unique colors from a 'tree' GIF image. http://imagemagick.org/Usage/quantize/#extract the color order definatally has one green which is lighter that the two greens on either side of it. | For my particular application, MagickUniqueImageColors is great, but I | also need to know which colors were the most prominent in the original | image and it would help if the resulting image ordered its colors from | the most prominent color (existed in the most pixels) to the least | prominent. | You want a histogram. As such output the image comment from the "histogram:" image... For example... convert tree.gif -format %c histogram:info:- See http://imagemagick.org/Usage/files/#histogram If you want to ensure the quality depth of the results or combine all 16bit colors down to 8bit colors use a -depth setting. | Is something like this possible via any other means? Should I submit a | feature request for this? Would it actually be fulfilled? | It is present. You just needed to look a bit further in IM Examples. Anthony Thyssen ( System Programmer ) <[EMAIL PROTECTED]> ----------------------------------------------------------------------------- Black holes are merely where God divided by zero ----------------------------------------------------------------------------- Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/ _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
