Image Compression and Decompression using Adaptive Interpolation



Similar documents
JPEG Image Compression by Using DCT

Image Compression through DCT and Huffman Coding Technique

Video compression: Performance of available codec software

Hybrid Lossless Compression Method For Binary Images

JPEG compression of monochrome 2D-barcode images using DCT coefficient distributions

Sachin Patel HOD I.T Department PCST, Indore, India. Parth Bhatt I.T Department, PCST, Indore, India. Ankit Shah CSE Department, KITE, Jaipur, India

Figure 1: Relation between codec, data containers and compression algorithms.

Conceptual Framework Strategies for Image Compression: A Review

3. Interpolation. Closing the Gaps of Discretization... Beyond Polynomials

A NEW LOSSLESS METHOD OF IMAGE COMPRESSION AND DECOMPRESSION USING HUFFMAN CODING TECHNIQUES

FCE: A Fast Content Expression for Server-based Computing

Study and Implementation of Video Compression Standards (H.264/AVC and Dirac)

Introduction to image coding

Lossless Grey-scale Image Compression using Source Symbols Reduction and Huffman Coding

A comprehensive survey on various ETC techniques for secure Data transmission

Algorithms for the resizing of binary and grayscale images using a logical transform

Comparison of different image compression formats. ECE 533 Project Report Paula Aguilera

Study and Implementation of Video Compression standards (H.264/AVC, Dirac)

Keywords: Image complexity, PSNR, Levenberg-Marquardt, Multi-layer neural network.

Introduction. Chapter 1

DATA RATE AND DYNAMIC RANGE COMPRESSION OF MEDICAL IMAGES: WHICH ONE GOES FIRST? Shahrukh Athar, Hojatollah Yeganeh and Zhou Wang

Computer Networks and Internets, 5e Chapter 6 Information Sources and Signals. Introduction

Kriging Interpolation Filter to Reduce High Density Salt and Pepper Noise

Parametric Comparison of H.264 with Existing Video Standards

ADVANCED APPLICATIONS OF ELECTRICAL ENGINEERING

PERFORMANCE ANALYSIS OF HIGH RESOLUTION IMAGES USING INTERPOLATION TECHNIQUES IN MULTIMEDIA COMMUNICATION SYSTEM

AN OPTIMIZED BLOCK ESTIMATION BASED IMAGE COMPRESSION AND DECOMPRESSION ALGORITHM

Performance Evaluation of Online Image Compression Tools

An Experimental Study of the Performance of Histogram Equalization for Image Enhancement

Using fractal compression scheme to embed a digital signature into an image

How To Fix Out Of Focus And Blur Images With A Dynamic Template Matching Algorithm

1. Redistributions of documents, or parts of documents, must retain the SWGIT cover page containing the disclaimer.

Performance Analysis and Comparison of JM 15.1 and Intel IPP H.264 Encoder and Decoder

Secured Lossless Medical Image Compression Based On Adaptive Binary Optimization

Introduction to Medical Image Compression Using Wavelet Transform

DYNAMIC DOMAIN CLASSIFICATION FOR FRACTAL IMAGE COMPRESSION

Personal Identity Verification (PIV) IMAGE QUALITY SPECIFICATIONS FOR SINGLE FINGER CAPTURE DEVICES

ANALYSIS OF THE EFFECTIVENESS IN IMAGE COMPRESSION FOR CLOUD STORAGE FOR VARIOUS IMAGE FORMATS

Machine Learning and Data Mining. Regression Problem. (adapted from) Prof. Alexander Ihler

Analecta Vol. 8, No. 2 ISSN

Redundant Wavelet Transform Based Image Super Resolution

HSI BASED COLOUR IMAGE EQUALIZATION USING ITERATIVE n th ROOT AND n th POWER

Modelling, Extraction and Description of Intrinsic Cues of High Resolution Satellite Images: Independent Component Analysis based approaches

A Comparative Study of the Pickup Method and its Variations Using a Simulated Hotel Reservation Data

An Application of Visual Cryptography To Financial Documents

Sachin Dhawan Deptt. of ECE, UIET, Kurukshetra University, Kurukshetra, Haryana, India

