Find closest color from an RGB value.  
Author Message

PostPosted: Visual C# General, Find closest color from an RGB value. Top

I would like to take a bitmap and read through it and figure out what color the bitmap has most of. I would like to specify about 10 colors and come up with results that say which one of the 10 colors was in the bitmap more and some sort of score to say how often the color was in the image. Also, I would need to figure out that an RGB value is "close enough" to be considered Red. So I would need some way to figure out if an RGB color is a certain shade of Red, or Blue, etc...

I would be using this to categorize images based on a certain set of colors.

I know this is a long question but if someone could get me going in the correct direction that would be helpful. Thanks!

Visual C#20