NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Compression of compound images and video for enabling rich media in embedded systems

Amir SaidVCIP 2004

TL;DR

This paper introduces a novel compression method for "compound images and video" (mixtures of text, graphics, and natural images/video) specifically designed for resource-constrained embedded systems. By efficiently identifying and applying different compression strategies to distinct image regions, the method achieves significantly better compression ratios and faster processing than existing techniques, enabling richer media experiences on devices like smartphones and smart appliances.

What Problem Does This Paper Address?

Modern embedded systems are increasingly expected to deliver rich media experiences, including complex graphical user interfaces (GUIs), animations, and video. Traditionally, this has been achieved by increasing the processing power of the embedded device, leading to higher costs, complexity, and power consumption. An alternative is to offload processing to remote servers, but this requires efficient transmission of visual data. Compound images and video, which combine diverse content types like text, graphics, and natural images, pose a significant challenge for compression. Standard compression methods are often optimized for either natural images (e.g., JPEG) or lossless compression (e.g., for text), but struggle to efficiently handle the mix. This paper addresses the need for a compression technique that can effectively handle these mixed content types, enabling high-quality rich media on low-power, low-cost embedded devices without overwhelming network bandwidth.

Methods

The core of the proposed method is a block-based classification and coding strategy. The image is divided into small blocks (typically 8x8 pixels). For each block, the system performs a two-stage classification:

  1. Color-based Classification: This initial step quickly identifies blocks with a limited number of distinct colors (e.g., less than 9). These blocks are highly likely to contain text or graphics and are compressed using a lossless method. This ensures perfect quality for these critical elements.
  2. Edge-based Classification (for higher quality needs): For blocks that don't meet the color criteria (i.e., have more colors, suggesting natural image content or complex graphics), a secondary classification is performed. This step analyzes the histogram of absolute differences in pixel luminance (grayscale) to detect the presence of edges. Blocks with specific edge patterns indicative of text or graphics that might be susceptible to compression artifacts are flagged for higher-quality lossy compression using DCT (Discrete Cosine Transform) with carefully chosen quantization matrices. Other blocks are compressed with standard, lower-quality DCT.

The system also incorporates:

  • Interframe Coding for Video: For video, blocks that are identical to their counterparts in the previous frame are simply marked as "no change," significantly reducing bandwidth.
  • Block Grouping: To reduce the overhead of transmitting classification information, the system groups adjacent blocks with the same classification type and encodes this information efficiently, especially for large regions of uniform content.

Datasets

The paper evaluates its method on a typical compound image called "Toy Store," described as a "typical compound page at rendered at 600 dpi (4800×6300 = 30 Mpel), meant to test compound document compression and print quality." This image was not created by the authors. The paper does not mention specific datasets for training the classification algorithms, implying they are designed to work directly on the input data.

Key Insights and Ideas

  • Compound content is fundamentally different: The paper highlights that treating compound images/video as a single entity (like natural images) or applying separate lossless/lossy methods without intelligent segmentation leads to suboptimal results.
  • Color is a powerful, simple indicator: The observation that blocks with a limited color palette are highly indicative of text/graphics is a key insight. This allows for a fast, efficient initial classification that guarantees lossless quality for these crucial elements.
  • Edges reveal susceptibility to artifacts: Analyzing edge patterns helps identify areas where lossy compression might introduce visible artifacts, allowing for targeted higher-quality settings.
  • Trade-offs are manageable: The method demonstrates that by intelligently combining lossless and lossy compression, and dynamically adjusting quality, significant compression gains can be achieved without sacrificing perceived visual quality, especially for text and graphics.
  • Embedded systems benefit most: The design prioritizes low complexity, small footprint, and fast processing, making it ideal for the resource-constrained environments of embedded devices.

Key Results

The paper presents a comparison of its "New method" against JPEG, WinZip, JPEG LS, and MRC-JPEG on the "Toy Store" image.

  • Compression Ratio: The proposed method achieved a compression ratio of 170.7:1, significantly outperforming JPEG (24.6:1), WinZip (21.0:1), JPEG LS (21.5:1), and MRC-JPEG (166.3:1).
  • Encoding/Decoding Speed: The new method was also very fast, with encoding/decoding times of 3s/4s, comparable to or faster than most other methods, including JPEG (5s/4s) and JPEG LS (4s/7s).
  • Visual Quality: Figure 6 demonstrates that while JPEG introduces large errors around text, the proposed method produces errors primarily in photographic areas where they are least visible, maintaining high quality for text and graphics.

Limitations and Future Work

  • Motion Compensation: The current video coding implementation does not support motion compensation, which would increase encoder complexity but is considered a straightforward addition.
  • Continuous Quality Gradation: While the paper mentions mapping Φ(h) values to several quality settings for continuous gradation, the primary presented algorithm uses a binary choice (higher/lower quality).
  • Future Work: The authors suggest that the method can be easily modified to allow for more choices of quantization matrices depending on the classification output. They also note that the system's efficiency makes it suitable for demanding graphical applications like CAD and 3D modeling. The paper implies that further exploration of advanced classification and grouping techniques could yield even greater efficiency.

Summary updated

BibTeX
@inproceedings{said2004compression,
  author = {Amir Said},
  title = {{Compression of compound images and video for enabling rich media in embedded systems}},
  booktitle = {VCIP},
  year = {2004},
  doi = {10.1117/12.532433},
}
Figure