基于FPGA的焊缝实时边缘增强算法

FPGA-based real-time edge enhancement algorithm for weld seam is implemented

  • 摘要: 针对焊缝图像处理中存在椒盐噪声处理效果差、实时性差、边缘丢失及强弱边缘连接不佳等问题,提出了一种基于现场可编程门阵列(field programmable gate array, FPGA)的改进边缘增强算法。首先,对采集到的视频流图像进行灰度转换,并利用自适应中值滤波进行降噪处理;其次,通过8方向Sobel算子提取图像梯度向量,利用自适应阈值提高边缘检测准确度;最后,通过形态学开操作增强边缘特征。试验结果表明,在100 MHz时钟下,针对一幅768×1 024的焊缝图像处理采用FPGA仅需23.2016 ms,算法耗时降低到了毫秒级,改进后的算法能够有效去除椒盐噪声、滤除虚假边缘并保留真实边缘信息。

     

    Abstract: In order to solve the problems of poor salt and pepper noise processing effect, poor real-time performance, edge loss and poor connection of strong and weak edges in weld image processing, an improved edge enhancement algorithm based on field programmable gate array (FPGA) is proposed. Firstly, the acquired video stream image is converted to gray level, and the adaptive median filter is used for noise reduction. Secondly, the image gradient vector is extracted by the 8-direction Sobel operator, and the adaptive threshold is used to improve the edge detection accuracy. Finally, the edge features are enhanced by morphological operation. The experimental results show that under the 100 MHz clock, it only takes 23.2016 ms to process a 768×1 024 weld image using FPGA, and the algorithm time is reduced to the millisecond level. The improved algorithm can effectively remove salt and pepper noise, filter false edges and retain real edge information.

     

/

返回文章
返回