TL;DR
This paper introduces a novel hybrid image coding scheme designed for real-time computer screen video transmission. By intelligently separating screen content into foreground (text/graphics) and background layers, it achieves significantly higher compression ratios and better visual quality compared to existing methods, making it ideal for applications like remote control and smart displays.
What Problem Does This Paper Address?
Transmitting computer screen video in real-time presents a significant challenge due to the massive amount of data involved. A single 800x600 true-color frame can be 1.44MB, and at 85 frames per second, this quickly overwhelms network bandwidth. Existing compression methods often struggle to balance compression efficiency, visual quality, and computational complexity for the unique characteristics of computer-generated screen content, which is a mix of text, graphics, and pictorial elements. Traditional methods either compress everything losslessly (low compression) or lossily (poor text/graphics quality), or use complex segmentation techniques that are computationally expensive.
Methods
The proposed solution is a hybrid approach that leverages the Mixed Raster Content (MRC) model. It decomposes screen images into a background layer and a foreground layer (text and graphics).
- Background Compression: The background is compressed using lossy JPEG.
- Foreground Compression: Text and graphics are compressed losslessly using a novel block-based algorithm. This algorithm extends the VNC rectangle-based coding by incorporating:
- Shape Primitives: Identifying and encoding basic shapes like isolated pixels, lines (horizontal/vertical), and rectangles. This is more efficient than pixel-by-pixel encoding for structured content.
- Palette-Based Coding: Used for more complex shapes or when shape primitives are less effective.
- Palette Reuse: A technique to reduce overhead by sharing color palettes between consecutive blocks.
- LZW Algorithm: Applied as a final compression step for the generated bitstream.
- Foreground Extraction: A key innovation is the intra-block segmentation that accurately extracts text and graphics from pictorial content within the same block. This is achieved by analyzing shape primitives and using a dynamic color palette to distinguish between text/graphics pixels and pictorial noise.
Datasets
The paper evaluates its method on eight 800x600 true-color screen images, including:
- Two Chinese document images (chn1, chn2)
- Two English document images (engl, eng2)
- Three webpages (msn, sina, pku)
- One wallpaper image (wall)
These images are used to compare the proposed algorithm against existing lossless and lossy compression techniques.
Key Insights and Ideas
- Content Adaptivity is Crucial: Treating computer screen content as a uniform image type is inefficient. Separating background from foreground (text/graphics) allows for specialized, highly effective compression strategies for each.
- Shape Primitives are Powerful for Text/Graphics: Recognizing and encoding basic geometric shapes (lines, rectangles) is a very efficient way to represent computer-generated text and graphics, leading to significant compression gains.
- Intra-Block Segmentation Solves a Key Problem: Accurately separating text/graphics from background within a block, rather than just between blocks, is vital for maintaining visual quality, especially when pictorial elements are mixed with text.
- Hybrid Approach Balances Trade-offs: The combination of lossy JPEG for background and lossless shape-based coding for foreground offers a superior balance of compression ratio, visual quality, and computational complexity compared to single-method approaches.
Key Results
The proposed hybrid coding scheme demonstrates significant improvements:
- Compression Ratios: Achieves the highest compression ratios among the tested lossless algorithms for document images, reaching up to 59.3:1 for Chinese documents and 50.4:1 for English documents when using LZW. For webpages and wallpaper images, it achieves competitive compression ratios, often outperforming other methods.
- Visual Quality: The paper claims "perfect visual quality" and "visually lossless" results, particularly for text and graphics, which are preserved losslessly. Figures 9 and 10 visually demonstrate the high quality of the reconstructed images.
- Computational Complexity: The algorithm offers low complexity, with encoding times significantly lower than JPEG 2000 and comparable to or better than VNC and LZW for document images. Decoding times are also very efficient.
Limitations and Future Work
- Limitations:
- The paper notes that while shape-based coding is effective, it can be less ideal for blocks with very complicated shapes, such as some delicate icons. In such cases, palette-based coding is used as an alternative.
- The performance of the algorithm on scanned documents, which often contain visual noise, requires further experimental verification.
- Future Work:
- Improve the coding efficiency of the lossless algorithm.
- Extend the scheme to compress JPEG, MPEG, and scanned document images.
- Investigate integration with existing JPEG and MPEG coders for broader applicability.
- Explore wavelet vs. DCT for lossy picture coding and its real-time implications.
Summary updated