Solved

Closest Color Matching Algorithm

Posted on 2013-01-08
3
1,896 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:
sedgwick earned 500 total points
ID: 38755640
here's your solution:
Best algorithm for matching colours
0
 
LVL 42

Expert Comment

by:sedgwick
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

776 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