规范化卷积算法可用来处理离散、孤立丢失数据的修复,但针对大量数据连续缺失的图像修复效果不佳,为此设计了像素的邻域滤波器,提出一种改进的基于规范化卷积的图像修复算法.首先设定由待修复区域边界向区域内部逐步扩散的修复顺序;然后为每个待修复像素关联一个置信度,并根据修复的先后顺序从高到低进行赋值,即最后修复的像素置信度取值最小;最后根据像素值和置信度进行插值,修复缺失的图像信息.实验结果表明,该算法是一种实用的图像修复算法,可实现图像连续块状区域信息丢失的修复,并可得到良好的修复效果.
Although normalized convolution (NC) algorithm can be used to repair discrete isolated data loss, the image inpainting performance for the continuous block data loss using NC isn't good. A filter of neighborhood of pixel is defined, and a new image inpainting algorithm based on NC is proposed. The repair order for the loss block data is from the block borders gradually spread to the center. Then, each pixel of the image block is assigned to a confidence, and each pixel is set a confidence value from high to low according to the pixel's repairing order. That is the last repaired pixel is set the lowest confidence value. Finally, the pixels to be repaired are interpolated according to the around pixels' value and confidence. Experimental results show that the proposed algorithm is a practical image inpainting algorithm, and good performance can be obtained for the continuous data loss image innainting.