边缘模糊检测 [英] Blurry edge detection

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

问题描述

我对图像处理和识别的背景知识很少.我正在尝试检测诸如肖像之类的灰度图像上的主要边缘/灰度过渡.问题在于,某些部分的边缘模糊(因为聚焦).我正在使用具有多个阈值的Canny边缘检测器,但无法检测到这些边缘(下巴,衣服,耳朵,脸部...)

I have little background knowledge of image processing and recognition. I am trying to detect principal edges/grayscale transitions on a grayscale image such as a portrait. The problem is that on some parts, the edge is blurred (because of focus). I am using Canny edge detector with multiple thresholds, but I can never detect those edges (chin, clothes, ears, side of the face, ...)

原始图片:这就是我得到的结果:胡须,锋利的边缘这就是我感兴趣的功能:主要灰色区域之间的过渡

Original image: This is the result I am getting: beard, sharp edges This is what features I'm interested in: transitions between the main gray areas

边缘检测是正确的工具吗?谢谢!

Is edge detection the right tool for this? Thanks!

更新:使用Deriche过滤并将边缘检测之前的图像大小减半(孔径为7),使它的工作非常接近我想要的.

UPDATE: Using Deriche filtering and halving the size of the image before edge detection (with apertureSize=7), I got it working pretty close to what I want.

推荐答案

使用canny-deriche过滤器,您可以找到:

Using canny-deriche filter you can find :

完整代码为此处

这篇关于边缘模糊检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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