Similarity Between Colors

后端 未结 3 459
小蘑菇
小蘑菇 2020-12-11 20:39

I\'m writing a program that works with images and at some point I need to posterize the image. This means I need to bin the colors, but I\'m having trouble deciding how to t

3条回答
  •  北海茫月
    2020-12-11 21:16

    Just a comment if you are going to move to HSV (or similar spaces):

    • Diffing on H: difference between 0° and 359° is numerically big but perceptually is negligible.

    • H difference if V or S are small - is small.

    • For computer vision apps, more important not perceptual difference (used mostly by paint manufacturers) but are these colors belong to the same object/segment or not. Which means that we might partially ignore V, which can change from lighting conditions.

提交回复
热议问题