{"title":"Unconditionally stable algorithm with unique solvability for image inpainting using a penalized Allen–Cahn equation","authors":"Sheng Su, Junxiang Yang","doi":"10.1016/j.cnsns.2024.108503","DOIUrl":null,"url":null,"abstract":"Image inpainting is a technique that utilizes information from surrounding areas to restore damaged or missing parts. To achieve binary image inpainting with mathematical tools and numerical techniques, an effective mathematical model and an efficient, stable numerical solver are essential. This work aims to propose a practical and unconditionally stable numerical algorithm for image inpainting. A penalized Allen–Cahn equation is derived from a free energy using a variational approach. The proposed mathematical model achieves inpainting by eliminating the damaged region with the constraint of surrounding image values. The operator splitting strategy is used to split the original model into two subproblems. The first one is the classical Allen–Cahn equation, and the second one is a penalization equation. For the Allen–Cahn equation, a linear and strong stability-preserving factorization scheme is adopted to calculate the intermediate solution. Then, the final solution is explicitly updated from a simple correction step. The governing equation is discretized in space using the finite difference method. We analytically prove that the proposed algorithm is unconditionally stable and uniquely solvable. In the numerical simulations, we first verify the efficiency and stability via several simple benchmarks. The capability of binary image inpainting is validated by comparing the present and previous results. By slightly adjusting the governing equation, the proposed method can work well in achieving image inpainting of various gray-valued images. Finally, the proposed method is extended into three-dimensional space to show its effectiveness in restoring damaged 3D objects. The main scientific contributions are: (i) an efficient and practical numerical method is developed for image inpainting; (ii) the unconditional stability and unique solvability have been analytically estimated; (iii) extensive numerical experiments are implemented to validate the stability and capability of the proposed method; (iv) the present method can be straightforwardly extended to achieve 3D restoration. To facilitate interested readers in developing related research, we provide the basic computational codes in Appendices A-D.","PeriodicalId":50658,"journal":{"name":"Communications in Nonlinear Science and Numerical Simulation","volume":"1 1","pages":""},"PeriodicalIF":3.4000,"publicationDate":"2024-12-05","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Communications in Nonlinear Science and Numerical Simulation","FirstCategoryId":"100","ListUrlMain":"https://doi.org/10.1016/j.cnsns.2024.108503","RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"MATHEMATICS, APPLIED","Score":null,"Total":0}
引用次数: 0
Abstract
Image inpainting is a technique that utilizes information from surrounding areas to restore damaged or missing parts. To achieve binary image inpainting with mathematical tools and numerical techniques, an effective mathematical model and an efficient, stable numerical solver are essential. This work aims to propose a practical and unconditionally stable numerical algorithm for image inpainting. A penalized Allen–Cahn equation is derived from a free energy using a variational approach. The proposed mathematical model achieves inpainting by eliminating the damaged region with the constraint of surrounding image values. The operator splitting strategy is used to split the original model into two subproblems. The first one is the classical Allen–Cahn equation, and the second one is a penalization equation. For the Allen–Cahn equation, a linear and strong stability-preserving factorization scheme is adopted to calculate the intermediate solution. Then, the final solution is explicitly updated from a simple correction step. The governing equation is discretized in space using the finite difference method. We analytically prove that the proposed algorithm is unconditionally stable and uniquely solvable. In the numerical simulations, we first verify the efficiency and stability via several simple benchmarks. The capability of binary image inpainting is validated by comparing the present and previous results. By slightly adjusting the governing equation, the proposed method can work well in achieving image inpainting of various gray-valued images. Finally, the proposed method is extended into three-dimensional space to show its effectiveness in restoring damaged 3D objects. The main scientific contributions are: (i) an efficient and practical numerical method is developed for image inpainting; (ii) the unconditional stability and unique solvability have been analytically estimated; (iii) extensive numerical experiments are implemented to validate the stability and capability of the proposed method; (iv) the present method can be straightforwardly extended to achieve 3D restoration. To facilitate interested readers in developing related research, we provide the basic computational codes in Appendices A-D.
期刊介绍:
The journal publishes original research findings on experimental observation, mathematical modeling, theoretical analysis and numerical simulation, for more accurate description, better prediction or novel application, of nonlinear phenomena in science and engineering. It offers a venue for researchers to make rapid exchange of ideas and techniques in nonlinear science and complexity.
The submission of manuscripts with cross-disciplinary approaches in nonlinear science and complexity is particularly encouraged.
Topics of interest:
Nonlinear differential or delay equations, Lie group analysis and asymptotic methods, Discontinuous systems, Fractals, Fractional calculus and dynamics, Nonlinear effects in quantum mechanics, Nonlinear stochastic processes, Experimental nonlinear science, Time-series and signal analysis, Computational methods and simulations in nonlinear science and engineering, Control of dynamical systems, Synchronization, Lyapunov analysis, High-dimensional chaos and turbulence, Chaos in Hamiltonian systems, Integrable systems and solitons, Collective behavior in many-body systems, Biological physics and networks, Nonlinear mechanical systems, Complex systems and complexity.
No length limitation for contributions is set, but only concisely written manuscripts are published. Brief papers are published on the basis of Rapid Communications. Discussions of previously published papers are welcome.