Color Quantization of Images

Color Quantization of Images

IEEE TRANSACTIONS ON SIGNAL PROCESSING. VOL. 39. NO. 12. DECEMBER 19Y1 2677 Color Quantization of Images Michael T. Orchard, Member, IEEE, and Charles A. Bouman, Member, ZEEE Abstract-Many image display devices allow only a limited then used as an index into a user defined table of colors. number of colors to be simultaneously displayed. Usually, this Each entry in the table contains a 24 b value which spec- set of available colors, called a color palette, may be selected ifies the color's red, green, and blue components. In this by a user from a wide variety of available colors. Such device restrictions make it particularly difficult to display natural color way, the user is allowed to select a small subset of colors, images since these images usually contain a wide range of colors called a palette, from the full range of 224 = 16 777 216 which must then be quantized by a palette with limited size. colors. The drawback of this scheme is that it restricts the This color quantization problem is considered in two parts: the number of colors which may be simultaneously displayed. selection of an optimal color palette and the optimal mapping This paper addresses the problem of displaying color of each pixel of the image to a color from the palette. This paper develops algorithms for the design of hierarchical images using a restricted palette. Since natural images tree structured color palettes incorporating performance cri- typically contain a large number of distinguishable colors, teria which reflect subjective evaluations of image quality. Tree displaying such images with a limited palette is difficult. structured color palettes greatly reduce the computational re- The approach we take is structured around algorithms for quirements of the palette design and pixel mapping tasks, while allowing colors to be properly allocated to densely populated performing two tasks. The first task, called color palette areas of the color space. The algorithms produce higher quality design, selects the best possible set of colors for a partic- displayed images and require less computations than previ- ular image. The second task, called pixel mapping, as- ously proposed methods. sociates each pixel of the image with a color from this Error diffusion techniques are commonly used for displaying palette to yield the highest quality image. images which have been quantized to very few levels. This pa- per studies problems related to the application of error diffusion A number of approaches [ 11, [2] have been suggested techniques to the display of color images. A modified error for the design of color palettes which involve iterative re- diffusion technique is proposed for resolving these problems. finement of some initial palette. However, these algo- The new error diffusion technique is shown to be easily imple- rithms suffer from the disadvantage of being computation- mented using the tree structured color palettes developed ear- ally intensive. In many applications, the efficiency of lier. algorithms for performing color palette design and pixel mapping is very important. This is particularly true in ap- I. INTRODUCTION plications involving large image data bases. In these ap- IDEO monitors display color images by modulating plications, images are in some common format which must V the intensity of the three primary colors (red, green, be displayed on monitors with different limitations on and blue) at each pixel at the image. In a digitized color color palette size. In such an environment, the color pal- image each primary color is usually quantized with 8 b of ette design and the pixel mapping functions must be per- resolution in order to eliminate distinguishable quantiza- formed at the time an image is displayed. This makes tion steps in luminance, color hue, and color saturation. computational efficiency of critical importance. Thus, full-color digital display systems use 24 b to spec- Even if the color palette is transmitted with each image, ify the color of each pixel on the screen. standard image coding techniques require that the pixel The cost of high-speed memory needed to support such mapping be performed locally at the time each image is a full-color display on a high-resolution monitor makes displayed. This is because standard image coding tech- many applications impractical. An alternative approach, niques make use of the high correlation between the val- which is used by many currently available displays, is to ues of the primary colors of neighboring pixels to reduce provide a limited number of bits, such as 8, for specifying the transmission bit rate. The color palette indices of the color at each pixel. Each of these 28 = 256 values is neighboring pixels are not highly correlated and, there- fore, cannot be coded with high efficiency. Thus, even if Manuscript received April 24, 1990; revised June 24, 1990. This work was supported by the Office of Naval Research and the Naval Research a color palette of correct size is provided with each stored Laboratory under Grant N00014-87-0189, by an IBM Graduate Fellow- image, the pixel mapping function must be performed ship, and by an AT&T Fellowship. after the image is retrieved from the data base and de- M. T. Orchard was with the Department of Electrical Engineering, ' Princeton University, Princeton, NJ 08544. He is now with the Coordi- coded into a full-color format. nated Science Laboratory and Department of Electrical and Computer En- The first problem we address is the problem of design- gineering, University of Illinois at Urbana-Champaign, Urbana, IL 61801, ing color palettes. In general, a color palette will accu- C. A. Bouman is with the School of Electrical Engineering, Purdue Uni- versity, West Lafayette. IN 47907-0501. rately display a particular image if the true color of each IEEE Log Number 9 103 196. pixel in the image can be well approximated by some color 1053-587X/91$01.00 0 1991 IEEE 2678 IEEE TRANSACTIONS ON SIGNAL PROCESSING. VOL. 39. NO. 12. DECEMBER 1991 from the palette. Heckbert [2]proposed a method for con- ettes using a minimum TSE criteria. This allows for very structing an initial color palette by assigning to each color efficient pixel mapping by making search times propor- from the palette an approximately equal number of pixels tional to the tree depth. in the image. This method is; based on the construction of Empirical evidence indicates that the best color palettes a binary tree in which each leaf contains an approximately are not necessarily ones which minimize TSE. This is be- equal number of similar pixel colors which can be de- cause the subjective error resulting from quantizing a pix- scribed by a single quantization color. The tree is con- el’s color value cannot be treated independently of the structed by recursively determining the leaf node with the quantization of spatially adjacent pixels. Standard VQ largest number of pixels and splitting it into two new based algorithms do not address many of these subjective modes with equal numbers of pixels. To improve this ini- qualities because they generate a codebook based on the tial color palette, Heckbert proposed an iterative proce- distribution of pixel colors without consideration of their dure, derived from the Linde-Buzo-Gray (LBG) algo- spatial relationships. We develop two approaches to mod- rithm [3] for quantizer deqign, which attempts to minimize ifying the basic binary splitting algorithm to account for the total squared error (TSE) between the original pixels these subjective qualities. The first approach computes a and colors assigned from the palette. Later, Braudaway weighted TSE (WTSE) by applying a subjective weight- [l] proposed constructing an initial color palette by cen- ing to the squared error at each pixel and uses an exten- tering colors at peaks in the color-value histogram. To sion of the basic binary splitting VQ algorithm to mini- avoid concentrating too many colors about one peak, the mize this WTSE. The subjective weighting reflects histogram values are reduced in a region surrounding each variations in our ability to perceive small intensity changes assigned color after the color is selected. Beginning with as a function of the spatial intensity gradient at each pixel. this initial palette, Braudaway also used the iterative LGB The second approach modifies the order in which the bi- algorithm as suggested by Heckbert. An approach similar nary splitting algorithm splits nodes so as to reduce the to that of Braudaway’s has also been used by Gentile et correlation of quantization errors between adjacent pix- al. [4]to study the effects of color transformations on the els. This approach is based on reducing the sizes of inte- quality of quantized images. riors of constant color areas in the displayed image. In both Heckbert’s and Braudaway’s methods, the ini- The second part of this paper addresses the problem of ita1 condition is chosen to allocate more quantization lev- optimum pixel mapping once a color palette has been se- els to regions of the color space with larger numbers of lected. Pixel mapping involves assigning a color from the pixels. However, neither initial condition attempts to palette to each pixel in the image in a way which produces minimize the TSE or any other objective measure of er- the highest quality display. Although the TSE can be min- ror. Therefore, the LGB algorithm is used to improve imized by assigning each pixel to the color that is closest these initial color palettes by searching for a local mini- to its original color, higher quality displays are often pro- mum of the TSE. While the LBG algorithm reduces the duced by using dithering methods to assign colors. These initial TSE, it is greatly influenced by these initial pal- methods attempt to match the local color averages of the ettes.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    14 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