Skip to main content
Log in

A developed Criminisi algorithm based on particle swarm optimization (PSO-CA) for image inpainting

  • Published:
The Journal of Supercomputing Aims and scope Submit manuscript

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).

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14

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

  1. 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.

  2. 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

    Article  Google Scholar 

  3. Zhang HY, Peng QC (2007) A survey on digital image inpainting. J Image Graph 12(1):1–10

    Google Scholar 

  4. 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

    Article  MathSciNet  Google Scholar 

  5. 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

    Article  Google Scholar 

  6. 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

  7. 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.

  8. 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.

  9. Xia ZHU, Hong LI, Zhang W (2008) Image inpainting algorithm based on color region segmentation. Comput Eng 14:1200–1212

    Google Scholar 

  10. 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.

  11. 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

    Article  Google Scholar 

  12. 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

    Article  Google Scholar 

  13. 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

    Chapter  Google Scholar 

  14. Holland J (1975) Adaptation in natural and artificial systems. The University of Michigan Press, Ann Arbor

    Google Scholar 

  15. 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

    Google Scholar 

  16. 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

  17. 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

    Article  MathSciNet  Google Scholar 

  18. 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

    Article  Google Scholar 

  19. Eberhart RC, Shi Y Comparison between genetic algorithms and particle swarm optimization. In Evolutionary Programming VII, Springer, Berlin, Heidelberg

  20. 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

    Article  Google Scholar 

  21. 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

    Article  Google Scholar 

  22. 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

    Article  Google Scholar 

  23. 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.

  24. 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

    Article  Google Scholar 

  25. 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

    Article  Google Scholar 

  26. 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

    Article  Google Scholar 

  27. 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

    Article  Google Scholar 

Download references

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

Authors

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

Correspondence to Jun Qiu.

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.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

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

Download citation

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s11227-024-06099-5

Keywords

Navigation