Page 1 of 1

Ordering of colors after MagickUniqueImageColors

Posted: 2007-11-13T16:49:47-07:00
by slantedview
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. 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.

Is something like this possible via any other means? Should I submit a feature request for this? Would it actually be fulfilled?

thanks
jonathan

Re: Ordering of colors after MagickUniqueImageColors

Posted: 2007-11-13T17:23:37-07:00
by slantedview
I thought I'd follow up with my own message since Anthony pointed me in the right direction. The solution is to use the Histogram funcitonality to get a count of each color.

Thanks Anthony!