The research paper published by IJSER journal is about Image Compression Hybrid using DCT , DWT , Huffman 1

ISSN 2229-5518

Image Compression Hybrid using DCT , DWT , Huffman

Harjeetpal Singh , Sakshi Rana

Abstract-Image compression literally means reducing the size of graphics file, without compromising on its quality. Depending on whether the reconstructed image has to be exactly same as the original or some unidentified loss may be incurred, two techniques for compression exist. Image compression is an essential technology in multimedia and digital communication fields . Ideally, an image compression technique removes redundant and/or irrelevant information, and efficiently encodes what remains. Practically, it is often nec essary to throw away both on redundant information and relevant information to achieve the requir ed compression. in either case, the trick is finding methods that allow important information to be efficiently extracted and represented. Most of the existing image co ding algorithm is based on the correlation between adjacent pixels and therefore the compression ratio is not high. Fractal coding is a potential image compression method, which is based on the ground breaking work of Barnsley and was developed to a usable state by Jacquin.Its essence is that correlation not only exists in adjacent pixels within a local region, but also in different regions and local regions with global regions. The fractal-based schemes exploit the self-similarities that are inherent in many real world images for the purpose of encoding an image as a collection of transformations. Here in this hybrid model we are going to proposed a Nobel technique which is the combination of several compression techniques. This paper presents DW T and DCT implementation because these are the lossy techniques and in the last we introduce Huffman decoding technique which is lossless. At the last we implement lossless technique so our PSNR and MSE will go better than the old algorithms and due to DW T and DCT we will get good level of compression.

Index Terms- DCT (discrete cosine transform), DW T (discrete wavelet transform), MSE (mean square error), PSNR (peak signal to noise ratio)

.

1 INTRODUCTION

—————————— ——————————
Image Compression addresses the problem of reducing the amount of data required to represent the digital image. Com- pression is achieved by the removal of one or more of three basic data redundancies: (1) Coding redundancy, which is present when less than optimal (i.e. the smallest length) code words are used; (2) Interpixel redundancy, which results from correlations between the pixels of an image & (3) psycho vis- ual redundancy which is due to data that is ignored by the human visual system (i.e. visually nonessential information). Huffman codes contain the smallest possible number of code symbols (e.g., bits) per source symbol (e.g., grey level value) subject to the constraint that the source symbols are coded one at a time. So, Huffman coding when combined with technique of reducing the image redundancies using Discrete Cosine Transform (DCT) helps in compressing the image data to a very good extent. The Discrete Cosine Transform (DCT) is an example of transform coding. The current JPEG standard uses the DCT as its basis. The DC relocates the highest energies to the upper left corner of the image. The lesser energy or infor- mation is relocated into other areas. The DCT is fast. It can be quickly calculated and is best for images with smooth edges like photos with human subjects. The DCT coefficients are all real numbers unlike the Fourier Transform. The Inverse Dis- crete Cosine Transform (IDCT) can be used to retrieve the im- age from its transform representation. The Discrete wavelet transform (DWT) has gained widespread acceptance in signal processing and image compression. Compressing an image is
significantly different than compressing raw binary data. Of course, general purpose compression programs can be used to compress images, but the result is less than optimal. DCT has been widely used in signal processing of image. The one- dimensional DCT is useful in processing one-dimensional sig- nals such as speech waveforms. For analysis of two dimen- sional (2D) signals such as images, we need a 2D version of the DCT data, especially in coding for compression, for its near- optimal performance. JPEG is a commonly used standard method of compression for photographic images. The name JPEG stands for Joint Photographic Experts Group, the name of the committee who created the standard. JPEG provides for lossy compression of images. Image compression is the appli- cation of data compression on digital images. In effect, the objective is to reduce redundancy of the image data in order to be able to store or transmit data in an efficient form. The best image quality at a given bit-rate (or compression rate) is the main goal of image compression. The main objectives of this paper are reducing the image storage space, Easy maintenance and providing security, Data loss cannot affect the image clar- ity, Lower bandwidth\requirements for transmission, reduc- ing cost. Because of their inherent multi-resolution nature, wavelet-coding schemes are especially suitable for applica- tions where scalability and tolerable degradation are impor- tant. Recently the JPEG committee has released its new image coding standard, JPEG-2000, which has been based upon DWT.

IJSER © 2012

http://www.ijser.org

The research paper published by IJSER journal is about Image Compression Hybrid using DCT , DWT , Huffman 2

ISSN 2229-5518

.

2 METHODOLOGY

Hybrid model (DCT, DWT, and HUFFMAN) is implemented as follows:

Loading an image is our first step as shown in fig.1 and 2 that image can be in RGB or gray scale format. The two images are taken to show different results .But important is to extract the original size of the image so as to compare it with the compressed image to get the exact results.
Next step is to implement DCT (discrete cosine trans- forms).It is applied on the obtained image that is output of DWT and using it as an input for DCT. A discrete cosine trans- form (DCT) expresses a sequence of finitely many data points in terms of a sum of cosine functions oscillating at different frequencies. As shown in fig. 5 and 6 DCT compressed images for two inputs and their histograms .DCTs are important to nu merous applications in science and engineering, from lossy compression of images, a DCT is a Fourier-related transform similar to the discrete Fourier transform (DFT), but using only real number

Fig.1: Lena image used as a first image

Figure3: DWT compressed Lena image with its received histogram.

Fig.2: Barbara image used as a second image

