Digital Image Compression
Digital Image Compression
100658 Faculty of Engineering and Technology Mody Institute of Technology and Science, Lakshmangarh
Image
compression reduces the number of bits required to represent an image Digital Image is a 2-D array of pixels Inherently very Large in size Driving factors behind image compression
To
Original Image
decompress
Coding Redundancy
Data used to represent image is utilized in an optimal manner Coding is reversible
Spatial Redundancy
Also called Interpixel Redundancy Adjacent pixel values tend to be highly correlated
Lossless
Compression
Error free compression Original data can be recovered completely Make use of coding redundancy and inter-pixel redundancy Medical imaging , Space images ,Technical drawings etc
Lossy
Compression
Original data is approximated Less than perfect Advantage is higher compression Photographic images
Amount
of information I in a symbol of occurring probability p : I = log2(1/p) information per symbol is called entropy H
Average
Objective
fidelity criteria
the input image and the resulting compressed (then decompressed) image
Subjective
fidelity criteria
Popular
techniques for removing coding redundancy Assigns fewer bits to symbols that appear more often and more bits to the symbols that appear less often Efficient when occurrence probabilities vary widely Huffman codebook from the set of symbols and their occurring probabilities Huffman codes satisfies the prefix-condition No codeword is a prefix of another codeword Uniquely decodable
Arithmetic coding yields better compression Entire sequence of source symbols is assigned a single arithmetic code word
Essentially encode probability Can represent symbols using < 1 bits (cf. Huffman coding -requires at least 1 bit per symbol) Disadvantage
Slower than Huffman coding Random access is difficult
Energy Compaction Property Has fast implementation DCT applied to blocks of image pixels (8x8 or 16x16) Decorrelated Coefficients (DC & AC coefficients) DCT coefficients in each block are thresholded Remaining coefficients are quantized
Thresholding and quantization achieved by using quantization matrix Each coefficient divided by QM element and then rounded
DC(0,0) coefficient - DPCM encoder (lossless) AC coefficients: scanned in a ZigZag fashion, starting at (0,0) run length encoder, forming symbols (run, level)pair AC & DC coefficients are applied to entropy coder, e.g. Huffman
(a) Coder
(b) Decoder
Wavelet is a transform just like Fourier, DCT etc Achieves better quality and compression ratio Better matched to the HVS characteristics Wavelet is applied on an image as a whole unlike DCT Good for natural images Pack most of the visual information in few coefficients (Energy Compactness) Input signal is filtered into lowpass and highpass components through analysis filters Spectrum of the input data is decomposed into a set of band limited components, which is called subbands
3-level Decomposition
Its a lossy compression, which means data is discarded when the file is compressed.
Wavelet
coding is used Offers both lossy and lossless compression in the same file stream Higher compression ratios for lossy compression Display images at different resolutions and sizes from the same image file Consequence of using Wavelets It has Region Of Interest (ROI) capability JPEG 2000 is superior to JPEG in the area of error resilience
The
basic concept of image compression is to achieve minimum size of data to provide easy storage and transmission. Lossless image compression provides no loss to retrieved image (unlike lossy), these lossless techniques are also been used in lossy for better compression. DCT based image compression standard JPEG and JPEG2000 is based on DWT. JPEG 2000 standard intends to compliment and not to replace the current JPEG standards.
[1]
[2]
[3]
Gonzalez R. and Richard E. Woods, Digital Image Processing, Pearson Prentice Hall Publications, 3rd edition,2009. M. Eskicioglu, P. S. Fisher, Image Quality Measures and Their Performance, IEEE Transactions on Communications, Vol. 43, No. 12, December 1995, pp. 2959-2965. G. K. Wallace, The JPEG Still Picture Compression Standard, Communication of the ACM, Vol. 34, No. 4, 1991, pp. 30-44.