Comparison of image compression techniques using Huffman and Lempel-Ziv-Welch algorithms
Abstract
Image compression technology is very popular in the field of image analysis because the compressed image is convenient for storage and transmission. In this paper, the Huffman algorithm and Lempel-Ziv-Welch (LZW) algorithm are introduced. They are widely used in the field of image compression, and the compressed image results of the two algorithms are calculated and compared. Based on the four dimensions of Compression Ratio (CR), Mean Square Error (MSE), Peak Signal to Noise Ratio (PSNR) and Bits Per Pixel (BPP), the applicable conditions of the two algorithms in compressing small image files are analysed. The results illustrated that when the source image files are less than 300kb, the Compression Ratio (CR) of Huffman algorithm was better than that of LZW algorithm. However, for Mean Square Error (MSE), Peak Signal to Noise Ratio (PSNR) and Bits Per Pixel (BPP), which are used to represent the compressed images qualities, LZW algorithm gave more satisfactory results.
References
- Birajdar A, Agarwal H, Bolia M and Gupte V, Image Compression Using Run Length Encoding and Lempel Ziev Welch Method, 2019 Global Conf. for Advancement in Technology (GCAT), 2019, pp 1-6
- Khaitu S and Panday S, Canonical Huffman Coding for Image Compression, 2018 IEEE 3rd International Conf. on Computing, Communication and Security (ICCCS), 2018, pp 184-190
- Patel R, Kumar V, Tyagi V and Asthana V, A fast and improved Image Compression technique using Huffman coding, 2016 International Conf. on Wireless Communications, Signal Processing and Networking (WiSPNET), 2016, pp 2283-2286
- Li X, Shen Y and Ma J, An Efficient Medical Image Compression Scheme, 2005 IEEE Engineering in Medicine and Biology 27th Annual Conf., 2005, pp 3437-3439
- Sangeetha M, Betty P and Kumar G, A biometrie iris image compression using LZW and hybrid LZW coding algorithm, 2017 International Conf. on Innovations in Information, Embedded and Communication Systems (ICIIECS), 2017, pp 1-6
- Chen Y, Zhou L, Chen X, Chen W, 2016, Information Theory and Coding, ed T P Han, Publishing House of Electronic Industry, Beijing, pp 40-44
- Sun B, Wu K, Improvement of Huffman Algorithm and Its Application in Image Compression, Microcomputer Information, 2011, Vol 27, pp 264-266
- Praisline Jasmi R, Perumal B and Pallikonda Rajasekaran M, Comparison of Image Compression Techniques Using Huffman Coding, DWT and Fractal Algorithm, 2015International Conf. on Computer Communication and Informatics (ICCCI), 2015, pp 1-5
- Ahmed Z and George L, A Comparative Study Using LZW with Wavelet or DCT for Compressing Color Images, 2020 International Conf. on Advanced Science and Engineering (ICOASE), 2020, pp 53-58
- Prudvi C, Muchahary D and Raghuvanshi A, Analysis of Image Compression Techniques for IoT Applications, 2022 2nd International Conf. on Intelligent Technologies (CONIT), 2022, pp 1-5
- Vaish A and Kumar M, A new Image compression technique using principal component analysis and Huffman coding, 2014 International Conf. on Parallel, Distributed and Grid Computing, 2014, pp 301-305
- Sharma K and Gupta K, Lossless data compression techniques and their performance, 2017 International Conf. on Computing, Communication and Automation (ICCCA), 2017, pp 256-261
- Sun M, Xie Y, Tang X and Sun M, Image Compression Based on Classification Row by Row and LZW Encoding, 2008 Congress on Image and Signal Processing, 2008, pp 617- 621