计算机工程与应用 ›› 2017, Vol. 53 ›› Issue (22): 163-168.DOI: 10.3778/j.issn.1002-8331.1605-0252

• 图形图像处理 • 上一篇    下一篇

基于FPGA的实时SGM匹配算法研究与实现

冯彬彬1,蒋新华1,2,林俊杰2,聂明星2   

  1. 1.福州大学 电气工程与自动化学院,福州 350000
    2.福建省数字化装备重点实验室(福建工程学院),福州 350000
  • 出版日期:2017-11-15 发布日期:2017-11-29

Research and implementation of  real-time semi global matching algorithm based on FPGA stereo vision

FENG Binbin1, JIANG Xinhua1,2, LIN Junjie2, NIE Mingxing2   

  1. 1.College of Electrical Engineering and Automation, Fuzhou University, Fuzhou 350000, China
    2.Fujian Provincial Key Laboratory of Digital Equipment (Fujian University of Technology), Fuzhou 350000, China
  • Online:2017-11-15 Published:2017-11-29

摘要: 传统SGM算法,运算复杂度高,硬件资源需求量大,难以应用到实时嵌入式系统中。为此提出一种基于FPGA嵌入式平台的实时SGM(Real-Time SGM,RT-SGM)算法。RT-SGM选取三个方向作为匹配算法的优化方向;设计新的算法的结构,使该算法能运行在Pipeline状态下;提出一种新型中值滤波算法对结果进行优化。在FPGA硬件平台上完成实验。实验结果表明,RT-SGM运行速度相比于传统SGM算法提高了30%,而在资源需求上只有传统SGM算法的一半,同时其精度与传统SGM算法相当,适合应用到实时嵌入式系统中。

关键词: 现场可编程门阵列(FPGA), 立体匹配, 实时SGM算法, Pipeline状态, 新型中值滤波

Abstract: Traditional Semi Global Matching algorithm is not suitable for running on real-time embedded platform because of its complex structure, and high demand for hardware resources. Thus, this paper puts forward the Real-Time SGM algorithm based on FPGA embedded platform. Real-Time SGM selects three directions as the optimization direction to reduce the demand for hardware resources. Then, the algorithm can run in the condition of Pipeline by designing a new structure, and improve the operation speed. Moreover, it puts forward a new kind of median filter algorithm to optimize the results. Finally, simulation is done on the PFGA platform. Experimental results show that compared with the original algorithm, the new algorithm has lower resource requirements, and has a large increase in the speed of the algorithm, which is suitable for running in low power consumption embedded system.

Key words: Field Programmable Gate Array(FPGA), stereo matching, real-time SGM, pipeline, new median-filter