Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Closest Color Matching Algorithm

Posted on 2013-01-08
3
Medium Priority
?
2,218 Views
Last Modified: 2013-01-08
I'm looking for a way to best match a color to a list of colors for closest match weighted to the visible eye.

Weight might be something like:
30% Red, 60% Green, 10% Blue

Would it be better for me to match on RGB or HSL?  What are the best methods you know of to accomplish this task?
0
Comment
Question by:collages
  • 2
3 Comments
 
LVL 42

Accepted Solution

by:
Meir Rivkin earned 2000 total points
ID: 38755640
here's your solution:
Best algorithm for matching colours
0
 
LVL 42

Expert Comment

by:Meir Rivkin
ID: 38755656
there are 2 alternatives in the post:
1. using CIE Lab color space
2. RGB to HSL conversion (simpler)
0
 
LVL 1

Author Closing Comment

by:collages
ID: 38755687
Thank you very much.  Great answer.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Suggested Courses

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question