基于X射线图像分割的焊缝缺陷检测方法

Weld defect detection method based on X-ray image segmentation

  • 摘要:
    目的 传统的X射线检测方法存在评片结果容易受到人为因素影响的问题,评片人员在长时间进行评片工作后可能产生疲劳,该文意在解决背景复杂的焊缝图像容易漏检小缺陷目标的问题。
    方法 选用中值滤波进行图像去噪。利用图像的灰度值在焊缝起始和终止位置的灰度变化剧烈的特性,进行了基于灰度变化率的焊缝区域提取工作。对图像进行灰度增强,对每一行的灰度值进行变换,通过对灰度值区间的线性拉伸使缺陷与背景的灰度差增大;提出一种窗口累计式S-T灰度变换,将缺陷的“灰度劣势”进一步拉大,将变换后的缺陷灰度值置于低值水平,将变换后的处于灰度起伏区域的背景像素点灰度值置于中值水平。
    结果 结合图像去噪、图像分割、形态学处理等技术,成功提取出焊缝X射线图像中大灰度起伏背景下的缺陷弱目标。实际检测图像应用该文算法进行检测,检测结果与原图像对比显示,该算法能较准确地提取出缺陷,证明了其有效性。
    结论 基于数字图像处理算法,提出的窗口累计式的S-T变换方法,结合图像去噪、图像分割、形态学处理等技术成功提取出焊缝X射线图像中大灰度起伏背景下的缺陷弱目标。

     

    Abstract: Objective Traditional X-ray testing methods have the problem that the evaluation results are easily affected by human factors. The evaluation personnel may experience fatigue after conducting the evaluation work for a long time,this paper aims to solve the problem that small defect targets are prone to be missed in weld images with complex backgrounds. Methods Median filter is used for image denoising. The gray level characteristic of the image changes violently at the beginning and ending positions of the weld seam is utilized, weld area extraction based on the gray change rate is carried out. The gray level of the image is enhanced, the gray level of each line is transformed, and the gray level difference between defect and background is increased by linearly stretching the gray level range. A window-cumulative S-T gray level transformation is proposed to further widen the “gray level disadvantage” of the defect, placing the transformed gray level of the defect at a low level, placing the gray level of the transformed background pixels in the gray fluctuating area at the median level. Results Combined with image de-noising, image segmentation, morphological processing and other technologies, the weak target of defects under the background of large gray fluctuations in the weld X-ray image is successfully extracted. The actual inspection image is tested using this algorithm. The comparison between the inspection results and the original image shows that the algorithm can accurately extract defects, which proves its effectiveness. Conclusion Based on the digital image processing algorithm, the proposed window-cumulative S-T transform method combines image de-noising, image segmentation, morphological processing and other technologies to successfully extract weak targets of defects in weld X-ray images under large gray fluctuations background.

     

/

返回文章
返回