Compare RGB colors in c#

前端 未结 8 2042
予麋鹿
予麋鹿 2020-11-29 04:38

I\'m trying to find a way to compare two colors to find out how much they are alike. I can\'t seem to find any resources about the subject so I\'m hoping to get some pointer

8条回答
  •  死守一世寂寞
    2020-11-29 05:24

    Colour perception depends on many factors and similarity can be measured in many ways. Just comparing how similar the R, G and B components are generally gives results humans won't agree with.

    There's some general material on colour comparisons in wikipedia, and on working with natural colour spaces in C# in this question.

提交回复
热议问题