Best algorithm for matching colours.

后端 未结 5 707
刺人心
刺人心 2020-11-30 21:47

I have an array of around 200 colours in RGB format. I want to write a program that takes any RGB colour and tries to match a colour from the array that is most \"similar\".

5条回答
  •  没有蜡笔的小新
    2020-11-30 22:37

    I'd also point out the least squares method, just as something slightly simpler. That is, you take the difference of a number, square it, then sum all these squared differences.

提交回复
热议问题