Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个背景图像和一个新图像,我希望逐个像素地进行比较。
我将它们称为 I1 和 I2。假设 I1 中 x,y 处的颜色为 (r1,g1,b1),而 I2 为 (r2,g2,b2)。
现在我根据经验发现我房间里的灯光设置,当 r1 在 r2 +/- 25 范围内或 b1 在 b2 +/- 25 范围内或 g1 在 g2 +/ 范围内时- 25,I1 和 I2 中 x,y 处的像素相同。
这 25 是我房间的阈值,我如何动态估计这个阈值。
听起来您正在寻找颜色量化。每个人都可以看到不同的“相同”。据我所知,没有人能取悦每个人。
颜色量化技术概述
Ux StackExchange Monitor 颜色和人眼