吉首大学学报(自然科学版) ›› 2023, Vol. 44 ›› Issue (3): 29-33.DOI: 10.13438/j.cnki.jdzk.2023.03.004

• 计算机与通信 • 上一篇    下一篇

基于改进Census变换的双目立体匹配算法

安耿,杨奋林,周梦园,窦信瑞   

  1. (1.吉首大学通信与电子工程学院,湖南 吉首 416000;2.吉首大学数学与统计学院,湖南 吉首 416000)
  • 出版日期:2023-05-25 发布日期:2023-06-16
  • 通讯作者: 杨奋林(1982—),女,湖南宁乡人,吉首大学数学与统计学院副教授,博士,主要从事图像处理研究.
  • 作者简介:安耿(1997—),男,陕西西安人,吉首大学通信与电子工程学院硕士研究生,主要从事图像重建研究

Binocular Stereo Matching Algorithm Based on Improved Census Transform

AN Geng,YANG Fenlin,ZHOU Mengyuan,DOU Xinrui   

  1. (1.School of Communication and Electronic Engineering,Jishou University,Jishou 416000,Hunan China;2.School of Mathematics and Statistics,Jishou University,Jishou 416000,Hunan China)
  • Online:2023-05-25 Published:2023-06-16

摘要:针对传统Census变换窗口中心点灰度值易受噪声影响而导致全局匹配精度低等问题,设计了一种基于改进Census变换的双目立体匹配算法.首先采用双边滤波的模板值替代传统Census变换窗口中心点的灰度值,为了增强初始代价计算的可靠性,加入Sobel算子,将其与灰度绝对误差和算法的匹配代价进行代价融合;然后选择动态十字交叉域建立相邻视差的联系;最后运用赢家通吃策略选择最佳的视差,并采用左右一致性检测和引导滤波优化视差图.实验结果表明,在无噪声情况下,改进算法的平均误匹配率比传统Census变换的降低了约46%,含噪声情况下降低了约53%,说明改进算法有较好的匹配精度和抗噪能力.

关键词: 立体匹配, 传统Census变换, 双边滤波, 代价融合, 视差图

Abstract: For the problem that the gray value of the center point of the traditional Census transform window is easily affected by noise and the global matching accuracy is low,a binocular stereo matching algorithm based on improved Census transform is proposed.First,the template value of bilateral filtering is used to replace the gray value of the center point of the Census transform window.In order to enhance the reliability of the initial cost calculation,Sobel operator and the absolute error of gray level and the matching cost of the algorithm are added for cost fusion.Then the dynamic cross region is selected to establish the relationship between adjacent parallaxes.Finally,the winner-take-all strategy is used to select the best disparity,and left and right consistency detection and guided filtering are used to optimize the disparity map.The experimental results show that compared with the traditional Census transform,the average mismatch rate of the algorithm is reduced by about 46% in the noiseless case and 53% in the noisy case.It is concluded that the improved algorithm has better accuracy and anti-noise ability.

Key words: stereo matching, Census transform, bilateral filtering, cost fusion, parallax map

公众号 电子书橱 超星期刊 手机浏览 在线QQ