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.
我创建了自己的算法来去除基于像素的伪影。唯一的问题是我必须根据图片手动指定 RGB 的范围。
我试图让它更自动化一点,并得出结论,伪影通常颜色很浅,除非倾斜屏幕,否则几乎看不到。是否有任何 RGB 数学可以用来正确清除这些伪影?
一个基本的方法是在图像上使用自适应模糊。非常接近白色会变成白色,依此类推,但边缘将保持不变。使用 ImageMagick,http: //www.php.net/manual/en/imagick.adaptiveblurimage.php