Abstract
Inpainting-based image compression offers a compelling alternative to traditional transform-based codecs like JPEG, particularly at high compression ratios. However, the computational cost of solving the underlying partial differential equations (PDEs) for high-resolution images has historically prevented real-time applications. This paper presents a novel hybrid algorithmic framework that enables 4K image reconstruction at over 60 frames per second (FPS). By integrating Optimized Restricted Additive Schwarz (ORAS) domain decomposition with a Full Multigrid (FMG) scheme, the proposed method achieves linear scaling and high efficiency on modern GPUs.
Introduction
Traditional image compression relies on storing transform coefficients. In contrast, inpainting-based compression stores only a sparse, optimized subset of the original pixels (a "mask") and reconstructs the full image by solving a diffusion process—specifically, homogeneous diffusion. While this approach preserves visual quality effectively at low bitrates, the 8 million pixels in a 4K image present a massive computational hurdle. Standard solvers often take seconds to converge, whereas real-time video requires millisecond-level performance.
Methodology: A Hybrid Parallel Approach
The authors address the scaling challenge by combining two powerful numerical techniques designed for parallel execution.
Optimized Restricted Additive Schwarz (ORAS)
To leverage the massive parallelism of GPUs, the image domain is divided into small, overlapping blocks (e.g., 32x32 pixels). Each block is solved independently. The use of "Robin boundary conditions"—which incorporate both pixel values and gradients—ensures that the boundaries between blocks remain smooth, avoiding the artifacts common in simpler decomposition methods.
Full Multigrid (FMG) and Mask Downsampling
While domain decomposition excels at resolving local, high-frequency details, it is slow to propagate global, low-frequency information. To solve this, the authors employ an 8-level multigrid hierarchy. A coarse version of the image is solved first, providing a starting point for finer resolutions.
A critical innovation in this hierarchy is the Modified Mask Downsampling. Standard averaging in sparse data often leads to "color bleeding." The authors' weighted downsampling method allows mask pixels to dominate their neighborhood at coarser levels, preserving sharp edges and preventing leakage between distinct image features.
Performance and Results
The algorithm was tested on a dataset of twelve 4K photographs with mask densities ranging from 0.5% to 10%.
- Real-Time Throughput: The system achieves an average reconstruction time of 14.3 ms for 4K color images, equivalent to approximately 70 FPS.
- Efficiency: This approach is over four times faster than optimized standard solvers like Multigrid Conjugate Gradient (MGCG).
- Linear Scaling: The computational cost grows linearly with the number of pixels, suggesting that the method can scale to 8K resolutions and beyond without exponential performance degradation.
Conclusion
By fusing domain decomposition with multigrid methods, this work removes the primary barrier to using diffusion-based codecs for high-resolution video. While this first part focuses on homogeneous diffusion and decoding, future work aims to extend the framework to more complex anisotropic diffusion operators and integrate the computationally intensive encoding process.
Summary updated