SCIENTIFIC WORKING GROUP ON IMAGING TECHNOLOGIES (SWGIT)

Admin stuff. 4 Image Pyramids. Spatial Domain. Projects. Fourier domain 2/26/2008. Fourier as a change of basis

PIXEL-LEVEL IMAGE FUSION USING BROVEY TRANSFORME AND WAVELET TRANSFORM

QUANTIZED PRINCIPAL COMPONENT ANALYSIS WITH APPLICATIONS TO LOW-BANDWIDTH IMAGE COMPRESSION AND COMMUNICATION. D. Wooden. M. Egerstedt. B.K.

MATLAB-based Applications for Image Processing and Image Quality Assessment Part II: Experimental Results

STUDY OF MUTUAL INFORMATION IN PERCEPTUAL CODING WITH APPLICATION FOR LOW BIT-RATE COMPRESSION

The Image Deblurring Problem

Performance Analysis of medical Image Using Fractal Image Compression

Low Contrast Image Enhancement Based On Undecimated Wavelet Transform with SSR

ANALYSIS OF THE COMPRESSION RATIO AND QUALITY IN MEDICAL IMAGES

Accurate and robust image superresolution by neural processing of local image representations

An Energy-Based Vehicle Tracking System using Principal Component Analysis and Unsupervised ART Network

A Simple Feature Extraction Technique of a Pattern By Hopfield Network

Resolution Enhancement of Photogrammetric Digital Images

An introduction to OBJECTIVE ASSESSMENT OF IMAGE QUALITY. Harrison H. Barrett University of Arizona Tucson, AZ

Using Linear Fractal Interpolation Functions to Compress Video. The paper in this appendix was presented at the Fractals in Engineering '94

Web Graph Visualizer. AUTOMATYKA 2011 Tom 15 Zeszyt Introduction. Micha³ Sima*, Wojciech Bieniecki*, Szymon Grabowski*

A Novel Method to Improve Resolution of Satellite Images Using DWT and Interpolation

Component Ordering in Independent Component Analysis Based on Data Power

How to Send Video Images Through Internet

Canny Edge Detection

Choosing a digital camera for your microscope John C. Russ, Materials Science and Engineering Dept., North Carolina State Univ.

ENG4BF3 Medical Image Processing. Image Visualization

MassArt Studio Foundation: Visual Language Digital Media Cookbook, Fall 2013

Assessment of Camera Phone Distortion and Implications for Watermarking

How To Improve Performance Of The H264 Video Codec On A Video Card With A Motion Estimation Algorithm

Information, Entropy, and Coding

Volume 2, Issue 12, December 2014 International Journal of Advance Research in Computer Science and Management Studies

A VIDEO COMPRESSION TECHNIQUE UTILIZING SPATIO-TEMPORAL LOWER COEFFICIENTS

MMGD0203 Multimedia Design MMGD0203 MULTIMEDIA DESIGN. Chapter 3 Graphics and Animations

Clustering Digital Data by Compression: Applications to Biology and Medical Images

Building an Advanced Invariant Real-Time Human Tracking System

Image Authentication Scheme using Digital Signature and Digital Watermarking

How To Encrypt Data With A Power Of N On A K Disk

COMPRESSION OF 3D MEDICAL IMAGE USING EDGE PRESERVATION TECHNIQUE

Bildverarbeitung und Mustererkennung Image Processing and Pattern Recognition

Bandwidth Adaptation for MPEG-4 Video Streaming over the Internet

In the two following sections we separately consider hardware and software requirements. Sometimes, they will be offered for sale as a package.

CHAPTER 3: DIGITAL IMAGING IN DIAGNOSTIC RADIOLOGY. 3.1 Basic Concepts of Digital Imaging

When is missing data recoverable?

A FUZZY LOGIC APPROACH FOR SALES FORECASTING

Video Coding Basics. Yao Wang Polytechnic University, Brooklyn, NY11201

Euler Vector: A Combinatorial Signature for Gray-Tone Images

Statistical Modeling of Huffman Tables Coding

Non-negative Matrix Factorization (NMF) in Semi-supervised Learning Reducing Dimension and Maintaining Meaning

