Bitstream-Corrupted JPEG Images are Restorable: Two-stage Compensation and Alignment Framework for Image Restoration
Abstract
In this paper, we study a real-world JPEG image restoration problem with bit errors on the encrypted bitstream. The bit errors bring unpredictable color casts and block shifts on decoded image contents, which cannot be resolved by existing image restoration methods mainly relying on pre-defined degradation models in the pixel domain. To address these challenges, we propose a robust JPEG decoder, followed by a two-stage compensation and alignment framework to restore bitstream-corrupted JPEG images. Specifically, the robust JPEG decoder adopts an error-resilient mechanism to decode the corrupted JPEG bitstream. The two-stage framework is composed of the selfcompensation and alignment (SCA) stage and the guidedcompensation and alignment (GCA) stage. The SCA adaptively performs block-wise image color compensation and alignment based on the estimated color and block offsets via image content similarity. The GCA leverages the extracted low-resolution thumbnail from the JPEG header to guide full-resolution pixel-wise image restoration in a coarse-to-fine manner. It is achieved by a coarse-guided pix2pix network and a refine-guided bi-directional Laplacian pyramid fusion network. We conduct experiments on three benchmarks with varying degrees of bit error rates. Experimental results and ablation studies demonstrate the superiority of our proposed method. The code will be released at https://github.com/wenyang001/Two-ACIR . (b) 1. Standard decoder output 4. Our guided compensation and alignment output (𝒙 ") (GCA) 2. Our robust decoder output (𝒚) 3. Our self-compensation and alignment output (𝒛) (SCA) Color cast for segments Block shifting Abort JPEG decoding Bitstream Corruption GT Image 𝒙 𝑬𝒏 JPEG Bitstream Corrupted Decrypted Bitstream Decoded Image 𝒚 Encrypted Bitstream 𝑬 𝑲 Corrupted Encrypted Bitstream 𝑫 𝑲 𝑫𝒆 Stage 2 GCA Stage 1 SCA 2. Two-stage Compensation and Alignment Framework (a) Restored Image 𝒙 " Conpensated Image 𝒛 1. Robust decoder
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
1 top-tier paper has cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
Cited by top-tier papers1
Builds on4
- Rethinking Coarse-to-Fine Approach in Single Image DeblurringSung-Jin Cho, Seo-Won Ji, Jun-Pyo Hong, Seung-Won Jung et al.ICCV 2021 · 799 citations
- Image Inpainting With Learnable Bidirectional Attention MapsChaohao Xie, Shaohui Liu, Chao Li, Ming-Ming Cheng et al.ICCV 2019 · 255 citations
- StarGAN v2: Diverse Image Synthesis for Multiple DomainsYunjey Choi, Youngjung Uh, Jaejun Yoo, Jung-Woo HaCVPR 2020
- Deep Unfolding Network for Image Super-ResolutionKai Zhang, Luc Van Gool, Radu TimofteCVPR 2020
Related papers
- ROAR: Reducing Inversion Error in Generative Image WatermarkingHanyi Wang, Han Fang, Shi-Lin Wang, Ee-Chien ChangICCV 2025 · 1 citation
- Towards Flexible Blind JPEG Artifacts RemovalJiaxi Jiang, Kai Zhang, Radu TimofteICCV 2021 · 145 citations
- Self-Asymmetric Invertible Network for Compression-Aware Image RescalingJinhai Yang, Mengxi Guo, Shijie Zhao, Junlin Li et al.AAAI 2023 · 11 citations
- All-In-One Image Restoration for Unknown CorruptionBoyun Li, Xiao Liu, Peng Hu, Zhongqin Wu et al.CVPR 2022 · 338 citations
- PatchWiper: Leveraging Dynamic Patch-Wise Parameters for Real-World Visible Watermark RemovalZihao Mo, Junye Chen, Chaowei Fang, Guanbin LiACM MM 2025 · 1 citation
