image processing - Is there an easy way to compare how close two colors are to each other -


Is there a way to compare how the two colors are close to each other? If both say blue then.
The way we compare them to this time, it is to manually assign each color to each color (red, green, blue color ...) of each possible color. And then just compare the strings :) But of course the manual work can be assigned to a clean small algorithm.

, a single number that represents the perceived 'distance' between two colors, The more common colors are for human eyes.

There are a few different ways to calculate this ... CIE76 (aka CIE 1976 or DE 76) is the most popular.

Each goes about things in a different way, but for the most part they all need to convert to a better (comparative) color model than RGB.

For CIE76, you basically just change your colors to LAB color space, then calculate 3-dimensional distance between them.

All the formulas of Wikipedia are:

You can see your work with the Online Color Calculator:

  • < / Li>

Comments