1

I have a logo and I would like to retrieve the "most used colors", but filter similar colors.

My idea is like the Kuler from Adobe, where you get 3-5 colors that will look nice together. They are often quite a bit apart in the "colorwheel".

So, I receive a image and I would like to see if there is some kinda way to figure out what primary colors it have and then after this result try to figure out what colors would look "Kuler" combined with it.

Question:

How do I make a historygram function that will "group similar colors" ??? To build the histogram I guess I would just make an array of "found colors" and then ++ each time found while scanning the image pixel by pixel.

But instead of RGB(xx,yy,zz) in 256 tones, I think this should be roughly "lowered" to eg. 16 values or perhaps less?

Has anyone done similar or do you have any ideas of how to get started?

I would love to see somekinda example in C# as thats my preferede language for this task.

BerggreenDK
  • 4,915
  • 9
  • 39
  • 61
  • Would it be possible to use HTML colour codes and get a range of values that are a similar colour? Maybe give it a base colour, and then change the HEX values (which I'm pretty sure are grouped RRGGBB) by a bit either way if possible. Just an idea, I'm not entirely sure of the best way to go about it. – joshhendo Jan 15 '11 at 14:21
  • The RGB color space consists of *far* more than 256 individual colors. And doing this in 256 or 16 colors is going to produce *terrible* results. I recommend researching color theory a little more extensively before undertaking a project like this. – Cody Gray - on strike Jan 15 '11 at 14:42
  • I am aware of 24-bit colors (hench xx,yy,zz in 256 tones). So thats 256*256*256 colors or approx 16,7 mill. – BerggreenDK Jan 15 '11 at 14:59

1 Answers1

0

Tools such as Kuler use color models to determine what colors are 'similar', what the 'illumination' of a color is, how 'bright' a color is or what its counter color is.

So you might want to read about color models on wikipedia

Secondly see this post

Community
  • 1
  • 1
Emond
  • 50,210
  • 11
  • 84
  • 115