1 Determinants and the Solvability of Linear Systems

INTERNATIONAL JOURNAL OF APPLIED ENGINEERING RESEARCH, DINDIGUL Volume 1, No 3, 2010

Lecture 5: Variants of the LMS algorithm

SOURCE SCANNER IDENTIFICATION FOR SCANNED DOCUMENTS. Nitin Khanna and Edward J. Delp

Nonlinear Iterative Partial Least Squares Method

Periodontology. Digital Art Guidelines JOURNAL OF. Monochrome Combination Halftones (grayscale or color images with text and/or line art)

A deterministic fractal is an image which has low information content and no inherent scale.

Colour Image Encryption and Decryption by using Scan Approach

IN SERVICE IMAGE MONITORING USING PERCEPTUAL OBJECTIVE QUALITY METRICS

Transcription:

Image Compression and Decompression using Adaptive Interpolation SUNILBHOOSHAN 1,SHIPRASHARMA 2 Jaypee University of Information Technology 1 Electronicsand Communication EngineeringDepartment 2 ComputerScience andengineering Department Waknaghat, Solan INDIA shipra.sharma@juit.ac.in, sunil.bhooshan@juit.ac.in Abstract: A simple and fast lossy compression and decompression algorithm for digital images is proposed. The method offers varying compression ratios(depending on dimensions of the image) and the acquired decompressed image is close to the original one. A selectable tradeoff between storage size and image quality is allowed, making it possible to adjust degree of compression. Compared to JPEG, it provides us better compression ratio. The suggested method does not restrict itself to any particular type of image. Key Words: Lossy image compression, Interpolation, Compression ratio 1 Introduction Storage and transmission of digital images has become more ofanecessitythan luxury these days. Hence the importance of image compression. It involves minimization of the number of information carrying units, pixels. This means that an image where adjacent pixels have almost the same values leads to spatial redundancy. Any lossy compression technique has to achieve high compression ratios while maintaining high visual quality of the decompressed image [1]. During the last two decades, various lossy and lossless image compression techniques have been developed as discussed in [2]. Lossy coding methods provide high compression ratios but do not recover the exact data. While lossless methods recover the exact original data but do not compress the image to such extent as the former method. So, high compression ratios can be achieved forimageswheresomelossofdatadoesnot matter. When a compressed image is decompressed to the original one, some distortion/loss is acceptable provided image quality is not compromised. This is because HVS (Human Visual System) does not detect slight changes in the image. The same has been elaborated in [2]. Therefore, pixel values may differ slightly in the original and decompressed images and HVS will not detect the difference between them [3]. One method as in [4] gives good results but is hardware dependent. Recently neural networks have also been used[5] for compressing images, but they have low compression rates. For implementing interpolation on an image it has to be considered in spatial domain. This has been dicussed and implemented in [6] for linear interpolation. Various approaches exist in literature which propose interpolation techniques for perceptually motivated coding applications [7], [8] and [9]. Ourpurposeinthispaperwillbetodiscuss possible algorithm for compressing a still digital image and then acquiring back the original image from the compressed one. We use non-linear interpolation to reconstruct the original image from the compressed one. The proposed decompression algorithm can also be universally used to enlarge any given image. We then compare our method with JPEG format. Therestofthepaperisorganizedasfol- ISSN: 1790-5117 254 ISBN: 978-960-474-054-3

