量子电子学报 ›› 2023, Vol. 40 ›› Issue (4): 458-468.doi: 10.3969/j.issn.1007-5461.2023.04.004

• 图像与信息处理 • 上一篇    下一篇

太赫兹成像三维块匹配自适应Canny边缘检测算法

於康杰 1, 方波 1,3*, 李剑敏 2, 王震 3, 蔡晋辉 1, 邬佳璐 1, 何正龙 1   

  1. ( 1 中国计量大学计量测试工程学院, 浙江 杭州 330018; 2 北方光电集团有限公司, 陕西 西安 710000; 3 杭州大华仪器制造有限公司, 浙江 杭州 311400 )
  • 收稿日期:2021-05-14 修回日期:2021-07-15 出版日期:2023-07-28 发布日期:2023-07-28
  • 通讯作者: Fangbo@cjlu.edu.cn E-mail:Fangbo@cjlu.edu.cn
  • 作者简介:於康杰 ( 1997 - ) , 浙江杭州人, 研究生, 主要从事精密测量技术方面的研究。 E-mail: s1902080450@cjlu.edu.cn
  • 基金资助:
    国家重点研发计划重大科学仪器设备开发专项课题 (2018YFF01013005)

3D block matching adaptive Canny edge detection algorithm for terahertz imaging

YU Kangjie 1, FANG Bo 1,3*, LI Jianmin 2, WANG Zhen 3, CAI Jinhui 1, WU Jialu 1, HE Zhenglong 1   

  1. ( 1 College of Metrology and Measurement Engineering, China Jiliang University, Hangzhou 330018, China;
    2 North Electro-Optics Group Co. Ltd, Xi'an 710000, China;
    3 Hangzhou Dahua Instrument Manufacturing Co. Ltd, Hangzhou 311400, China )
  • Received:2021-05-14 Revised:2021-07-15 Published:2023-07-28 Online:2023-07-28

摘要: 针对传统Canny 算子在滤波时会模糊边缘且需要人工设置高低阈值的缺点, 提出了一种基于三维块匹配的 改进自适应阈值Canny 边缘检测算法, 并用于太赫兹三维层析成像。该算法一方面对滤波方法进行了改进, 用三维 块匹配 (BM3D) 滤波算法结合引导滤波算法代替高斯滤波算法以减少图像边缘信息的丢失; 另一方面, 针对传统人 工设定阈值的不确定性, 将梯度图进行块匹配后对三维图像块组使用最大类间方差法 (OTSU) 以自适应确定高低阈 值。最后利用该算法对含有噪声的图像进行边缘检测处理, 发现在高斯噪声方差为20 时滤波后的峰值信噪比 (PSNR) 从22.202 提升至27.151, 验证了该算法去除噪声的有效性。三维块匹配改进自适应阈值Canny 边缘检测算 法 (BM-OTSU-Canny) 减少了错误边缘的数量, 同时保留了连接性较好的边缘点, 改善了边缘细节信息的提取效果。

关键词: 图像处理, 太赫兹成像, 三维块匹配, Canny 算法, 边缘检测

Abstract: Aiming at the shortcomings of traditional Canny operator in filtering, which can blur the edge and need to set high and low thresholds manually, an improved adaptive threshold Canny edge detection algorithm based on 3D block matching is proposed for terahertz 3D tomography. On one hand, the algorithm improves the filtering method by replacing the Gaussian filtering algorithm with the 3D block matching (BM3D) filtering algorithm and the guided filtering algorithm to reduce the loss of image edge information. On the other hand, in view of the uncertainty of the traditional manual threshold, the maximum inter-class variance method (OTSU) is used to adaptively determine the high and low thresholds of 3D image blocks after block matching of gradient images. Finally, the edge detection of images containing noise is carried out using the algorithm. It is found that when the Gaussian noise variance is 20, the filtered peak signal-to-signal ratio (PSNR) increases from 22.202 to 27.151, which verifies the effectiveness of the algorithm in removing noise. By using BM-OTSU-Canny algorithm, the number of false edges is reduced, and at the same time, the edge points with better connectivity can be retained, and the extraction effect of edge details is improved.

Key words: image processing, terahertz imaging, 3D block matching, Canny algorithm, edge detection

中图分类号: