Abstract
As a robust digital image inpainting technology, the Criminisi algorithm (CA) has been widely used. However, its high running time that it needs to search in the entire undamaged area of the image to determine an optimal matching block presents a challenge. To address this issue, this study proposes an improved version of CA, named PSO-CA, which incorporates the particle swarm optimization algorithm (PSO) with CA. The running time of the CA is significantly reduced benefiting from the parallel optimization capability of the PSO. In addition, the search space is restricted to the neighbouring region of the block that needs to be filled. The availability of the proposed PSO-CA algorithm is assessed in the laboratory colour model by the running time and three matching indices, such as the peak signal-to-noise ratio (PSNR). The experimental results indicate that PSO-CA significantly enhances the inpainting speed and produces the same or better results compared with the initial CA and the Criminisi with search space algorithm (CWSS).
Similar content being viewed by others
Data availability
The images used in this paper consist of two parts. Images used in Experiment 1 were taken pictures on our phone, and others used in Experiment 2 are openly available from https://github.com/cantarinigiorgio/Image-Inpainting/tree/master/images.
References
Bertalmio M, et al (2000) Image inpainting. In: Proceedings of the 27th annual Conference on Computer Graphics and Interactive Techniques. ACM Press/Addison-Wesley Publishing Co. p. 417–424. https://doi.org/10.1145/344779.344972.
Elharrouss O et al (2020) Image inpainting: a review. Neural Process Lett 51(2):2007–2028. https://doi.org/10.1007/s11063-019-10163-0
Zhang HY, Peng QC (2007) A survey on digital image inpainting. J Image Graph 12(1):1–10
Shen J, Chan TF (2002) Mathematical models for local nontexture inpaintings. SIAM J Appl Math 62(3):1019–1043. https://doi.org/10.1137/S0036139900368844
Chan TF, Shen J (2001) Nontexture inpainting by curvature-driven diffusions. J Vis Commun Image Represent 12(4):436–449. https://doi.org/10.1006/jvci.2001.0487
Efros AA, Leung TK (1999) Texture synthesis by non-parametric sampling. In: Proceedings of the Seventh IEEE International Conference on Computer Vision. https://doi.org/10.1109/ICCV.1999.790383
Criminisi A, Perez P, Toyama K (2003) Object removal by exemplar-based inpainting. In: 2003 IEEE Computer Society Conference on Computer Vision and Pattern Recognition. Proceedings. https://doi.org/10.1109/CVPR.2003.1211538.
Criminisi A, Perez P, Toyama K (2004) Region filling and object removal by exemplar-based image inpainting. In IEEE Transactions on Image Processing, p 1200–1212. https://doi.org/10.1109/TIP.2004.833105.
Xia ZHU, Hong LI, Zhang W (2008) Image inpainting algorithm based on color region segmentation. Comput Eng 14:1200–1212
Liu Y, et al. (2010) Image inpainting algorithm based on regional segmentation and adaptive window exemplar. In: 2010 2nd International Conference on Advanced Computer Control. https://doi.org/10.1109/ICACC.2010.5486786.
Yao F (2019) Damaged region filling by improved criminisi image inpainting algorithm for thangka. Clust Comput 22(6):13683–13691. https://doi.org/10.1007/s10586-018-2068-4
Mo J, Zhou Y (2019) The research of image inpainting algorithm using self-adaptive group structure and sparse representation. Clust Comput 22(3):7593–7601. https://doi.org/10.1007/s10586-018-2323-8
Timmis J, Knight T, de Castro LN, Hart E (2004) An overview of artificial immune systems. In: Paton R, Bolouri H, Holcombe M, Parish JH, Tateson R (eds) Computation in cells and tissues natural computing Series. Springer, Berlin Heidelberg. https://doi.org/10.1007/978-3-662-06369-9_4
Holland J (1975) Adaptation in natural and artificial systems. The University of Michigan Press, Ann Arbor
Colorni A, Dorigo M, Maniezzo V (1991) Distributed optimization by ant colonies. In: Vaerla F, Bourgine P (eds) Proceedings of the European Conference on Artificial Life. Elsevier Publishing, Paris, pp 134–142
Kennedy J, Eberhart R (1995) Particle swarm optimization. In: Proceedings of the IEEE International Conference on Neural Networks, vol 4. pp 1942–1948. https://doi.org/10.1109/ICNN.1995.488968
Kelner V, Capitanescu F, Léonard O, Wehenkel L (2008) A hybrid optimization technique coupling an evolutionary and a local search algorithm. J Comput Appl Math 215(2):448–456. https://doi.org/10.1016/j.cam.2006.03.048
Martínez-Soto R, Castillo O, Aguilar LT, Rodriguez A (2015) A hybrid optimization method with PSO and GA to automatically design Type-1 and Type-2 fuzzy logic controllers. Int J Mach Learn Cybern 6:175–196. https://doi.org/10.1007/s13042-013-0170-8
Eberhart RC, Shi Y Comparison between genetic algorithms and particle swarm optimization. In Evolutionary Programming VII, Springer, Berlin, Heidelberg
Ding Y et al (2019) The accuracy and efficiency of GA and PSO optimization schemes on estimating reaction kinetic parameters of biomass pyrolysis. Energy 176:582–588. https://doi.org/10.1016/j.energy.2019.04.030
Dai L et al (2016) Improved digital image restoration algorithm based on criminisi. J Digit Inform Manag 14(5):302–310. https://doi.org/10.6025/jdim/2016/14/5/302-310
Ouattara N et al (2019) A new image inpainting approach based on Criminisi algorithm. Int J Adv Comput Sci Appl 10(6):423–433. https://doi.org/10.14569/IJACSA.2019.0100655
Hesabi S, Jamzad M, Mahdavi-Amiri N (2010) Structure and texture image inpainting. In: 2010 International Conference on Signal and Image Processing. IEEE, pp 119–124. https://doi.org/10.1109/ICSIP.2010.5697453.
Zhiying L, Qingxia Z, Xin L (2019) Ground-based cloud image inpainting method based on improved criminisi algorithm. J Data Acquisiti Process 34(01):12–21. https://doi.org/10.16337/j.1004-9037.2019.01.002
Jia Y-H et al (2021) A novel crow swarm optimization algorithm (CSO) coupling particle swarm optimization (PSO) and crow search algorithm (CSA). Comput Intell Neurosci 2021:1–14. https://doi.org/10.1155/2021/6686826
Schwarz MW, Cowan WB, Beatty JC (1987) An experimental comparison of RGB, YIQ, LAB, HSV, and opponent colour models. ACM Trans Graph (tog) 6(2):123–158. https://doi.org/10.1145/31336.31338
Eryiğit M (2023) A novel hybrid optimization model to determine optimum water resources for water supply of residential areas. J Water Process Eng 55:104087. https://doi.org/10.1016/j.jwpe.2023.104087
Acknowledgements
This research was supported by the National Natural Science Foundation of China (U2340210) and the Project of Sanya Yazhou Bay Science and Technology City (SCKJ-JYRC-2022-100).
Author information
Authors and Affiliations
Contributions
F-FL and H-MZ performed study concept and design, as well as development of methodology and writing, review and revision of the paper; Y-HJ and JQ provided acquisition, analysis and interpretation of data, and statistical analysis; F-FL and JQ provided financial support. All authors read and approved the final paper.
Corresponding author
Ethics declarations
Conflict of interest
The authors declare that they have no conflicts of interest to this work. The people involved in the experiment have been informed and formally accepted.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Li, FF., Zuo, HM., Jia, YH. et al. A developed Criminisi algorithm based on particle swarm optimization (PSO-CA) for image inpainting. J Supercomput (2024). https://doi.org/10.1007/s11227-024-06099-5
Accepted:
Published:
DOI: https://doi.org/10.1007/s11227-024-06099-5