Document Compression Using Rate-Distortion Optimized Segmentation

Document Compression Using Rate-Distortion Optimized Segmentation

Journal of Electronic Imaging 10(2), 460–474 (April 2001). Document compression using rate-distortion optimized segmentation Hui Cheng Sarnoff Corporation Visual Information Systems Princeton, New Jersey 08543-5300 E-mail: [email protected] Charles A. Bouman Purdue University School of Electrical and Computer Engineering West Lafayette, Indiana 47907-1285 E-mail: [email protected] Document images differ from natural images because Abstract. Effective document compression algorithms require that they usually contain well defined regions with distinct char- scanned document images be first segmented into regions such as text, pictures, and background. In this paper, we present a multilayer acteristics, such as text, line graphics, continuous-tone pic- compression algorithm for document images. This compression al- tures, halftone pictures, and background. Typically, text re- gorithm first segments a scanned document image into different quires high spatial resolution for legibility, but does not classes, then compresses each class using an algorithm specifically require high color resolution. On the other hand, designed for that class. Two algorithms are investigated for seg- menting document images: a direct image segmentation algorithm continuous-tone pictures need high color resolution, but can called the trainable sequential MAP (TSMAP) segmentation algo- tolerate low spatial resolution. Therefore, a good document rithm, and a rate-distortion optimized segmentation (RDOS) algo- compression algorithm must be spatially adaptive, in order rithm. The RDOS algorithm works in a closed loop fashion by apply- to meet different needs and exploit different types of redun- ing each coding method to each region of the document and then selecting the method that yields the best rate-distortion trade-off. dancy among different image classes. Traditional compres- Compared with the TSMAP algorithm, the RDOS algorithm can of- sion algorithms, such as JPEG, are based on the assumption ten result in a better rate-distortion trade-off, and produce more ro- that the input image is spatially homogeneous, so they tend bust segmentations by eliminating those misclassifications which to perform poorly on document images. can cause severe artifacts. At similar bit rates, the multilayer com- Most existing compression algorithms for document im- pression algorithm using RDOS can achieve a much higher subjec- tive quality than state-of-the-art compression algorithms, such as ages can be crudely classified as block-based approaches DjVu and SPIHT. © 2001 SPIE and IS&T. [DOI: 10.1117/1.1344590] and layer-based approaches. Block-based approaches, such as Refs. 1–4, segment nonoverlapping blocks of pixels into different classes, and compress each class differently ac- 1 Introduction cording to its characteristics. On the other hand, layer- 5–8 Common office devices such as digital photocopiers, fax based approaches partition a document image into dif- machines, and scanners require that paper documents be ferent layers, such as the background layer and the digitally scanned, stored, transmitted, and then printed or foreground layer. Then, each layer is coded as an image displayed. Typically, these operations must be performed independently from other layers. Most layer-based ap- ͑ ͒ rapidly, and user expectations of quality are very high since proaches use the three-layer foreground/mask/background the final output is often subject to close inspection. Digital representation proposed in the ITU’s Recommendations ͑ ͒ implementation of this imaging pipeline is particularly for- T.44 for mixed raster content MRC . The foreground layer midable when one considers that a single page of a color contains the color of text and line graphics, and the back- document scanned at 400–600 dpi ͑dots per inch͒ requires ground layer contains pictures and background. The mask approximately 45–100 Mbytes of storage. Consequently, is a bi-level image which determines, for each pixel in the practical systems for processing color documents require reconstructed image, if the foreground color or the back- document compression methods that achieve high compres- ground color should be used. However, block-based and sion ratios and at very low levels of image distortion. layer-based document image representation approaches are closely related. With some overhead, they can be ex- changed from one to the other. In addition, they can some- times be combined to achieve better performance. Paper 99043 received July 21, 1999; revised manuscript received Oct. 5, 2000; accepted for publication Oct. 6, 2000. The performance of a document compression system is 1017-9909/2001/$15.00 © 2001 SPIE and IS&T. directly related to its segmentation algorithm. A good seg- 460 / Journal of Electronic Imaging / April 2001 / Vol. 10(2) Document compression using rate-distortion... mentation cannot only lower the bit rate, but also lower the coefficients of a JPEG or an MPEG coder. Effros and distortion. On the other hand, those artifacts which are most Chou12 introduced a two-stage bit allocation algorithm for a damaging are often caused by misclassifications. simple DCT-based source coder. ͑The DCT-based coder Some segmentation algorithms which have been pro- used in Ref. 12 differs from JPEG because the dc compo- posed for document compression use features extracted nent is not differentially encoded, and no zigzag run-length from the discrete cosine transform ͑DCT͒ coefficients to encoding of the ac components is used.͒ Their encoder uses separate text blocks from picture blocks. For example, a collection of quantization matrices, and each block of Murata1 proposed a method based on the absolute values of DCT coefficients is quantized using a quantization matrix DCT coefficients, and Konstantinides and Tretter3 use a selected by the ‘‘first-stage quantizer.’’ The two-stage bit DCT activity measure to switch among different scale fac- allocation is optimized in the sense of rate and distortion. 13 tors of JPEG quantization matrices. Other segmentation al- Schuster and Katsaggelos apply rate-distortion optimiza- gorithms are based on the features extracted directly from tion for video coding. But importantly, they also model the the input document image. The DjVu document compres- one-dimensional inter-block dependency for estimating the sion system6 uses a multiscale bicolor clustering algorithm bit rate and distortion, and the optimization problem is to separate foreground and background. In Ref. 7, text and solved by dynamic programming techniques. For a compre- line graphics are extracted from a check image using mor- hensive review of rate-distortion methods for image com- phological filters followed by thresholding. Ramos and de pression, one can refer to Ref. 14. Queiroz proposed a block-based activity measure as a fea- Our approach to optimizing rate-distortion performance ture for separating edge blocks, smooth blocks, and detailed differs from these previous methods in a number of impor- blocks for document coding.4 tant ways. First, we switch among different types of coders, In this paper, we present a multilayer document com- rather than switching among sets of parameters for a fixed ͑ ͒ ͑ ͒ pression algorithm. This algorithm first classifies 8ϫ8 non- vector quantizer VQ , DCT, or Karhune´n–Loeve KL overlapping blocks of pixels into different classes, such as transform coder. In particular, we use a coder optimized for text, picture, and background. Then, each class is com- text representation that cannot be represented as a DCT pressed using an algorithm specifically designed for that coder, VQ coder, or KL transform coder. Our text coder class. Two segmentation algorithms are used for the works by segmenting each block into foreground and back- ground pixels in a manner similar to that used by Har- multilayer compression algorithm: a direct image segmen- 2 tation algorithm called the trainable sequential MAP rington and Klassen. By exploiting the bi-level nature of ͑TSMAP͒ algorithm,9 and a rate-distortion optimized seg- text, this coder gives performance which is far superior to mentation ͑RDOS͒ algorithm developed for document what can be achieved with transform coders. Another dis- compression.10 tinction of our method is that different coders use some- The TSMAP algorithm is a representative of most docu- what different distortion measures. This is motivated by the fact that perceived quality for text, graphics, and pictures ment segmentation algorithms in that it computes the seg- can be quite different. A class-dependent distortion mea- mentation from only the input document image. The disad- sure is also found valuable in Ref. 4. Our approach is simi- vantage of such direct segmentation approaches for lar in concept to the one proposed by Reusens et al. for document coding is that they do not exploit knowledge of MPEG-4 video coding,15 where five compression models the operational performance of the individual coders, and are used for video conference applications: motion com- that they cannot be easily optimized for different target bit pensation model, background model, bi-color text and rates. graphics model, DCT model, and fractal model. However, In order to address these problems, we propose a seg- they use a square-error distortion measure. In addition, to mentation algorithm which optimizes the actual rate- minimize the coding cost of compressing a document im- distortion performance for the image being coded. The age Haffner et al. proposed a minimum description length RDOS method works

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    15 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us