In order to test the performance of lossless compression algorithm i.e. Huffman coding Algorithm is used to test the text
string and images of different file formats. Performance is evaluated by computing the performance metrics like
Compression efficiency i.e. Compression Ratio, bit per pixel bpp or bit rate). The mat lab code is presented for encoding
and decoding of images and text string using Huffman coding, which is applied on colored and gray scale images.
The Images of various file formats have been taken as input and further pre-processed as required for analysis. The
fundamental difficulty in testing Huffman coding algorithm is, how to decide which test image to use for the evaluations.
Normally, a series of pictures, which are average in terms of how difficult they are for system being evaluated, has been
selected. Huffman Coding Approach is implemented and executed to compress and decompress the given image and text
string using MATLAB platform.
For this approach, file sizes, compression and decompression times, entropy and compression ratio & code efficiency are
calculated.