Figure 1: Partially Magnified Image lows. In section 2 the compression and decompression methods are proposed. In section 3 some computational results will show that our proposed method indeed produces good image quality. Discussion and conclusionwill follow in section4. Figure 2: Image Representation 2 Procedure The procedure is outlined for grayscale images but may be extended to colored images. Theimageisconsiderdtobeasmoothfunctionofxand y,eventhoughitmaynotseem so visually. Consider a b bit grayscale image of size m n which is to be compressed. Since we are considering b bits therefore gray level values, ofthe pixelin this image, will range from 0 to 2 b 1. Here 0 represents black and 2 b 1 represents white and similarly intermediate values represent the transition from black to white. 2.1 Compression To compress the image we proceed in the following manner. We start from the first pixeloftheimage andselectothereightadjacent pixels such that a square is formed. Thezoomedin pixelsin Figure1showhow asetisformed. Toformsuchsets(squares)wefirstcheck whethermand n are divisible by 3. If this is not the case, then zero padding is done so that m and n become divisible by 3. This padding may lead to some error which will be removed when original image is acquired back after decompression. The image is then divided into non-overlapping squares and no pixel is missed as shown by original image in Figure 2. The center pixel from each Figure 3: Image (in matrix form) setischosenandanewimageisformedusing these pixels. Consider an Image in matrix form which isofsize(1024,1024). Thestartingpixelisat position (1, 1). Figure 3 represents a part of this matrix. To compress it by the described method we first check whether 1024 is divisibleby3.asitisnot,wepadtheimageby2 rows and 2 columns. The squares (sets) are formed starting from the first pixel. The center pixels(boundaries highlighted) in Figure 3areselectedandstoredinanewmatrix,say N shownin Figure 4. As can be seenin Figure 3 pixel values at position(2,2),(2,5),(5,2) becomes pixel values at position (1,1), (1,2), (2,1) respectively in Figure 4. Similarly, the whole image is compressed. Figure 4: Compressed Matrix, N ISSN: 1790-5117 255 ISBN: 978-960-474-054-3

G n Grayvalue, G x p or y q Position, ξ Figure 5: Pixel Representation On Coordinate System 2.1.1 Variants of Compression The above method can be applied for different compression ratios. Keeping in the veinofthings,oneoutofeveryfour,sixteen, twentyfivepixelsandsooncanbechosenso that, different compression ratios on images of different sizes can be obtained. 2.2 Decompression This method involves application of second order interpolation over the compressed image. For this, first let us discuss about the information given by pixels. Any pixel in the image has two values. First is its position(x,y)intheimageandsecondisitsgray value G at that position. Figure 5 shows how a n th pixel which is at position (x p,y q ) and has gray value G n, can be plotted in this coordinate system. As can be seen in the Figure 5, we plot x p or y q ontheξ axis dependingonwhetherwe aremovinginxor ydirection(intheimage) respectivelyandong axisweplotthegray value G n. Assuming that compressed image is of size (m,n ) and starts from (1,1), let us implement this decompression method considering image as matrix: 1. Weacquirethefirstpixel,P 1,whichisat position(1, 1) in the compressed image. 2. The next pixels chosen are P 2 and P 3 which are at position (1,2) and (1,3) in the compressed image, considering we are moving in x direction. 3. Obtain the gray values of P 1, P 2 and P 3 which are G 1,G 2 and G 3 respectively. 4. Figure 2 shows us that originally two pixels were present between any two given adjacent pixels of compressed image. Interpolate two pixels between P 1 and P 2 and two between P 2 and P 3 as follows: Figure6depictsthepositionofP 1, P 2 and P 3 onξv/s G axis. P 1 is at (1,G 1 )andp 2 isat((1+3),g 2 )(leavingpositionsoftwopixels)onthis coordinatesystemandsimilarlyp 3 is at((1+6),g 3 ). The second order curve passing through these three points is 18G = (G 1 2G 2 +G 3 )ξ 2 + ( 11G 1 +16G 2 5G 3 )ξ + 28G 1 14G 2 +4G 3 (1) Itis depictedin Figure6. Use Equation (1) to calculate values of the four interpolated pixels, say IP 1, IP 2, IP 3 and IP 4 which are at position 2, 3, 5 and 6 respectively, onξ axis ( refer Figure 6). IG 1, IG 2, IG 3 and IG 4 are the calculatedgrayvaluesofip 1,IP 2,IP 3 andip 4 respectively. StoreG 1,IG 1,IG 2,G 2,IG 3,IG 4 and G 3 inanewmatrixatpositionscorresponding to the pixel s position in the decompressed image, i.e., at (1,1), (1,2), (1,3), (1,4), (1,5), (1,6) and(1,7). 5. Acquire next two pixels in the compressed image, such that no pixel is missed, in the x direction as in Step 1 and2. RepeatSteps3to5untilthewhole image is decompressed in this direction. 6. Repeat Steps 1 to 5 to decompress the image in y direction. 7. When the complete compressed image is decompressed in both the directions, render the reconstructed image. Tomaketheabovestepsclearletusconsider the compressed matrix of Figure 4. Webeginwithtakingfirstthreepixels(1,1), (1,2) and (1,3). As we are moving horizontallywemark1,4, 7onξ axisand176, 176 ISSN: 1790-5117 256 ISBN: 978-960-474-054-3

