Abstract
This paper concerns with nonuniform sampling and interpolation methods combined with variational models for the solution of a generalized image inpainting problem and the restoration of digital signals. In particular, we discuss the problem of reconstructing a digital signal/image from very few, sparse, and complete information and a substantial incomplete information, which will be assumed as the result of a nonlinear distortion. As a typical and inspiring example, we illustrate the concrete problem of the color restoration of a destroyed art fresco from its few known fragments and some gray picture taken prior to the damage. Numerical implementations are included together with several examples and numerical results to illustrate the proposed method.
Introduction: The Challenge of Destroyed Art
Imagine a priceless 15th-century fresco shattered into thousands of tiny fragments by a bomb. You have the pieces, and you have a black-and-white photograph of the original wall taken before the disaster. How do you put it back together?
This is a generalized "image inpainting" problem. Standard inpainting usually involves filling in small holes or removing scratches by "guessing" based on surrounding pixels. However, in the case of the Mantegna frescoes in Padua, the "holes" represent nearly 80% of the surface area. Traditional methods fail because there isn't enough local information to propagate. The paper tackles the challenge of reconstructing a high-dimensional signal (color) from very sparse samples by leveraging a dense, lower-dimensional "nonlinear projection" (the grayscale photo).
Methodology: A Two-Stage Hybrid Approach
The proposed framework bridges the gap between local geometry and global optimization through a two-stage process:
1. Nonuniform Interpolation
Using the known color fragments as seeds, the algorithm performs a Voronoi decomposition of the image plane. It extends the color of a fragment to its surrounding "cell" but only keeps the color if it is "compatible" with the underlying grayscale value of the old photograph. This provides a rough, blocky initial guess that serves as the foundation for refinement.
2. Variational Models and PDEs
To smooth the blocks and propagate color naturally, an energy minimization strategy is employed. A functional is defined that balances three critical factors:
- Fidelity to fragments: Staying true to the original colored pieces.
- Fidelity to the grayscale map: Ensuring the reconstructed color, when converted to gray, matches the old photo.
- Regularization: Minimizing the gradient to ensure the image is not noisy.
The resulting Euler-Lagrange equations form a system of coupled second-order Hamilton-Jacobi equations. This allows color to flow along "isophotes" (lines of constant intensity) in the grayscale image, effectively using the old photo as a guide for where colors should change or stay the same.
Key Insights and Results
- The Grayscale Constraint: The grayscale image isn't just a reference; it’s a constraint. By treating the color-to-gray conversion as a nonlinear projection ($L$), the author turns an "impossible" reconstruction problem into a constrained optimization problem.
- Hybridization: Pure interpolation creates "blocky" artifacts, while pure PDE methods tend to blur edges. Combining them—using interpolation for the initial guess and PDEs for the "flow"—yields superior results.
- Qualitative Success: In the fresco examples, the algorithm successfully reconstructed facial features (like eyes and noses) that were completely missing in the color fragment set. The color "flowed" from nearby fragments but was shaped by the contours of the grayscale template.
Conclusion and Future Work
The method relies heavily on accurately estimating the nonlinear function $L$ (how the specific 1920s film translated RGB to gray). Future directions include exploring Time-Frequency (Gabor) analysis to handle images with high-frequency textures and a more rigorous theoretical analysis of the "viscosity solutions" for these specific coupled PDE systems.
Summary updated