The model we are using is hybrid model it is combination of DCT, DWT and HUFFMAN. First DWT (discrete wavelet transform) is implemented .DWT will be applied to r,g and b separetly i.e. have to extract r,g,b matrices from the image be- cause the loaded image will be a input to DWT.Fig.3 and 4are DWT compressed images for different inputs with respective histograms.

————————————————

Harjeetpal Singh is currently pursuing masters degree program in electronics and communication engineering in Punjab Technical University(PTU), India, PH-+91-8054400009. E-mail: jaggi0009@gmail.com

Sakshi Rana is masters degree program in electronics and communication

engineering in Punjab University, India, . E-mail:

er.sakshikapuria@gmail.com

Figure4: DWT compressed Barbara image with its received histogram

IJSER © 2012

http://www.ijser.org

The research paper published by IJSER journal is about Image Compression Hybrid using DCT , DWT , Huffman 3

ISSN 2229-5518


to which depicts the quality of picture. Different filters can be used to reduce the unrelevant information from image.

3.GRAPHS

Figure5: DCT compressed Lena image with it received histogram

Figure7: Graph showing the varying values of MSE and PSNR for DWT, DCT, and HUFFMAN. This varying compressed values are for Lena as a input

Figure6: DCT compressed Barbara image with its received

histogram

And our final step is to implement Huffman, output of DCT is applied as input to it .Above two mention techniques are lossy techniques so at the end step we are going to imple- ment Huffman compression which is lossless technique. For this we have to generate a Huffman tree for the particular im- age and with the help of that tree we compress this image at the last step.But in this case output is same as that of DCT but we our using this compression as it increases the compression ration of the image which increases the quality. Reverse of this is happen at the decompressing stages and in the last we have to calculate PSNR and MSE of the decompressed image and compare it to the original image. PSNR (probalistic signal to noise ratio) and MSE (mean square error) are the two factors

Figure8: Graph showing the varying values of MSE and PSNR for DWT, DCT, and HUFFMAN. This varying compressed values are for Barbara as a input.

IJSER © 2012

http://www.ijser.org

The research paper published by IJSER journal is about Image Compression Hybrid using DCT , DWT , Huffman 4

ISSN 2229-5518

4. RESULTS

:

REFERENCES

[1] M.Rabbani and P. Jones, “Digital image compression tech- niques,SPIE Opt. Eng. Press,, Bellingham, Washington, Tech. Rep., 1991

[2] G. Kuduvalli and R. Rangayyan, “Performance analysis of re-

versibl Image compression techniques for high resolution digi- tal Teleradiology,” in IEEE Trans. Med. Imaging, vol. 11, Sept.

1992

[3] J.M.Shapiro, “Embedded image coding using zerotrees of wave-

let Coefficients,” in Special Issue on Wavelet And Signal

Processing,vol.41.no.12.IEEE Trans.Signal Processing, Dec1993. [4] Said and W. A. Pearlman, “An image multiresolution represe n-

tation for lossless and lossy compression,” in IEEE Transactions

On Image Processing, vol. 5, no. 9, September 1996.

[5] X. Li, Y. Shen, and J. Ma, “An efficient medical image compres-

sion,,”in Engineering In Medicine And Biology 27th Annual

Conference,Shangai,China, September 1-4 2005 IEEE

[6] Ali Al-Fayadh, Abir Jaafar Hussain, Paulo Lisboa, and Dhiya Al-Jumeily “An Adaptive Hybrid Classified Vector Quantisa- tion and Its Application to Image Compression” 2008 IEEE

[7] Zhang Shi-qiang,Zhang Shu-fang, Wang Xin-nian, Wang Yan “ The Image Compression Method Based on Adaptive Segment and Adaptive Quantified” 2008 IEEE

[8] Sunil Bhooshan , Shipra Sharma “ An Efficient and Selective

Image Compression Scheme using Huffman and Adaptive In-

terpolation” 2009 IEEE

[9] Ying Xie , Xiaojun Jing ,Songlin Sun ,Linbi Hong “ A Fast And

Low Complicated Image Compression Algorithm For Predictor

For JPEG-LS” 2009 IEEE

[10] Chong Fu ,Zhi-Liang Zhu “ A DCT-Based Fractal Image Com-

pression Method” 2009 IEEE

[11] Chunlei Jiang, Shuxin Yin “A Hybrid Image Compression Based

on Human Visual System” 2010 IEEE

[12] Suchitra Shrestha and Khan Wahid “ Hybrid DWT-DCT Algo-

rithm for Bio-Medical Image And Vedio Compression Applica-

tions”2010 IEEE.

[13] F.M. Bayer and R J Cintra “ Image Compression Via a Fast DCT

Approximation” 2010 IEEE

[14] LIU Wei “ Research on Image Compression Algorithm Based on

SPHIT” 2010 IEEE

[15] Mamta Sharma, S.L. Bawa D.A.V. college, “Compression Using

Huffman Coding” may 2010 IJCSNS

[16] Aree Ali Mohammed and Jamal Ali Hussian “Hybrid Trans- form Coding Scheme for Medical Image Application” 2011 IEEE

[17] T. Goto and Y. Kato “ Compression Artifect Reduction based on

Total Variation Regularization Method for MPEG-2” 2011 IEEE

[18] Amar Agoun “ Compression of 3D Intergral Images using 3D

wavelet Transform” 2011 IEEE.

[19] XiHong ZHOU “ Research on DCT Based Image Compression

Quality”2011 IEEE

[20] Said and W. A. Pearlman, “An image multiresolution represe n- tationfor lossless and lossy compression,” to appear in theIEE E Transactions on Image Processing

IJSER © 2012

http://www.ijser.org