去除 png 中的伪影
我创建了自己的算法来消除基于像素的伪影。唯一的问题是我必须根据图片手动指定 RGB 的范围。
我正在尝试使其更加自动化,并得出结论,伪影通常颜色非常浅,除非倾斜屏幕,否则几乎看不见。我可以使用任何 RGB 数学来正确清除这些伪影吗?
I've created my own algorithm to remove artifacts based on pixels. The only problem is that I have to manually specify the range of RGB based on a picture.
I'm trying to make it a bit more automatic, and have concluded that artifacts are usually very light colored and barely visible unless tilting the screen. Is there any RGB math that I can use to weed these artifacts out properly?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
实现此目的的基本方法是在图像上使用自适应模糊。非常接近白色的将变成白色,依此类推,但边缘将保持完整。使用 ImageMagick,http://www.php.net/manual/en/imagick。自适应模糊图像.php
A basic way to do this is to use an adaptive blur on the image. Very close to white will be turned white, and so on, but edges will stay intact. Use ImageMagick, http://www.php.net/manual/en/imagick.adaptiveblurimage.php