计算机应用 ›› 2013, Vol. 33 ›› Issue (10): 2891-2894.

• 多媒体技术 • 上一篇    下一篇

基于自适应模板的图像修复算法

翟东海1,2,肖杰3,鱼江3,李同亮3   

  1. 1.
    2. 西南交通大学 信息科学与技术学院, 成都 610066;
    3. 西南交通大学 信息科学与技术学院, 成都 610031;
  • 收稿日期:2013-03-13 修回日期:2013-05-17 出版日期:2013-10-01 发布日期:2013-11-01
  • 通讯作者: 翟东海
  • 作者简介:翟东海(1974-),男,山西芮城人,副教授,博士,主要研究方向:数字图像处理、海量数据挖掘;肖杰(1988-),女,四川成都人,硕士研究生,主要研究方向:数字图像处理;鱼江(1990-),男,甘肃陇南人,硕士研究生,主要研究方向:数字图像处理;李同亮(1986-),男,河北廊坊人,硕士研究生,主要研究方向:数字图像处理。
  • 基金资助:
    国家社会科学基金资助项目;国家级大学生创新创业训练计划项目

Image inpainting algorithm based on adaptive template

ZHAI Donghai1,2,XIAO Jie2,YU Jiang2,LI Tongliang2   

  1. 1.
    2. School of Information Science and Technology, Southwest Jiaotong University, Chengdu Sichuan 610031, China;
  • Received:2013-03-13 Revised:2013-05-17 Online:2013-11-01 Published:2013-10-01
  • Contact: ZHAI Donghai

摘要: 当前基于纹理的图像修复算法中模板块的尺寸是固定的,这样,当模板块尺寸很小时,虽然修复的精度会提高,但是算法的时间复杂度会大幅增加;相反,当模板块尺寸很大时,虽然可以降低算法的时间复杂度,但会使算法的误修复率提升。针对以上问题,提出了基于自适应模板的图像修复算法,该算法能够根据当前模板块与尺寸扩大后模板块之间的灰度均值及方差的变化情况来自适应地扩大模板尺寸,同时,根据模板块与样本块之间的匹配情况自适应地缩小模板块。最后,将所提提出的算法用于实例验证,其结果表明所提算法不但可以有效地提高图像修复的精度,而且提高了图像修复的效率

关键词: 图像修复, Criminisi算法, 自适应模板, 灰度平均值, 灰度方差

Abstract: Currently, template size of texture-based image inpainting algorithm is fixed. Therefore, when the template size is small, the inpainting accuracy improves, but time complexity increases substantially; on the contrary, when the size is large, the time complexity declines, but inpainting error rate increases significantly. Adaptive template size algorithm proposed in this paper can enlarge template size according to the change of expect and variance of grayscale value between current template and its expanded one. Meanwhile, this approach can reduce template size according to the match degree between template and exemplar. After adaptively determining the template size, texture-based image inpainting algorithm was improved and used in experiments. The experimental results show this approach can highly improve the inpainting accuracy with high efficiency.

Key words: image inpainting, Criminisi algorithm, adaptive template, expect of grayscale value, variance of grayscale value

中图分类号: