math - Similarity Between Colors -
I am writing a program that works with images and at some point I need to post an image. This means that I need to turn off the colors, but I am having difficulty in deciding how to tell about the second color of one color.
Looking at one color in RGB, I can see at least 2 ways how different they are:
- | R1 - r2 | + | G1 - G2. 2 + (B1B2) ^ 2)
And if I go to HSV, then I can think of other ways to do this.
So I ask if the speed should be ignored, what is the best way to tell that there are two colors similar?
Take a look here
and
Comments
Post a Comment