Grayvalue, G G 1 G 3 G 2 P 1 P 2 P 3 IP 1 IP 2 IP 3 IP 4 Interpolated Pixels Figure 9: Final Decompressed Matrix 1 2 3 4 5 6 7 Position, ξ Figure 6: Derived Curve Figure 10: Complete Original Image Figure 8: Horizontally Decompressed Matrix and193ong axisrespectivelyforthethree points. Using this the second order equation is derived. We find four new points on this curvecorrespondingtovaluesξ 2 = 2,ξ 3 = 3, ξ 5 = 5 andξ 6 = 6 onξ axis. The values come out to be 174, 174, 180 and 185. These fourvaluesareputinanewmatrixasshown by dashedarrowsin Figure7. When this procedure is continued in this direction on the whole compressed matrix the resultant matrix obtained is as shown in Figure 8. Then the same method is repeated verticallyonmatrixoffigure8asshownbysolid arrows in Figure 7, we obtain the final matrix which is shown in Figure 9. This is the final decompressed image. Inthenextsectionweapplythismethod on some sample images. 3 Computational Results The proposed method is evaluated using some different type of images. The following sub-sections take on the various as- pects of applying the above algorithms. For each image the methodis compared to well known lossy JPEG compression format. 3.1 Various Compression Ratios Figure 10 shows an image of size 11.3MB. Various compression ratios are applied to it. Figure 11(a) depicts the cropped part of the original image. Figure 11(b), (c), (d), (e) show this part of the decompressed images with compression ratios of 4:1, 9:1, 16:1 and 25:1 respectively. This shows that our methods gives tolerable quality of decompressed imagetillacompressionratioof25:1forimage of this dimension. After that the image starts blurring to an unacceptable extent. TheTable 1 showsvariation in thecompression ratio with variation in the size of image. As can be observed, image size is directly proportional to compression ratio. 3.2 Results and Comparison For thoroughness of our comparison various types of grayscale images were used as test images. Two of them are shown in Figure 12. Figure 12(b) is used as it is natural image with varying textures. After applying compression algorithm on it, the resultant ISSN: 1790-5117 257 ISBN: 978-960-474-054-3

Image Size Figure 7: Compressed To Decompressed Recommended Compression Ratio* 1KB 700KB 4 : 1 700KB 5.5MB 9 : 1 5.5MB 9.5MB 16 : 1 9.5MB 14.5MB 25 : 1 > 14.5MB 36 : 1 Compressionratio = (UncompressedSize/CompressedSize) : 1 Table 1: Recommended Compression For Various File Size (a) (b) (c) (d) (e) Figure 11: Comparison Of Decompressed Images Obtained Using Non-linear Interpolation For Different Compression Ratios (a)part Of Original Image (b)4:1 (c)9:1 (d)16:1 (e)25:1 images are of size 1.1 MB and 343.1MB respectively. Figure 13 depicts the result of decompressing by our interpolation. As can be noticed the reconstructed images are almost the same and there is no perceptible loss of data and the compression is as high as 89% of the original image. Table 2 illustrates how our method fares with respect to JPEG. As can be seen, when the image size is large then our algorithm provides better compression then lossy JPEG. But for small images, to maintain the quality of decompressed image and so that minute details are not lost, our method compresses less. 3.3 Universal Decompression Algorithm The proposed decompression algorithm can also be used to enlarge any given grayscale image. Figure 14(a) shows cropped part of Lena image. When our reconstruction algorithm is applied on it we obtain the image ISSN: 1790-5117 258 ISBN: 978-960-474-054-3

