Image Compression Techniques: H.S Samra
Image Compression Techniques: H.S Samra
Image Compression Techniques: H.S Samra
49 www.ijctonline.com
ISSN: 2277–3061 (online) International Journal of Computers & Technology
Volume 2 No.2 April 2012
Lossless image compression techniques allow the exact original several subintervals, which sizes are proportional to the current
data to be reconstructed from the compressed data. Lossless probability of the corresponding symbols of the alphabet.
compression is used in cases where it is important that the
original and the decompressed data be identical. Compression 3.1.1.2 LZW Encoding
ratio is low. Examples are executable programs, text documents, Lempel Ziv Welch encoding is an example of a category of
and source code. Some image file formats, like PNG or GIF, use algorithms called dictionary-based encoding. The idea is to
only lossless compression. Following techniques (Figure B) are create a dictionary (a table) of strings used during the
included in lossless compression. communication session. If both the sender and the receiver have
a copy of the dictionary, then previously-encountered strings can
be substituted by their index in the dictionary to reduce the
Lossless Compression Techniques amount of information transmitted.
3.1.1.3 Predictive Encoding
Statistical estimation procedure where future random variables
are estimated/predicted from past and present observable
Run Length Statistical Predictive Bit plane random variables. The lossless differential pulse code
Encoding Encoding Encoding Encoding modulation (DPCM) technique is the most common type of
Statistical lossless predictive coding. In the lossless DPCM scheme, each
Figure 3: Taxonomy of Lossless Compression Techniques
Encoding pixel value (except at the boundaries) of the original image is
o
3.1.1Run Length Encoding first predicted based on its neighbors to get a predicted image.
ding
Run-length encoding is probably the simplest method of Then the difference between the actual and the predicted pixel
compression .It is very useful in case of repetitive data. This values is computed to get the differential or residual image. The
technique replaces sequences of identical symbols (pixels), residual image will have a much less dynamic range of pixel
called runs by shorter symbols. The general idea behind this values. This image is then efficiently encoded using Huffman
method is to replace consecutive repeating occurrences of a coding.
symbol by one occurrence of the symbol followed by the 3.1.1.4Bit Plane Encoding
number of occurrences
In most images the neighboring pixels are correlated. That
means the values of the neighboring pixels differ by small
amounts. They can be captured by the representation of pixel
Original data BBBBAAAAANNNNLLLLLL
values in gray code so that the values of neighboring bits in the
Compressed Data bit planes are similar. This makes the individual bit planes. Each
B4A6N4L7 of the bit planes can then be efficiently coded using a lossless
Figure 4: Run Length encoding overview technique. So it is based on decomposing a multilevel image
into a series of binary images and compressing each binary
3.1.1.1Statistical Encoding image.
3.1.1.2Huffman Encoding 3.2 Lossy Techniques
Huffman code is a prefix code. This mean that the code of any
Lossy compression works very differently. These programs
symbol is not prefix of the code of any other symbol. The
principle is to use lower number of bits to encode the data that
occurs more frequently. Huffman coding assigns shorter codes Lossy Compression Techniques
to the symbols that occurs more frequently and longer codes to
that those occurs less frequently. Codes are stored in code book
which may be constructed for each image. Following steps are
used to encode image:
1. Divide image into 8*8 blocks Transform Sub-band Block Truncation
2. Each block is a symbol to be coded. Encoding Encoding Encoding
3. Compute Huffman codes for set of block.
4. Encode block accordingly.
3.1.2.2 Arithmetic Coding
Unlike Huffman coding, arithmetic coding doesn´t use a discrete Vector Fractal Predictive
number of bits for each symbol to compress. the whole data Quantization Encoding Encoding
sequence is coded with a single code. Thus, the correlation
between neighboring pixels is exploited. The biggest drawback Figure 5: Taxonomy of Lossy Compression Techniques
of the arithmetic coding is it´s low speed since of several needed
multiplications and divisions for each symbol. The main idea simply eliminate "unnecessary" bits of information, tailoring the
behind arithmetic coding is to assign to each symbol an interval. file so that it is smaller. This type of compression is used a lot
Starting with the interval [0...1), each interval is divided in for reducing the file size of bitmap pictures, which tend to be
fairly bulky. This may examine the color data for a range of
50 www.ijctonline.com
ISSN: 2277–3061 (online) International Journal of Computers & Technology
Volume 2 No.2 April 2012
pixels, and identify subtle variations in pixel color values that usually the mean of the pixel values in the block. Then a bitmap
are so minute that the human eye/brain is unable to distinguish of the block is derived by replacing all pixels whose values are
the difference between them. The algorithm may choose a greater than or equal (less than) to the threshold by a 1 (0). Then
smaller range of pixels whose color value differences fall within for each segment in the bitmap, the reconstruction value is
the boundaries of our perception, and substitute those for the determined. This is the average of the values of the
others. Lossy compression framework shown in figure 6. corresponding pixels in the original block.
51 www.ijctonline.com
ISSN: 2277–3061 (online) International Journal of Computers & Technology
Volume 2 No.2 April 2012
5. REFERENCES
[1] Majid Rabanni, Paul W. Jones Volume TT7. Digital Image
Compression Techniques.
[2] Subramanya A, “Image Compression Techniques
“.Potentials IEEE, Vol.20, Issue 1, Feb-March 2001.
[3] Ming Yang & Nikolaos Bourbakis ,“An Overview Of
Lossless Digital Image Compression Techniques,” Circuits
& Systems, 2005 48th Midwest Symposium vol. 2 IEEE ,7
– 10 Aug, 2005.
[4] Doaa Mohammed ,Fatma Abou-Chadi. “Image
Compression using Block Truncation Coding”. JSAT
February edition 2011.
[5] David H. Kil and Fances Bongjoo Shin, “ Reduced
Dimension Image Compression And its
applications,”Image Processing, 1995, Proceedings,
International Conference,Vol. 3 , Oct.,1995.
[6] C.K. Li and H.Yuen, “A High Performance Image
Compression Technique For Multimedia Applications,”
IEEE Transactions on Consumer Electronics, Vol. 42,
no. 2, 2 May 1996.
[7] Sindhu M, Raj Kamal R , “ Images and Its Compression
Techniques” , International Journal of Recent Trends in
Engineering , Vol 2,No.4, November 2009.
[8] K. Sayood, Introduction to Data Compression (2nd
edition), Morgan-Kaufmann, 2000.
52 www.ijctonline.com