Professional Documents
Culture Documents
22
International Journal of Computer Applications (0975 – 8887)
Volume 131 – No.13, December2015
3. The repetitive data in image, called as runs, is replaced orientation, etc. [2]. This redundant data is removed from the
with a sequence {di, Ci}, where di is repetitive data and image to be compressed and hence the name fractal encoding.
Ci is count by which it is repeated.
In fractal encoding, following steps are performed:
4. Combine each di with its frequency i.e. Ci.
1. Divide an input gray-scale image into non-
5. At the receiver side, image is decompressed by isolating overlapping blocks of size 4×4, called as Range
the 4 MSBs and 4 LSBs. blocks (Ri).
6. Then di is replaced with original value and using Ci the 2. Select a Domain block (Di) from the image of size
original image data is retrieved. twice the Range block.
The Run Length Encoding performs good and easily for gray 3. Partition the Domain block Di and calculate its
scale images but it degrades for image files that don’t have Affine transform. The result is Di1
recurring sequences.
4. Calculate the mean square root of Ri and Di1 to
In the paper [8], Rafeeq et al. implemented RLE on the given estimate error e between two blocks. If e is less than
image and estimated the value of CR as 0.55 and PSNR value possible tolerant error then go to step 5, else divide
as 29.14db. the Di1 into four equal blocks and repeat the process.
2.3 Huffman Encoding 5. Record the information collected till now regarding
Huffman encoding technique is invented by David Huffman fractals and stop.
and is variable length coding. In this, for frequently occurring 6. To decompress the image, follow above process in
data in image, the short length code words are used and for the reverse order and get the reconstructed image.
less frequent data, longer code words are used [9]. In Huffman
encoding, image is compressed with the help of Binary tree. The fractal compression technique has long encoding time.
Leaf nodes of the tree are image data and their probabilities Also, it is computationally expensive because each range
are at the side. block is compared to all domain blocks. In the paper [1],
Veenadevi et al. have applied fractal encoding on given image
Steps in Huffman encoding are explained below, and estimated PSNR value as 11.91db and CR as 3.2.
1. Calculate the probability of each value in input
image data.
3.2 Discrete Cosine Transform (DCT)
The image in spatial domain is transformed into frequency
2. Arrange these probabilities in descending order. domain using DCT. The input image is represented in two-
dimensional matrix as P(i,j). Then the Discrete Cosine
3. Merge the lower probabilities and repeat this until transform is applied on this matrix to get P’(i,j). The DCT is
only two probabilities are left. discrete-time version of Fourier transform [4] and is
4. This generated binary tree is the code dictionary. represented with formula given below,
23
International Journal of Computer Applications (0975 – 8887)
Volume 131 – No.13, December2015
divide the image into four sub-bands as LL1, LH1, HL1, and Here,
HH1. The LL1 gives the coarser level of information and
hence it is again sub-divided into LL2, LH2, HL2, and HH2. MAX is the maximum possible pixel value of the image.
This division can be done maximum up to 5 levels. Using these parameters, performance of compression
algorithm can be estimated and hence these parameters are
LL3 HL3 essential to consider while compressing the image data.
HL2
LH3 HH3 5. CONCLUSION
HL1 After the study of gray-scale image compression techniques, it
has been observed that among lossless compression
LH2 HH2 techniques, Huffman Encoding gives better quality of
reconstructed image and among lossy compression
techniques; Discrete Wavelet Transform performs efficiently
in producing compressed data.
LH1 HH1 In the future, a hybrid technique of lossless and lossy image
compression techniques can be used to achieve better
reconstructed image and efficient compression.
6. ACKNOWLEDGMENTS
Fig. 2 Three level decomposition Every orientation work has an imprint of many people and it
becomes the duty of author to express deep gratitude for the
Then quantization is applied to get wavelet coefficients and
same. I take this opportunity to express my deep sense of
the entropy coding is applied on wavelet coefficients to get
gratitude towards my esteemed guide Prof. (Ms) Aparna
the compressed image data [6].
Junnarkar for giving me this splendid opportunity to present
In the paper [5], Navnidhi et al. experimented DWT on the this paper.
given Image and got PSNR value as 51.46db.
7. REFERENCES
4. PERFORMANCE PARAMETERS [1] Veenadevi. S. V., A. G. Ananth, “Fractal Image
The efficiency of compression algorithm is estimated by the Compression of Satellite Imageries,” International
amount of image data that is compressed and the quality of Journal of Computer Applications, September 2011.
reconstructed image after decompression. The compression [2] Hitashi Gaganpreet Kaur Sugandha Sharma, “Fractal
efficiency can be estimated using Compression ratio and the image compression- a review,” International Journal of
quality of reconstructed image can be calculated using PSNR. Advanced Research in Computer Science and Software
Engineering, February 2014.
4.1 Compression Ratio (CR) [3] Xinpeng Zhang, Yanli Ren, Liquan Shen, Zhenxing
Less the size of compressed data, more is the compression Qian, and Guorui Feng, “Compressing Encrypted Images
efficiency. This efficiency is calculated using Compression With Auxiliary Information,” IEEE Transactions on
Ratio. It is the ratio of uncompressed data to compressed data Multimedia, August 2014.
and is measured in percentage. Compression ratio tells how
much the image data is compressed. The formula for CR is: [4] Dr. S. S. Pandey, Manu Pratap Singh, Vikas Pandey,
“Block Wise Image Compression & Reduced Blocks
𝑈𝑛𝑐𝑜𝑚𝑝𝑟𝑒𝑠𝑠𝑒𝑑 𝐷𝑎𝑡𝑎 Artifacts Using Discrete Cosine Transform ,”
𝐶𝑜𝑚𝑝𝑟𝑒𝑠𝑠𝑖𝑜𝑛 𝑅𝑎𝑡𝑖𝑜 =
𝐶𝑜𝑚𝑝𝑟𝑒𝑠𝑠𝑒𝑑 𝐷𝑎𝑡𝑎 International Journal of Scientific and Research
Publications, March 2015.
4.2 Mean-Squared Error (MSE) [5] Tim Bruylants, AdrianMunteanu, PeterSchelkens,
The MSE is the cumulative squared error between the “Wavelet based volumetric medical image compression,”
compressed and the original image. A lower value of MSE Elsevier, December 2014.
means lesser error and good quality of reconstructed image. [6] Navnidhi Chaturvedi, Dr. S. J. Basha, “Comparison of
For a noise-free image I of size m×n and its noise Digital Image watermarking Methods DWT & DWT-
approximation K, MSE is defined as: DCT on the Basis of PSNR,” International Journal of
𝑚 −1 𝑛 −1 Innovative Research in Science, Engineering and
1 2 Technology, December 2012.
𝑀𝑆𝐸 = 𝐼(𝑖, 𝑗) − 𝐾(𝑖, 𝑗)
𝑚𝑛 [7] S. Nigar Sulthana, Mahesh Chandra, “Image
𝑖=0 𝑗 =0
Compression with Adaptive Arithmetic Coding,”
4.3 Peak-Signal to Noise Ratio (PSNR) International Journal of Computer Applications, 2011.
It is the ratio between the maximum possible power of [8] Rafeeq AL-HASHEMI, Ayman AL-DMOUR, Fares
original image and the power of noise introduced because of FRAIJ, Ahmed MUSA, “A Grayscale Semi-Lossless
compression. Many signals have wide range hence PSNR is Image Compression Technique Using RLE,” Journal of
expressed in terms of the decibel scale (db). Higher the PSNR Applied Computer Science & Mathematics, 2011.
value better is the quality of reconstructed image. PSNR is [9] Sharan Kumar, Dr.Jayadevappa, Santosh .D.Bhopale,
defined using the Mean Squared Error (MSE). The PSNR of Radhika R. Naik, “Implementation of Huffman Image
reconstructed image is calculated using following formula: Compression And Decompression Algorithm,”
International Journal Of Innovative Research In
𝑀𝐴𝑋𝐼 2 Electrical, Electronics, Instrumentation And Control
𝑃𝑆𝑁𝑅 = 10𝑙𝑜𝑔10
𝑀𝑆𝐸 Engineering, April 2014.
24
International Journal of Computer Applications (0975 – 8887)
Volume 131 – No.13, December2015
[10] Gaurav Vijayvargiya, Dr. Sanjay Silakari, Dr.Rajeev International Journal of Advanced Research in Computer
Pandey, “A Survey: Various Techniques of Image and Communication Engineering, February 2015.
Compression,” International Journal of Computer [12] Rahul Shukla, Narender Kumar Gupta, “Image
Science and Information Security, October 2013. Compression through DCT and Huffman Coding
[11] Anshuma Patel, Sanjiv Kumar Shriwastava, Technique,” International Journal of Current Engineering
“Parameterized Comparative Analysis of Various Lossy and Technology, May 2015.
and Lossless Image Compression Practices,”
IJCATM : www.ijcaonline.org 25