激光与光电子学进展, 2019, 56 (16): 161011, 网络出版: 2019-08-05
基于腐蚀处理和多参数因子的CDD修复算法 下载: 1093次
CDD Inpainting Algorithm Based on Corrosion Treatment and Multi-Parameter Factors
图像处理 曲率驱动扩散修复算法 腐蚀运算 指数因子 自适应正提升参数 边界处理条件 image processing curvature driven diffusion inpainting algorithm corrosion operation exponential factor self-adaptive positive lifting parameter boundary treatment condition
摘要
针对曲率驱动扩散(CDD)修复算法迭代次数多、花费时间长及无法修复边界破损图像等问题,提出了一种基于腐蚀处理和多参数因子的CDD修复算法。对待修复图像的掩模进行腐蚀处理,从而避免因掩模过大造成的时间消耗。在曲率计算中引入自然对数指数因子,并在梯度模值计算中引入线性指数因子。通过调节不同指数因子中的参数值,避免了不合理的梯度模值、曲率值对扩散速度的影响。在曲率和梯度模值的计算中引入随迭代次数变化的自适应正提升参数,使受损区域能够被较好地修复。最后,根据边界破损的图像边界所处的位置加入相应的边界处理条件,解决了边界破损点无法得到修复的问题。仿真实验表明,改进后的CDD修复算法不但提高了图像修复速度,而且能够很好地修复边界有破损的图像。
Abstract
The curvature driven diffusion (CDD) inpainting algorithm requires a significant number of iterations and long time for repairing images. In addition, this algorithm cannot repair the damaged points in the image boundary. Herein, an algorithm based on corrosion treatment and multi-parameter factors is proposed to address the limitations of the CDD inpainting algorithm. The main steps of the algorithm can be given as follows. First, the image mask to be repaired is corroded to eliminate the wastage of time because of an oversized mask. Second, a natural logarithmic exponential factor and a linear exponential factor are introduced in the curvature and gradient modulus calculations, respectively. Further, the effect of unreasonable gradient modulus and curvature values on the diffusion rate can be avoided by adjusting the parameters of different exponential factors. In addition, a self-adaptive positive lifting parameter that varies with the number of iterations is introduced to calculate the curvature and gradient modulus, improving the repair of the damaged area. Finally, the corresponding boundary treatment conditions are adopted according to the boundary locations of the images with broken boundaries, avoiding the problem that a broken boundary cannot be repaired. The simulation results demonstrate that the improved CDD inpainting algorithm improves the repairing speed and that images with broken boundaries can also be repaired.
杜闪闪, 韩超. 基于腐蚀处理和多参数因子的CDD修复算法[J]. 激光与光电子学进展, 2019, 56(16): 161011. Shanshan Du, Chao Han. CDD Inpainting Algorithm Based on Corrosion Treatment and Multi-Parameter Factors[J]. Laser & Optoelectronics Progress, 2019, 56(16): 161011.