针对传统划痕修复算法存在梯度效应以及精度不高等问题,提出基于5×5邻域像素点相关性的划痕修复算法.利用待修复区域与周围24个邻近像素点的相关性,通过定义待修复像素点的优先度来确定填充顺序.每次修复一个像素点并及时更新待修复区域,重复操作直至待修复区域像素点的个数为0.实验结果证明,该算法与传统算法相比,更适用于旧的影视资料的修复,既可缩短运行时间,也获得了较高的峰值信噪比(peak signal to noise ratio,PSNR)值和结构相似性(structural similarity index, SSIM)值.
【英文摘要】
In view of the existence of gradient effect and low accuracy of traditional scratch repair algorithm, this paper proposes a new scratch repair algorithm based on 5×5 neighborhood pixels correlation, using the correlation between the repaired area and the surrounding 24 adjacent pixels, and determining the filling order by defining the priority of the repaired pixels. Each time a pixel is repaired and the area to be repaired is updated in time as well. This operation is repeated until the number of the pixel...