Proceedings of the 8th WSEAS International Conference on SIGNAL PROCESSING, ROBOTICS and AUTOMATION Image Name Original Size JPEG Size Our Compression Method Image 1 Image 2 Image 3 32.2MB 27MB 469.4KB 2.1MB 1.1MB 98.3KB 568.5KB 474.5KB 101.1KB Table 2: Comparison with JPEG format (a) Baby (a) Baby(27 MB) (b) Garden (b) Garden(3 MB) Figure 13: Decompressed Images Figure 12: Original Images ISSN: 1790-5117 259 ISBN: 978-960-474-054-3

(a) original image (b) Enlarged Image Figure 14: Image Enlargement displayed in Figure 14 (b). 3.4 Statistical Assessment One of the methods for quality assessment is an error measurement that provides a high coorelation to perceptual image quality. As mathematical expression of human perception quality metric are not widely agreed upon, the Mean Square Error is still commonly used criterion. The average mean square error for an N M size image is defined as e 2 ms = 1 NM N i=1 M E(x i,j x i,j )2 (2) j=1 where x i,j and x represent the N M original and the reproduced images, respectively. i,j The average mean square error is often estimated by average sample mean-square error in the given image which is depicted in Equation 3. e 2 ms 1 NM N i=1 M (x i,j x i,j )2 (3) j=1 As our method is lossy, it leads to some degradation of the reconstructed image. As we can see in Figure 13 that visually this is not noticeable. Table 3 shows that even in terms of mean square error the degradation is within tolerable limits. 4 Conclusions This work documents a theoretical and computational investigation of compressing an image and then acquiring back the original image from it in a very simple manner. The paper proposes a compression algorithm which, while being computationally inexpensive, reduces the image size considerably. The decompression algorithm, based on interpolation, is then implemented on this decompressed image. The results suggest that fairly good compression is obtained in terms of qualitative context. The paper also suggests different ratios of compression whichcanbeapplieddependingonthesize of the original image to maintain the quality of decompressed image. Further on, the decompression algorithm can also be used to enlarge any grayscale image. The techniques suggested here are suitable for applications which cannot handle too many complex calculations, like mobile phones, without compromising on their quality. References: [1] V. Caselles, An axiomatic approach to image interpolation, in IEEE Transactions On Image Processing, vol. 7, no. 3, March 1998, pp. 376 386. [2] A. K. Jain, Image data compression: A review, in Proceedings Of The IEEE, Vol. 69, No.3, March 1981, pp.349 389. [3] S.G.MartaMarkandM.Grgic, Picture quality measures in image compression systems, in Eurocon, 2003, pp. 233 236. [4] L. T. W. Alexander P. Morgan and R. A. Young, A gaussian derivative based version of jpeg for image compression and decompression, in IEEE Transactions On Image Processing, vol. 7, no. 9, September, 1998, pp. 1311 1320. [5] I. Vilovic, An experience in image compression using neural networks, in 48th International Symposium ELMAR- 2006, Zadar, Crotia, 07-09, June 2006, pp. 95 98. [6] C. J. Rosenberg, A lossy image compression algorithm based on nonuniform sampling and interpolation of the image intensity surface, Master s thesis, Massachusetts Institute Of Technology, September 1990. ISSN: 1790-5117 260 ISBN: 978-960-474-054-3

Image Name Original Size Compressed Size MSE Image1 32.2MB 568.5KB 5.0122e 005 Image2 27MB 474.5KB 1.3241e 005 Image3 469.4KB 101.1KB 2.8355e 004 Table 3: Error Estimation [7] J. R. Cass, Image compression based on perceptual coding techniques, Ph.D. dissertation, Dept. Signal Theory Commun., UPC, Barcelona, Spain, March 1996. [8] H. L. Floch and C. Labit, Irregular image subsampling and reconstruction by adaptive sampling, in Proceeding of International Conference of Image Processing ICIP, vol. III, Laussanne, Switzerland, September 1996, pp. 379 382. [9] X. Ran and N. Favardin, A perceptually motivated three-component image model. part ii: Applications to image compression, in IEEE Transactions Image Processing, vol. 4, 1995, pp. 430 447. ISSN: 1790-5117 261 ISBN: 978-960-474-054-3