我对图像处理和识别的背景知识很少。我正在尝试检测灰度图像(例如肖像)上的主要边缘/灰度过渡。问题是在某些部分,边缘模糊(因为焦点)。我使用具有多个阈值的 Canny 边缘检测器,但我永远无法检测到这些边缘(下巴、衣服、耳朵、脸的侧面……)
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
边缘检测是解决这个问题的正确工具吗?
谢谢!
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.
Using canny-deriche filter you can find :
完整代码是here https://github.com/LaurentBerger/FilterChoice
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)