如何在 ActionScript 3 中删除 BitmapData 的相似颜色? JPG 伪影去除
我想知道 ActionScript 3 中是否有滤镜或其他东西可以让我删除与照片中其他颜色相似的颜色?
我有 JPEG 图像的 BitmapData,但 JPEG 的保存质量相当低,因此有一些像素使其看起来很丑(JPEG 伪像)。如果没有这些图片看起来还可以,有没有办法在 AS3 中删除它们?
正在考虑类似 ColorMatrixFilter 或类似的东西吗?
I was wondering if there is a filter or something in ActionScript 3 that lets me remove colors that are similar to other colors in a photo?
I have BitmapData of a JPEG image but the JPEG was saved with pretty low quality so there are some pixels that make it look ugly (JPEG artifacts). Without those pictures it would look okay, is there a way of removing them in AS3?
Was thinking something like a ColorMatrixFilter or similar?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,没有这样的事情。检测“坏区域”并用周围的一些颜色来修复它们是非常困难的。但是,您可以使用非常低的设置在图像上应用滤镜(模糊或中值滤镜)来稍微改进。尝试中值过滤器,使用半径1;它可以稍微提高图像的平滑度,但会降低照片的真实感。
No there is no such thing for that. It would be very hard to detect the 'bad zones' and fix them with some surrounding colors. However you could apply a filter (blur or median filter) on your image with a very low setting to improve a bit. Try the median filter, use a radius of 1; it could improve the image smoothness a bit, while it reduces the photo realism.