RAWIC: Bit-Depth Adaptive Lossless Raw Image Compression

Chunhang Zheng, Tongda Xu, Mingli Xie, Yan Wang, Dou Li
3/30/2026
cs.CV

Official code: chunbaobao/RAWIC (5 stars, Python, last commit 2026-04-02).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

chunbaobao/RAWICOfficial100%

PyTorch Implementation of "RAWIC: Bit-Depth Adaptive Lossless Raw Image Compression"

51Python, CudaMar 29, 20268 months ago

Similar Papers

Cite this paper

@article{zheng2026rawic,
  title  = {RAWIC: Bit-Depth Adaptive Lossless Raw Image Compression},
  author = {Chunhang Zheng and Tongda Xu and Mingli Xie and Yan Wang and Dou Li},
  year   = {2026},
  eprint = {2603.28105},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.28105v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2603.28105.svg)](https://codeofpaper.com/paper/2603.28105)

Discussion