计算机应用 ›› 2011, Vol. 31 ›› Issue (06): 1706-1708.DOI: 10.3724/SP.J.1087.2011.01706

• 典型应用 • 上一篇    下一篇

设备监控图像预处理算法改进及其FPGA实现

张鹏1,钟俊1,郭安明1,彭强2   

  1. 1. 四川大学 电气信息学院,成都 610065
    2. 四川大学
  • 收稿日期:2010-12-03 修回日期:2011-01-13 发布日期:2011-06-20 出版日期:2011-06-01
  • 通讯作者: 张鹏
  • 作者简介:张鹏(1986-),男,辽宁阜新人,硕士研究生,主要研究方向:信号与信息处理、数字图像处理;钟俊(1965-),男,重庆人,副教授,主要研究方向:通信中的信号处理、扩频通信、无线通信;郭安明(1987-),男,山东泰安人,硕士研究生,主要研究方向:信号与信息处理、地理信息系统;彭强(1988-),男,四川成都人,硕士研究生,主要研究方向:信号与信息处理、嵌入式系统设计。

Improved image preprocessing algorithm based on FPGA

ZHANG Peng1,ZHONG Jun1,GUO Anming1,PENG Qiang2   

  1. 1. School of Electrical Engineering and Information, Sichuan University, Chengdu Sichuan 610065, China
    2.
  • Received:2010-12-03 Revised:2011-01-13 Online:2011-06-20 Published:2011-06-01
  • Contact: ZHANG Peng

摘要: 为实现对现场监控图像的实时预处理,针对灰度化和二值化算法复杂度高、计算量大和不易于硬件实现等问题,对图像预处理方法进行了研究。通过重新设计加权平均灰度算法的权重,使灰度算法由浮点运算简化为定点运算,易于现场可编程门阵列(FPGA)实现;提出一个基于Otsu算法的改进评价函数,证明了其与最大类间方差法、最小类内方差法的等价性。进而提出一种适于硬件实现的图像预处理算法,并通过Verilog编程以及在Matlab和ModelSim上联合仿真,证明了整个预处理功能的可实现性,最终设计出一种可用于实时图像处理系统前端的基于硬件实现的高速图像预处理模块。

关键词: 现场可编程门阵列, 图像预处理, 二值化, Otsu算法, 循环迭代

Abstract: In order to preprocess the monitoring image, the image preprocessing was studied. Grayscale and binarization algorithm are highly complex, difficult to achieve and cost large computation. The weighted average method was redesigned, of which the floating-point computation was simplified to fixed-point for the benefit of achieving FPGA. An improved function based on Otsu algorithm was proposed and it was proved to be equivalent to Otsu algorithm. Moreover, the preprocessing algorithm was easy to be realized via hardware. After the Verilog programming, the algorithm was simulated on Matlab and ModelSim. The result demonstrates that the new algorithm is effective and achievable. Therefore, the design can be used as a preprocessing module of a real-time image processing system. As a result, it will save lots of time for the computations after preprocessing.

Key words: Field Programmable Gate Array (FPGA), image preprocessing, binarization, Otsu algorithm, iteration

中图分类号: