cs.CVMar 30, 2026

RAWIC: Bit-Depth Adaptive Lossless Raw Image Compression

Authors: Chunhang Zheng, Tongda Xu, Mingli Xie, Yan Wang, Dou Li

Organizations: School of Electronics, Peking University, Beijing, 100871, China · Institute for AI Industry Research (AIR), Tsinghua University, Beijing, 100084, China · the University of Chinese Academy of Sciences, Beijing, 100190, China

Abstract

Raw images preserve linear sensor measurements and high bit-depth information crucial for advanced vision tasks and photography applications, yet their storage remains challenging due to large file sizes, varying bit depths, and sensor-dependent characteristics. Existing learned lossless compression methods mainly target 8-bit sRGB images, while raw reconstruction approaches are inherently lossy and rely on camera-specific assumptions. To address these challenges, we introduce RAWIC, a bit-depth-adaptive learned lossless compression framework for Bayer-pattern raw images. We first convert single-channel Bayer data into a four-channel RGGB format and partition it into patches. For each patch, we compute its bit depth and use it as auxiliary input to guide compression. A bit-depth-adaptive entropy model is then designed to estimate patch distributions conditioned on their bit depths. This architecture enables a single model to handle raw images from diverse cameras and bit depths. Experiments show that RAWIC consistently surpasses traditional lossless codecs, achieving an average 7.7% bitrate reduction over JPEG-XL. Our code is available at https://github.com/chunbaobao/RAWIC.

Figures & tables

Explore similar work

CardsList
  1. SpiralDiff: Spiral Diffusion with LoRA for RGB-to-RAW Conversion Across Cameras

    Mar 16, 2026Huanjing Yue, Shangbin Xie, Cong Cao +4Image-to-Image TranslationImage Restoration

  2. MambaRaw: Selective State Space Modeling for Efficient 4K Raw Image Reconstruction

    Jun 23, 2026Peize Li, Fanhu Zeng, Tongda Xu +5Learned Image CompressionImage Reconstruction

  3. R3\mathbf{R}^3: Reconstruction, Raw, and Rain: Deraining Directly in the Bayer Domain

    Sep 28, 2025Nate Rothschild, Moshe Kimhi, Avi Mendelson +1Image DerainingImage Restoration