针对散焦模糊图像的复原问题,提出一种基于灰度平均梯度与粒子群优化(PSO)算法相结合的散焦图像模糊参数估计方法。首先,利用PSO算法随机生成一群不同模糊半径的点扩散函数,分别用维纳滤波算法处理模糊图像,得到一系列复原图像,并计算其对应的灰度平均梯度值;然后,利用图像清晰度与图像灰度平均梯度值成正变关系这一特点,以复原图像的灰度平均梯度值作为粒子群算法的适应度函数值,找出使适应度函数最大的粒子所对应的模糊半径作为最后的估计结果。实验结果表明,与频谱估计方法和倒频谱估计方法相比,所提算法能够更精确地估计出模糊参数,尤其是在大尺度模糊半径的情况下,所提算法估计的精度更高。
For image deblurring application with defocus blurring effect,a parameter estimation method based on Grayscale Mean Gradient( GMG) and Particle Swarm Optimization( PSO) algorithm was proposed to estimate the blurring parameter. First,a group of point spread functions with different blurring radius were randomly generated by PSO algorithm to process a blurred image with Wiener filtering algorithm,then a series of restored images were obtained and the corresponding GMG values were calculated. Secondly,concerning the property that the definition of an image is positively varied with its GMG value,which is shown by experimental results,the GMG values were taken as the fitness function values of the PSO algorithm,then a particle with maximum fitness was found,and the corresponding blurring parameter was taken as the final result of estimation. The experimental results show that the proposed algorithm outperforms spectral estimation method and cepstrum estimation method in estimation accuracy,especially in the case with large blur radius.