如何改善或模糊或平滑边缘? [英] how to refine or blur or smooth just the edges?

查看:99
本文介绍了如何改善或模糊或平滑边缘?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以仅使用白色背景细化或模糊图像中的边缘?
我想要获得图像的边缘遮罩(我已经得到了它)。之后使用该蒙版在原始图像上应用模糊或平滑功能。这样只有边缘才会模糊或细化。但我不知道如何实现这一点。

Is it possible to refine or blur just the edges in an image with the white background ? I was thinking to get an edge mask of the image ( i already got it). After that use that mask to apply blur or smoothing function on the original image. So that only the edges will be blurred or refined. But i don't know how to achieve this.

谢谢

推荐答案

如果您有图像的边缘遮罩,请执行以下操作:

If you have an edge mask of the image, do that:


  1. 扩张(边缘遮罩)

  2. 复制(来源:原创,目的地:模糊)

  3. 平滑(模糊)

  4. 复制(来源:模糊,目的地:原创,面具: edgemask)

  1. Dilate(edgemask)
  2. Copy(source: original, destination: blurred)
  3. Smooth(blurred)
  4. Copy(source: blurred, destination: original, mask: edgemask)

您的原始图片会模糊。

这篇关于如何改善或模糊或平滑边缘?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