When measuring color distance between two colors, there are plenty of methods. You can use the euclidean distance in the RGB space and you can do more sophisticated calculation such as the perceptual distance in the Lab space (deletE).
But I am asking if there exists any sort of distance that can be measured between a set of colors and another set of colors, which can be referred as palettes. In a first instance both sets could be of the same length, but ideally the set could contain any number of colors.
Eg.
set_1 = {(255, 0, 0), (200, 10, 10), (230, 20, 20)}
set_2 = {(255, 50, 50), (200, 50, 50)}
set_3 = {(0, 255, 0), (10, 255, 10)}
Intutively, the distance between set_1
and set_2
would be smaller than set_1
and set_3
. But I do not know if any method exists to have a quantitive approach to this problem.
I have already tried measuring the distance of the main color of the palette, but I have not found a solution that takes into account all the colors from the sets.