摘要
为了解决由于X射线图像特征微弱,导致铅条成像不清与检测错误的问题,融合多种增强模式,设计一种基于直方图均衡化与拉普拉斯的铅条图像增强算法。首先,基于二进制读图与图像通道位操作,将12bit原始裸数据转换为三通道RGB图像。然后,耦合直方图均衡化与对数变换函数,得到预增强图像。随后,结合拉普拉斯增强算法与伽马变换函数,设计增强模型,完成X射线图像特征的增强,输出增强的铅条图像。最后,在Visual Studio开发平台上利用C++语言调用OpenCV开源库函数编程实现算法。测试结果显示,与当前目标增强算法相比,所提方案具有更高的增强质量。
In order to solve the problem that the X-ray image features are weak,leading to blurred image of lead strip and incorrect detection of algorithm,this paper organically combines various enhancement mode algorithms,and designs and develops a lead strip image enhancement algorithm based on histogram equalization and Laplacian.Firstly,based on binary image reading and image channel bit operation,12 bit raw bare data is converted into three-channel RGB images.Then,the pre-enhanced image is obtained by coupling histogram equalization and logarithmic transformation function,which is used to prepare data for subsequent enhancement algorithm.Then,combined with Laplacian enhancement algorithm and gamma transform function,a multi-enhancement algorithm model is created to enhance the X-ray image features,which to a certain extent achieves the purpose of feature enhancement and restoration of lead strip image,and provides data possibility for defect detection algorithm to detect lead strip anomalies.Finally,on the Visual Studio development platform,the OpenCV open source library function programming algorithm is invoked by C++language and integrated into the system.Designed comparative experiments,compared with the existing ordinary enhancement algorithm,the system has better image enhancement effect.
作者
陈春谋
Chen Chunmou(Shaanxi Vocational College of Finance and Economics,Xianyang 712000,China)
出处
《国外电子测量技术》
2019年第7期131-135,共5页
Foreign Electronic Measurement Technology
关键词
X射线图像
直方图均衡化
拉普拉斯
对数变换
伽马变换
X-ray image
histogram equalization
laplace
logarithmic transformation
gamma transformation