You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While testing the different distance metrics... I think the "CMC" implementation may have a problem.
(This not so urgent to me, the other metrics seem fairly good. But this CMC method seems incorrect, unless I'm doing something wrong.)
Test case is to calculate distance between a blue "#007FFF" hex color, versus all R colors(), then sort for lowest distance.
The color with lowest CMC distance is darkorange3.
Fwiw the test works well with other distance metrics.
I tested a bunch of colors, across all metrics, etc. CMC results consistently resemble an artistic mosaic of random colors. (I mean, that might also be useful, but for different reasons!)
When I created farmer I took the color comparison implementations at face value from the library I used. Looking at it now I can see that it is pretty bad 😬
While testing the different distance metrics... I think the "CMC" implementation may have a problem.
(This not so urgent to me, the other metrics seem fairly good. But this CMC method seems incorrect, unless I'm doing something wrong.)
Test case is to calculate distance between a blue "#007FFF" hex color, versus all R
colors()
, then sort for lowest distance.The color with lowest CMC distance is darkorange3.
Fwiw the test works well with other distance metrics.
I tested a bunch of colors, across all metrics, etc. CMC results consistently resemble an artistic mosaic of random colors. (I mean, that might also be useful, but for different reasons!)
Here is the test case:
Output:
Quick plot of the first 6 colors (the first point is the input blue, the next 6 are colors with lowest CMC distance):
Best I could do is find an online calculator to confirm that these two colors are not similar (they are not):
http://colormine.org/delta-e-calculator/cmc
I don't think this is the bug from #21, but I did not look in detail.
The text was updated successfully, but these errors were encountered: