MedROI: Codec-Agnostic Region of Interest-Centric Compression for Medical Images
Organizations: Division of Computer Engineering, Hankuk University of Foreign Studies, Yongin, Republic of Korea · Department of Computer Science and Engineering, Hankuk University of Foreign Studies, Seoul, Republic of Korea
Abstract
Medical imaging archives are growing rapidly in both size and resolution, making efficient compression increasingly important for storage and data transfer. Most existing codecs compress full images/volumes(including non-diagnostic background) or apply differential ROI coding that still preserves background bits. We propose MedROI, a codec-agnostic, plug-and-play ROI-centric framework that discards background voxels prior to compression. MedROI extracts a tight tissue bounding box via lightweight intensity-based thresholding and stores a fixed 54byte meta data record to enable spatial restoration during decompression. The cropped ROI is then compressed using any existing 2D or 3D codec without architectural modifications or retraining. We evaluate MedROI on 200 T1-weighted brain MRI volumes from ADNI using 6 codec configurations spanning conventional codecs (JPEG2000 2D/3D, HEIF) and neural compressors (LIC_TCM, TCM+AuxT, BCM-Net, SirenMRI). MedROI yields statistically significant improvements in compression ratio and encoding/decoding time for most configurations (two-sided t-test with multiple-comparison correction), while maintaining comparable reconstruction quality when measured within the ROI; HEIF is the primary exception in compression-ratio gains. For example, on JPEG20002D (lv3), MedROI improves CR from 20.35 to 27.37 while reducing average compression time from 1.701s to 1.380s. Code is available at https://github.com/labhai/MedROI.
Figures & tables
| Component | Fields | Type | Size (bytes) |
| Bounding Box | int16 | 12 | |
| Original Shape | int16 | 6 | |
| Affine Matrix | rotation–scaling submatrix | float32 | 36 |
| Total | – | – | 54 |
| Model | Full/ROI | CR | BPP | PSNR | SSIM | Comp.(s) | Decomp.(s) |
| JPEG2000 lv3 | Full | 20.35 | 0.395 | 33.03 | 0.852 | 1.701 | 0.350 |
| JPEG2000 lv3 | ROI | 27.37 | 0.397 | 30.73 | 0.859 | 1.380 | 0.265 |
| JPEG2000 lv5 | Full | 5.165 | 1.567 | 45.14 | 0.969 | 1.722 | 0.734 |
| JPEG2000 lv5 | ROI | 6.875 | 1.582 | 41.65 | 0.964 | 1.398 | 0.565 |
| HEIF lv1 | Full | 39.38 | 0.241 | 29.38 | 0.842 | 0.059 | 1.5e-3 |
| HEIF lv1 | ROI | 38.54 | 0.219 | 29.25 | 0.857 | 0.054 | 1.4e-3 |
| Model | Full/ROI | CR | BPP | PSNR | SSIM | Comp.(s) | Decomp.(s) |
| JPEG2000 lv1 | Full | 2.095 | 4.058 | 53.20 | 0.993 | 9.106 | 1.013 |
| JPEG2000 lv1 | ROI | 2.316 | 3.621 | 52.38 | 0.994 | 6.729 | 0.233 |
| JPEG2000 lv3 | Full | 4.758 | 1.755 | 47.06 | 0.981 | 5.898 | 1.023 |
| JPEG2000 lv3 | ROI | 4.979 | 1.676 | 46.09 | 0.983 | 5.913 | 0.213 |
| JPEG2000 lv5 | Full | 13.63 | 0.615 | 38.72 | 0.953 | 2.742 | 1.009 |
| JPEG2000 lv5 | ROI | 14.23 | 0.591 | 37.49 | 0.949 | 2.446 | 0.204 |