An Improved Image Compression Algorithm Using 2D DWT and PCA with Canonical Huffman Encoding

Of late, image compression has become crucial due to the rising need for faster encoding and decoding. To achieve this objective, the present study proposes the use of canonical Huffman coding (CHC) as an entropy coder, which entails a lower decoding time compared to binary Huffman codes. For image...

Full description

Bibliographic Details
Main Authors: Rajiv Ranjan, Prabhat Kumar
Format: Article
Language:English
Published: MDPI AG 2023-09-01
Series:Entropy
Subjects:
Online Access:https://www.mdpi.com/1099-4300/25/10/1382
_version_ 1797573981603102720
author Rajiv Ranjan
Prabhat Kumar
author_facet Rajiv Ranjan
Prabhat Kumar
author_sort Rajiv Ranjan
collection DOAJ
description Of late, image compression has become crucial due to the rising need for faster encoding and decoding. To achieve this objective, the present study proposes the use of canonical Huffman coding (CHC) as an entropy coder, which entails a lower decoding time compared to binary Huffman codes. For image compression, discrete wavelet transform (DWT) and CHC with principal component analysis (PCA) were combined. The lossy method was introduced by using PCA, followed by DWT and CHC to enhance compression efficiency. By using DWT and CHC instead of PCA alone, the reconstructed images have a better peak signal-to-noise ratio (PSNR). In this study, we also developed a hybrid compression model combining the advantages of DWT, CHC and PCA. With the increasing use of image data, better image compression techniques are necessary for the efficient use of storage space. The proposed technique achieved up to 60% compression while maintaining high visual quality. This method also outperformed the currently available techniques in terms of both PSNR (in dB) and bit-per-pixel (bpp) scores. This approach was tested on various color images, including Peppers 512 × 512 × 3 and Couple 256 × 256 × 3, showing improvements by 17 dB and 22 dB, respectively, while reducing the bpp by 0.56 and 0.10, respectively. For grayscale images as well, i.e., Lena 512 × 512 and Boat 256 × 256, the proposed method showed improvements by 5 dB and 8 dB, respectively, with a decrease of 0.02 bpp in both cases.
first_indexed 2024-03-10T21:16:50Z
format Article
id doaj.art-a366288ea35e46deb6f24be148f2fb19
institution Directory Open Access Journal
issn 1099-4300
language English
last_indexed 2024-03-10T21:16:50Z
publishDate 2023-09-01
publisher MDPI AG
record_format Article
series Entropy
spelling doaj.art-a366288ea35e46deb6f24be148f2fb192023-11-19T16:24:06ZengMDPI AGEntropy1099-43002023-09-012510138210.3390/e25101382An Improved Image Compression Algorithm Using 2D DWT and PCA with Canonical Huffman EncodingRajiv Ranjan0Prabhat Kumar1Department of Information Technology, BIT Sindri, Dhanbad 828123, IndiaDepartment of Computer Science & Engineering, National Institute of Technology Patna, Patna 800005, IndiaOf late, image compression has become crucial due to the rising need for faster encoding and decoding. To achieve this objective, the present study proposes the use of canonical Huffman coding (CHC) as an entropy coder, which entails a lower decoding time compared to binary Huffman codes. For image compression, discrete wavelet transform (DWT) and CHC with principal component analysis (PCA) were combined. The lossy method was introduced by using PCA, followed by DWT and CHC to enhance compression efficiency. By using DWT and CHC instead of PCA alone, the reconstructed images have a better peak signal-to-noise ratio (PSNR). In this study, we also developed a hybrid compression model combining the advantages of DWT, CHC and PCA. With the increasing use of image data, better image compression techniques are necessary for the efficient use of storage space. The proposed technique achieved up to 60% compression while maintaining high visual quality. This method also outperformed the currently available techniques in terms of both PSNR (in dB) and bit-per-pixel (bpp) scores. This approach was tested on various color images, including Peppers 512 × 512 × 3 and Couple 256 × 256 × 3, showing improvements by 17 dB and 22 dB, respectively, while reducing the bpp by 0.56 and 0.10, respectively. For grayscale images as well, i.e., Lena 512 × 512 and Boat 256 × 256, the proposed method showed improvements by 5 dB and 8 dB, respectively, with a decrease of 0.02 bpp in both cases.https://www.mdpi.com/1099-4300/25/10/1382canonical Huffman coding (CHC)2D discrete wavelet transform (2D DWT)hard thresholdinglossy image compression
spellingShingle Rajiv Ranjan
Prabhat Kumar
An Improved Image Compression Algorithm Using 2D DWT and PCA with Canonical Huffman Encoding
Entropy
canonical Huffman coding (CHC)
2D discrete wavelet transform (2D DWT)
hard thresholding
lossy image compression
title An Improved Image Compression Algorithm Using 2D DWT and PCA with Canonical Huffman Encoding
title_full An Improved Image Compression Algorithm Using 2D DWT and PCA with Canonical Huffman Encoding
title_fullStr An Improved Image Compression Algorithm Using 2D DWT and PCA with Canonical Huffman Encoding
title_full_unstemmed An Improved Image Compression Algorithm Using 2D DWT and PCA with Canonical Huffman Encoding
title_short An Improved Image Compression Algorithm Using 2D DWT and PCA with Canonical Huffman Encoding
title_sort improved image compression algorithm using 2d dwt and pca with canonical huffman encoding
topic canonical Huffman coding (CHC)
2D discrete wavelet transform (2D DWT)
hard thresholding
lossy image compression
url https://www.mdpi.com/1099-4300/25/10/1382
work_keys_str_mv AT rajivranjan animprovedimagecompressionalgorithmusing2ddwtandpcawithcanonicalhuffmanencoding
AT prabhatkumar animprovedimagecompressionalgorithmusing2ddwtandpcawithcanonicalhuffmanencoding
AT rajivranjan improvedimagecompressionalgorithmusing2ddwtandpcawithcanonicalhuffmanencoding
AT prabhatkumar improvedimagecompressionalgorithmusing2ddwtandpcawithcanonicalhuffmanencoding