改进的分水岭算法在焊接图像中的应用
Application of an improved watershed algorithm in welding image segmentation
-
摘要: 针对焊接缺陷X射线检测方法的现状和目前存在的主要问题,提出了一种改进的分水岭算法。从图像的结构信息考虑,由于噪声产生的谷底值是很小的,而对应于真正的区域,每个区域的最小谷底会有一个很大的动态值,这个值与没有噪声时的谷底动态值相近。因此,只要简单地给一个阈值,通过动态合并准则进行边分割边合并就可以将那些由噪声产生的谷底滤掉,从而也就抑制了过分割问题。结果表明,该方法能够快速、准确地得到焊接图像的分割结果。Abstract: In view of the present state of welding flaw X-ray test method and open problem, an improved watershed algorithm is proposed. In consideration of the structure information of image, the valley-bottom value produced by noise is very small. However, the minimum valley-bottom of each area well have a very big dynamic value corresponding to real area, which is close to the valley-bottom dynamic value when there is no noise. Hence, the valley-bottom produced by noise can be flitered, thus effectively restraining the over-segmentation, provided that a threshold is simply given based on the dynamic combination rule. Experimental results show that the algorithm can quickly and accurately obtain the segmentation result of flaw image. Futhermore, it has higher ability in resisting noise.