作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程

• 图形图像处理 • 上一篇    下一篇

基于灰度熵合成样本块的图像修复算法

赵政康,刘宁钟,李伟   

  1. (南京航空航天大学 计算机科学与技术学院,南京 211106)
  • 收稿日期:2015-08-31 出版日期:2016-11-15 发布日期:2016-11-15
  • 作者简介:赵政康(1990—),男,硕士研究生,主研方向为数字图像处理;刘宁钟,教授、博士生导师;李伟,硕士研究生。
  • 基金资助:
    国家自然科学项目(61375021);江苏省自然科学基金“基于正则化方法的二维条码图像盲目复原技术研究”(BK20131365);江苏省科技支撑计划项目(BE2013879)。

Image Inpainting Algorithm Based on Synthetic Sample Block by Gray Entropy

ZHAO Zhengkang,LIU Ningzhong,LI Wei   

  1. (College of Computer Science and Technology,Nanjing University of Aeronautics and Astronautics,Nanjing 211106,China)
  • Received:2015-08-31 Online:2016-11-15 Published:2016-11-15

摘要: 图像修复时需要利用已知信息修补图像中的缺失部分,同时要求取得较快的修复速度。为此,提出基于平均灰度熵选取样本并通过加权合成最终匹配块的图像修复算法。将待修复图像进行网格划分,以网格为单位区间计算每个网格内图像的平均局部灰度熵值。使用自适应阈值分割算法将所有网格区域分为2个互斥集合。根据待修复区域所在网格平均灰度熵确定样本块的选取范围,使用最小平方差和准则选择若干样本块,并通过衰减函数得到各个样本块的权值,最终合成样本块。实验结果表明,该算法在取得理想修复效果的同时能够确保得到较快的修复速度。

关键词: 图像修复, 平均灰度熵, 掩码图, 平方差和距离, 合成样本

Abstract: The performance of image inpainting is dependent on the utilization of known information for inpainting the missing parts of the images,and fast speed of inpainting is required.Aiming at these two key issues,an inpainting algorithm is proposed which selects samples according to the average gray entropy and obtains the final matching block through weighted synthesis.The algorithm divides the image to be repaired into grids and calculates the average local entropy in each grid.The Otsu threshold segmentation algorithm is used to classify all grid areas into two mutually exclusive sets.The proposed algorithm determines the range of the sample block according to the average gray entropy of the grid in the area to be repaired,picks up sample blocks according to the Sum of Squared Differences(SSD) criterion,uses attenuation function to determine the weight of each sample block,and ultimately synthesize the final sample block.Experimental results show that the proposed algorithm can achieve good inpainting effect and greatly improve the speed of inpainting.

Key words: image inpainting, average gray entropy, mask graph, Sum of Squared Differences(SSD) distance, synthetic sample

中图分类号: