Abstract
Image inpainting is a fundamental task in computer vision aimed at reconstructing missing or damaged regions of an image. Traditional sparse representation methods typically focus on either local patch-level sparsity or nonlocal group-level similarity. However, patch-based methods often introduce visual artifacts, while group-based methods tend to over-smooth fine textures. This paper proposes a Joint Patch-Group based Sparse Representation (JPG-SR) framework that integrates both local and nonlocal priors into a unified optimization model. By leveraging the Alternating Direction Method of Multipliers (ADMM), the proposed method achieves state-of-the-art performance, effectively balancing detail preservation with structural consistency.
Introduction
Image inpainting is an "ill-posed" inverse problem where the goal is to estimate missing pixel values from available data. Sparse Representation (SR) has emerged as a powerful tool for this task, operating on the principle that small image patches can be represented as a linear combination of a few atoms from a dictionary.
Existing SR techniques generally fall into two categories:
- Patch-based Sparse Representation (PSR): These models focus on individual patches to capture local details. While effective at preserving edges, they often produce noisy artifacts because they fail to account for the relationships between similar patches across the image.
- Group-based Sparse Representation (GSR): These models group similar patches together to exploit nonlocal self-similarity. While this provides better structural stability, it frequently results in over-smoothing, where high-frequency textures are lost.
JPG-SR addresses these limitations by combining the sharp edge reconstruction of PSR with the structural consistency of GSR.
The JPG-SR Framework
The core innovation of JPG-SR is a joint objective function that simultaneously penalizes patch-level and group-level sparsity. This dual-regularization approach ensures that the reconstruction process benefits from both local and global image priors.
As shown in the framework above, the process involves two parallel paths:
- Patch Path: Uses the KSVD algorithm to learn a dictionary directly from the image patches. Sparse coefficients are then updated using Orthogonal Matching Pursuit (OMP).
- Group Path: Groups similar patches and uses Principal Component Analysis (PCA) to learn adaptive dictionaries for each group. Reconstruction is performed via hard-thresholding.
These two paths are integrated through the Alternating Direction Method of Multipliers (ADMM). This iterative framework breaks the complex joint optimization problem into tractable sub-problems, allowing the model to refine the image by alternating between patch-level and group-level updates.
Experimental Results
The authors evaluated JPG-SR on 14 standard test images (e.g., Zebra, Leaves, Barbara) under various degradation levels, including random pixel loss ranging from 50% to 80% and text masking.
Quantitative Performance
JPG-SR consistently outperformed existing state-of-the-art methods such as SALSA, BPFA, and JSM. In terms of Peak Signal-to-Noise Ratio (PSNR), the model achieved significant gains, outperforming competitors by margins of 0.95dB to 4.73dB on average.
Qualitative Quality
Visually, JPG-SR excels at reconstructing complex textures. In scenarios with high pixel loss (e.g., 80% missing), the model successfully recovers sharp, high-contrast edges without the "ringing" artifacts common in patch-based methods or the blurriness seen in group-based approaches. The use of adaptive dictionaries (KSVD and PCA) allows the model to tailor its reconstruction to the specific characteristics of the input image.
Conclusion
JPG-SR represents a significant advancement in image inpainting by successfully bridging the gap between local and nonlocal sparse representations. By coupling PSR and GSR within an ADMM framework, the model provides a robust solution that preserves fine details while maintaining global structural integrity. Future work may involve extending this joint framework to other image restoration tasks, such as deblurring and super-resolution, and optimizing the computational efficiency of the iterative dictionary learning process.
Summary updated