Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
article
Free access

Color quantization by dynamic programming and principal analysis

Published: 01 October 1992 Publication History
  • Get Citation Alerts
  • Abstract

    Color quantization is a process of choosing a set of K representative colors to approximate the N colors of an image, K < N, such that the resulting K-color image looks as much like the original N-color image as possible. This is an optimization problem known to be NP-complete in K. However, this paper shows that by ordering the N colors along their principal axis and partitioning the color space with respect to this ordering, the resulting constrained optimization problem can be solved in O(N + KM2) time by dynamic programming (where M is the intensity resolution of the device).
    Traditional color quantization algorithms recursively bipartition the color space. By using the above dynamic-programming algorithm, we can construct a globally optimal K-partition, K>2, of a color space in the principal direction of the input data. This new partitioning strategy leads to smaller quantization error and hence better image quality. Other algorithmic issues in color quantization such as efficient statistical computations and nearest-neighbor searching are also studied. The interplay between luminance and chromaticity in color quantization with and without color dithering is investigated. Our color quantization method allows the user to choose a balance between the image smoothness and hue accuracy for a given K.

    References

    [1]
    BALASUSRAMANIAN, R., AND ALLEBACH, J. A new approach to palette selection for color images. J. Imaging Tech. 17, 6 (Dec. 1991), 284-290.
    [2]
    BRUCKER, P. On the complexity of clustering problems. In Optimization and Operations Research. R. Henn, B. Korte, and W. Oettli, Eds. Springer-Verlag, New York, 1977, pp. 45 54.
    [3]
    C^MPB~:I,L, G., DEFANT/, T., FREt)ERtKSEN, J., JoYcE, S., L/-:SKE, L., LJNDBER~;, J., AND SANI)tN, D. Two bit/pixel full color encoding. In Proceedings of SIGGRAPH'86. ACM, New York, 1986, pp. 215 233.
    [4]
    Cl~ou, P. A., LOOKAUAUGH, T., AND GRAY, R. M. Optimal pruning with applications to tree-structured source coding and modeling. IEEE Trans. Inf. Theo~ IT-35, 2, (1989), 299 315.
    [5]
    DRI&lt;ZN~:R, Z. The p-center problem--Heuristic and optimal algorithms. J. Oper. Res. Soc. 35, (1984), 741-748.
    [6]
    FtUME, E., AND OU~:I.I,ETrE, M. On distributed, probabilistic algorithms for computer graphics. In Proceedings of Graphics/Interface '89. 1989, pp. 211-218.
    [7]
    FLoYt), R. W., ANI) STEENBER(;, L. An adaptive algorithm for spatial gray scale. Int. Syrup. Digest Tech. Papers (1975), 36.
    [8]
    FOLEY, J. D., DAM, A. V., FEtNER, S. K., ANt) HUt;HI~S, J.F. Computer Graphics, Principles and Practice. Addison-Wesley, Reading, Mass., 1990.
    [9]
    FREt, W. Rate-distortion coding simulation for color images. In Proceedings of SPIE National Seminar on Advances in Image Transmission Technology, vol. 87. 1976, pp. 197 ~203.
    [10]
    FRIEDMAN, J. H., BENTLEY, J. L., AND FtNKEI, R.A. An algorithm for finding best matches in logarithmic expected time. ACM Trans. Math. Softw. 3, 3 (Sept. 1977), 209 226.
    [11]
    FUCHS, H., KEDEM, G. Z. M., AND NAYt,OR, B.F. On visible surface generation by a priori tree structure. Comput. Graphics 14, 3 (July 1980), 124-133.
    [12]
    GARb'Y, M. R., JOttNSON, D. S., AND WITSENHAUSEN, H.S. The complexity of the generalized Lloyd-Max problem. IEEE Trans. Inf. Theory IT-28, {Mar. 1982}, 255-256.
    [13]
    GENTILE, R. S., Ad,LERA('H, J. P., ANI) WAI~OWlT, E. Quantization of color images based on uniform color spaces. J. Imaging Tech. 16, 1 (Feb. 1990), It 21.
    [14]
    GERstto, A., ANt} GRAY, R. M. Vector Quantization and Signal Compression. Kluwer Academic Publishers, Boston, 1991.
    [15]
    GERVAUTZ, M., ANt) PVRt;ATltOFER, W. A simple method for color quantization: Octree quantization. In Graphics Gems. Academic Press, New York, 1990.
    [16]
    GRAY. R.M. Vector quantization. 1EEE ASSP Mag. (Apr. 1984), 4-29.
    [17]
    HAI~IBI, A., AND WINTZ, P.A. Image coding by linear transformation and block quantization. IEEE Trans. Commute. COM-19, (Feb. 1971), 50 61.
    [18]
    HECKBERT, P. Color image quantization for frame buffer display. In Proceedings of SIG- GRAPH'82. ACM, New York, 1982, pp. 297 307.
    [19]
    KVRZ, B. Optimal color quantization for color displays. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (Washington D.C.). IEEE, New York, 1983, pp. 217 224.
    [20]
    LIMB, J. O., RUBINSTEIN, C. B., AND THOMPSON, J.E. Digital coding of color video signals A review. IEEE Trans. Comm. COM-25, 11 (Nov. 1977), 1349 A385.
    [21]
    LIN, d., STORER, J., ANt) COHN, M. On the complexity of optimal tree pruning for source coding. In Proceedings of Data Compression Conference. IEEE Computer Society Press, Los Angeles, 1991, pp. 63 72.
    [22]
    MAcAI)AM, D.L. Projective transformations of ICI color specifications. J. Opt. See. Amer. 27, (Aug. 1937), 294 299.
    [23]
    MAcAI)AM, I). L. Uniform color scale, d. Opt. Soc. Amer. 64, (1974), 1691.
    [24]
    MANLY, B. F.J. Multivariate Statistical Methods. Chapman and Hall, London, England, 1986.
    [25]
    MA('QUEEN, J.B. Some methods for classification and analysis of multivariate observations. In Proceedings 5th Berkeley Symposium on Mathematical Statistics and Probability, vol. 1. 1967, pp. 281 297.
    [26]
    MEt;ll)l)o, N., ANI) SUPOWlT, K.J. On the complexity of some common geometric location problems. SIAM J. Comput. 13, (1984), 182-196.
    [27]
    MERRWIELI), R.M. Visual parameters for color CRTs. In Color and the Computer. Academic Press, New York, 1987, pp. 63-81.
    [28]
    MEYER, G. W., AND GREENBERG, D.P. Perceptual color space for coputer graphics. In Color and the Computer. Academic Press, New York, 1987, pp. 83-100.
    [29]
    MORGAN, J. N., AND SONQUIST, J.A. Problems in the analysis of survey data, and a proposal. J. Amer. Statist. Assoc. 58, (1963), 415-434.
    [30]
    ORCHARD, M., ~'~D BOUMAN, C. Color quantization of images. IEEE Trans. Signal Processing (Dec. 1991).
    [31]
    PRATT, W.K. Spatial transform coding of color images. IEEE Trans. Comm. COM-19, (Dec. 1971), 980-992.
    [32]
    PREPARATA, F. P., AND SHAMOS, M.I. Computational Geometry. Springer-Verlag, New York, 1985.
    [33]
    RUBmSTEIN, C. B., AND LIMB, J.O. Statistical dependence between components of a differentially quantized color signal. 1EEE Trans. Comm. COM-20, (Oct. 1972), 890-899.
    [34]
    SOONG, F. K., AND JUANG, B.H. Optimal Quantization of LSP Parameters. In Proceedings of ICASP '88 (New York, Apr. 4-11). 1988, pp. 394-397.
    [35]
    SPROULL, R. E. Refinements to nearest-neighbor searching in k-d trees. Algorithmica 6, (1991), 579-589.
    [36]
    STENGER, L. Quantization of TV chrominance signals considering the visibility of small color differences. IEEE Trans. Comm. COM-25, (Nov. 1977), 1393-1406.
    [37]
    STEVENS, g. J., LEHAR, A. F., AND PRESTON, R. H. Manipulation and presentation of multidimensional image data using the Peano scan. IEEE Trans. PAMI 5, 2 (Sept. 1983), 520.
    [38]
    STONE, M. C., COWAN, W. B., AND BE^TrY, J.C. Color gamut mapping and the printing of digital images. ACM Trans. Graphics 7, 3 (Oct. 1988), 249-292.
    [39]
    W~'~, S., WONG, S., AND PaUSINrdEWICZ, P. An algorithm for multidimensional data clustering. ACM Trans. Math. Sofiw. 14, 2 (June 1988), 153-162.
    [40]
    Wu, X. Statistical colour quantization for minimum distortion. In Tutorials and Perspectives in Computer Graphics. Springer-Verlag, New York, 1992.
    [41]
    Wu, X. Optimal quantization by matrix-searching. J. Alg. 12, 4 (Dec. 1991), 663-673.
    [42]
    Wu, X. Efficient statistical computations for optimal color quantization. In Graphics Gems, vol. II. Academic Press, New York, 1991, pp. 126-133.
    [43]
    Wu, X., AND WITWEN, I. A fast k-means type clustering algorithm. Res. Rep. No. 85/197/10, Dept. of Computer Science, Univ. of Calgary, 1985.
    [44]
    Wu, X., AND ZHANO, K. A better tree-structured vector quantizer. In Proceedings of the IEEE Data Compression Conference. IEEE Computer Society Press, Los Angeles, 1991, pp. 392- 401.

    Cited By

    View all
    • (2023)Scalable Color Quantization for Task-centric Image CompressionACM Transactions on Multimedia Computing, Communications, and Applications10.1145/355138919:2s(1-18)Online publication date: 17-Feb-2023
    • (2023)Enhanced Image Quantization Through Hybrid Sine Cosine Optimization and K-Means Clustering2023 3rd International Conference on Emerging Frontiers in Electrical and Electronic Technologies (ICEFEET)10.1109/ICEFEET59656.2023.10452222(01-05)Online publication date: 21-Dec-2023
    • (2023)Name Your Colour For the Task: Artificially Discover Colour Naming via Colour Quantisation Transformer2023 IEEE/CVF International Conference on Computer Vision (ICCV)10.1109/ICCV51070.2023.01104(11987-11997)Online publication date: 1-Oct-2023
    • Show More Cited By

    Recommendations

    Reviews

    Stanley Martin Dunn

    An efficient algorithm for color quantization based on principal component analysis and dynamic programming is described. The purpose of this paper was to summarize work done in the field and present the algorithm in the context of what has recently been done. This paper includes previous work, a description of the new algorithm, complexity analysis, and some examples of its use. The length of the paper is suitable and it appears to fulfill its intended purpose. The best features of the paper are the problem formulation and literature survey. I found the mathematics to be presented poorly. Overall, this paper is somewhat difficult to read and contains too much detail for a large part of the intended audience. Since the intention of the paper was to present the algorithm, the analysis included was appropriate, but the author would do well to present the material again with less detail for the larger audience. To read the current version requires an understanding of algorithm analysis, linear algebra, and graphics and image processing. T he main idea can be conveyed with less detail. This paper is harder to read than the two papers that it was compared to, describing the median cut [1] and minimum variance [2] methods. The references provided are adequate to learn about this area of research. Unfortunately, this paper relies too heavily on the reader's ability to abstract concepts that could be easily conveyed with a few simple diagrams. The experiments presented are sparse, heavily concentrating on one of the two images given as raw data. I was left with more questions than answers.

    Access critical reviews of Computing literature here

    Become a reviewer for Computing Reviews.

    Comments

    Information & Contributors

    Information

    Published In

    cover image ACM Transactions on Graphics
    ACM Transactions on Graphics  Volume 11, Issue 4
    Oct. 1992
    118 pages
    ISSN:0730-0301
    EISSN:1557-7368
    DOI:10.1145/146443
    Issue’s Table of Contents

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    Published: 01 October 1992
    Published in TOG Volume 11, Issue 4

    Permissions

    Request permissions for this article.

    Check for updates

    Author Tags

    1. algorithm analysis
    2. clustering
    3. color quantization
    4. dynamic programming
    5. principal analysis

    Qualifiers

    • Article

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)201
    • Downloads (Last 6 weeks)35

    Other Metrics

    Citations

    Cited By

    View all
    • (2023)Scalable Color Quantization for Task-centric Image CompressionACM Transactions on Multimedia Computing, Communications, and Applications10.1145/355138919:2s(1-18)Online publication date: 17-Feb-2023
    • (2023)Enhanced Image Quantization Through Hybrid Sine Cosine Optimization and K-Means Clustering2023 3rd International Conference on Emerging Frontiers in Electrical and Electronic Technologies (ICEFEET)10.1109/ICEFEET59656.2023.10452222(01-05)Online publication date: 21-Dec-2023
    • (2023)Name Your Colour For the Task: Artificially Discover Colour Naming via Colour Quantisation Transformer2023 IEEE/CVF International Conference on Computer Vision (ICCV)10.1109/ICCV51070.2023.01104(11987-11997)Online publication date: 1-Oct-2023
    • (2023)Forty years of color quantization: a modern, algorithmic surveyArtificial Intelligence Review10.1007/s10462-023-10406-656:12(13953-14034)Online publication date: 27-Apr-2023
    • (2023)Content-Based Image Retrieval Using Octree Quantization AlgorithmInternational Conference on Advanced Intelligent Systems for Sustainable Development10.1007/978-3-031-26384-2_65(741-755)Online publication date: 10-Jun-2023
    • (2021)Video recoloring via spatial-temporal geometric palettesACM Transactions on Graphics10.1145/3450626.345967540:4(1-16)Online publication date: 19-Jul-2021
    • (2021)Revisiting the Iterative Ant-tree for color quantization algorithmJournal of Visual Communication and Image Representation10.1016/j.jvcir.2021.10318078:COnline publication date: 1-Jul-2021
    • (2021)Surface color distribution analysis by computer vision compared to sensory testing: Vacuum fried fruits as a case studyFood Research International10.1016/j.foodres.2021.110230143(110230)Online publication date: May-2021
    • (2020)Nutritional and Physicochemical Quality of Vacuum-Fried Mango Chips Is Affected by Ripening Stage, Frying Temperature, and TimeFrontiers in Nutrition10.3389/fnut.2020.000957Online publication date: 17-Jul-2020
    • (2020)Automatic Color Scheme Extraction from MoviesProceedings of the 2020 International Conference on Multimedia Retrieval10.1145/3372278.3390685(154-163)Online publication date: 8-Jun-2020
    • Show More Cited By

    View Options

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Get Access

    Login options

    Full Access

    Media

    Figures

    Other

    Tables

    Share

    Share

    Share this Publication link

    Share on social media