If I get a lightgray color(for example R=G=B=200) and a dark one(for example R=46,G=41,B=35), I’d like to classify both of them to the simple gray color group(imagine a table).
So, how can I organize the colors to color groups?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For visual classification of colors, it is often easier to convert the color to HSL or HSV first. To detect grays, you check if the Saturation is below some threshold. To detect any other color, you check the Hue.
You could of course use some other divisions.
I made a simple JavaScript application to test this: Color classification