A Method for Lossless Compression of Images

Similar documents
Lossless Image Compression having Compression Ratio Higher than JPEG

Efficient Image Compression of Medical Images Using the Wavelet Transform and Fuzzy c-means Clustering on Regions of Interest.

MRT based Fixed Block size Transform Coding

MRT based Adaptive Transform Coder with Classified Vector Quantization (MATC-CVQ)

Dictionary Based Compression for Images

CHAPTER 4 REVERSIBLE IMAGE WATERMARKING USING BIT PLANE CODING AND LIFTING WAVELET TRANSFORM

CHAPTER 6. 6 Huffman Coding Based Image Compression Using Complex Wavelet Transform. 6.3 Wavelet Transform based compression technique 106

IMAGE COMPRESSION USING HYBRID QUANTIZATION METHOD IN JPEG

AN ANALYTICAL STUDY OF LOSSY COMPRESSION TECHINIQUES ON CONTINUOUS TONE GRAPHICAL IMAGES

Image and Video Coding I: Fundamentals

A Image Comparative Study using DCT, Fast Fourier, Wavelet Transforms and Huffman Algorithm

CMPT 365 Multimedia Systems. Media Compression - Image

Topic 5 Image Compression

Application of Daubechies Wavelets for Image Compression

Image compression. Stefano Ferrari. Università degli Studi di Milano Methods for Image Processing. academic year

Multimedia Retrieval Ch 5 Image Processing. Anne Ylinen

A Novel Image Transform Based on Potential field Source Reverse for Image Analysis

Use of Local Minimization for Lossless Gray Image Compression

ISSN (ONLINE): , VOLUME-3, ISSUE-1,

Image and Video Coding I: Fundamentals

7.5 Dictionary-based Coding

Enhancing the Image Compression Rate Using Steganography

Improving LZW Image Compression

COLOR IMAGE COMPRESSION USING DISCRETE COSINUS TRANSFORM (DCT)

A Combined Encryption Compression Scheme Using Chaotic Maps

DIFFERENTIAL IMAGE COMPRESSION BASED ON ADAPTIVE PREDICTION

Block-Matching based image compression

Medical Image Compression using DCT and DWT Techniques

A COMPRESSION TECHNIQUES IN DIGITAL IMAGE PROCESSING - REVIEW

University of Mustansiriyah, Baghdad, Iraq

A Novel Field-source Reverse Transform for Image Structure Representation and Analysis

Image Compression with Function Trees

Image coding and compression

ROI Based Image Compression in Baseline JPEG

Research Article Does an Arithmetic Coding Followed by Run-length Coding Enhance the Compression Ratio?

VC 12/13 T16 Video Compression

IMAGE COMPRESSION. Chapter - 5 : (Basic)

Image Compression Algorithm and JPEG Standard

Perceptual Coding. Lossless vs. lossy compression Perceptual models Selecting info to eliminate Quantization and entropy encoding

VIDEO SIGNALS. Lossless coding

FRACTAL IMAGE COMPRESSION OF GRAYSCALE AND RGB IMAGES USING DCT WITH QUADTREE DECOMPOSITION AND HUFFMAN CODING. Moheb R. Girgis and Mohammed M.

Image Compression Using K-Space Transformation Technique

A New Lossy Image Compression Technique Using DCT, Round Variable Method & Run Length Encoding

Keywords : FAX (Fascimile), GIF, CCITT, ITU, MH (Modified haffman, MR (Modified read), MMR (Modified Modified read).

15 Data Compression 2014/9/21. Objectives After studying this chapter, the student should be able to: 15-1 LOSSLESS COMPRESSION

Multimedia Signals and Systems Still Image Compression - JPEG

Using Shift Number Coding with Wavelet Transform for Image Compression

Cosine Transform Priors for Enhanced Decoding of Compressed Images.

ECE 533 Digital Image Processing- Fall Group Project Embedded Image coding using zero-trees of Wavelet Transform

Wireless Communication

Lossless Compression Algorithms

HYBRID TRANSFORMATION TECHNIQUE FOR IMAGE COMPRESSION

Bi-Level Image Compression

Comparison between Various Edge Detection Methods on Satellite Image

IMAGE COMPRESSION. Image Compression. Why? Reducing transportation times Reducing file size. A two way event - compression and decompression

Key words: B- Spline filters, filter banks, sub band coding, Pre processing, Image Averaging IJSER

Volume 2, Issue 9, September 2014 ISSN

IMAGE COMPRESSION TECHNIQUES

Index. 1. Motivation 2. Background 3. JPEG Compression The Discrete Cosine Transformation Quantization Coding 4. MPEG 5.

Biomedical signal and image processing (Course ) Lect. 5. Principles of signal and image coding. Classification of coding methods.

Wavelet Based Image Compression, Pattern Recognition And Data Hiding

A Reversible Data Hiding Scheme for BTC- Compressed Images

A Comparative Study of DCT, DWT & Hybrid (DCT-DWT) Transform

PSD2B Digital Image Processing. Unit I -V

Image Filtering with MapReduce in Pseudo-Distribution Mode

Statistical Image Compression using Fast Fourier Coefficients

Several pattern recognition approaches for region-based image analysis

A Very Low Bit Rate Image Compressor Using Transformed Classified Vector Quantization

( ) ; For N=1: g 1. g n

Computer Vision 2. SS 18 Dr. Benjamin Guthier Professur für Bildverarbeitung. Computer Vision 2 Dr. Benjamin Guthier

Analysis of Parallelization Effects on Textual Data Compression

APPLICATION OF FLOYD-WARSHALL LABELLING TECHNIQUE: IDENTIFICATION OF CONNECTED PIXEL COMPONENTS IN BINARY IMAGE. Hyunkyung Shin and Joong Sang Shin

Robert Matthew Buckley. Nova Southeastern University. Dr. Laszlo. MCIS625 On Line. Module 2 Graphics File Format Essay

Mesh Based Interpolative Coding (MBIC)

REVIEW ON IMAGE COMPRESSION TECHNIQUES AND ADVANTAGES OF IMAGE COMPRESSION

Fundamentals of Video Compression. Video Compression

Image Compression - An Overview Jagroop Singh 1

IMAGING. Images are stored by capturing the binary data using some electronic devices (SENSORS)

Intra-Mode Indexed Nonuniform Quantization Parameter Matrices in AVC/H.264

A combined fractal and wavelet image compression approach

Image denoising in the wavelet domain using Improved Neigh-shrink

An Analytical Review of Lossy Image Compression using n-tv Method

Review and Implementation of DWT based Scalable Video Coding with Scalable Motion Coding.

Welcome Back to Fundamentals of Multimedia (MR412) Fall, 2012 Lecture 10 (Chapter 7) ZHU Yongxin, Winson

A reversible data hiding based on adaptive prediction technique and histogram shifting

Lecture 16 Perceptual Audio Coding

JPEG2000 Image Compression Using SVM and DWT

Document Image Binarization Using Post Processing Method

Chapter 1. Digital Data Representation and Communication. Part 2

A Miniature-Based Image Retrieval System

Lecture 12: Compression

An introduction to JPEG compression using MATLAB

Three Dimensional Motion Vectorless Compression

FRAGILE WATERMARKING USING SUBBAND CODING

Multimedia Communications. Transform Coding

EE67I Multimedia Communication Systems Lecture 4

JPEG: An Image Compression System

A NEW ENTROPY ENCODING ALGORITHM FOR IMAGE COMPRESSION USING DCT

AUDIOVISUAL COMMUNICATION

Wavelet Transform (WT) & JPEG-2000

Transcription:

A Method for Lossless Compression of Images Zlatoliliya Ilcheva, Valeri Ilchev Abstract: Compression of Images is one of the most actual and dynamic developing fields of Informatics and Informational Technologies. The suggested method for lossless compression of images requires that the image is presented as a set of 256 image levels, which must contain piels from the initial image with identical intensity values. An algorithm containing 4 stages is applied to each level. Each stage of the algorithm is included depending on the satisfying of a criterion for closeness between the piels of the level. The method can work as lossless or as perceptually lossless depending on its settings. The method is universal and gives good results comparable to JPEG regarding images of different types and is open for further development at all stages. Key words: Lossy and lossless compression, image function, image level, criterion for piel closeness, straight and inverse cos-transformation. INTRODUCTION The paper is connected with one of the most actual and dynamic developing fields of Informatics and Informational Technologies. The image processing is already an integral part of the computer systems which work in a wide range of human activities like industry, medicine, banking, ecology, cartography, book publishing, geology, transport, criminalistics, military, aviation and space industry [1, 2, 4, 5]. Computer images have one essential disadvantage they need a huge amount of memory. This fact creates problems when image files are echanged as well as when libraries of images are created and worked with. The Internet offers a comfortable access to information from every point of the world but the capacity of the connection is too limited. Most users still use a standard telephone line and a 56 Kbps modem. The need for powerful image compression methods, which work fast enough on the contemporary hardware and preserve the quality of the compressed images is more sharply-felt than ever. DESCRIPTION Two types of methods for image compression eist lossy and lossless methods. Each of them has its preferred fields of application [1,3,7]. The goal of lossless image compression is to represent an image signal with the smallest possible number of bits without loss of any information. The decompressed image data should be identical both quantitatively (numerically) and qualitatively (visually) to the original compressed image. The methods of this type usually give compression factor between 1.5 and 3. In order to achieve higher compression factors, the so called perceptually lossless[1] compression methods attempt to remove redundant as well as perceptually irrelevant information; these methods require that the compressed and decompressed images be only visually, and not necessarily numerically, identical. In this case some loss of information is allowed as long as the recovered image is perceived to be identical to the original one. The method presented in this article may generally be considered as lossless. Depending on the requirements of the concrete application it can be set to work as perceptually lossless (and even as lossy). It is necessary to point out that in this paper only the main elements of the encoder will be discussed since the decoder performs the inverse operations of the encoder.

Let z=f(,y) is a function of the image, defined in the three-dimensional Euclidean space. Every piel of the image is specified in this space by the triad (,y,z), where and y are the coordinates of the piel in the plane (,y) and z is the intensity of the piel. So presented, in the three-dimensional space the image is a surface in which the height of each piel z is a number in the range (0,255).( As known, the number of the gray levels in the images is 256). In case of color image it is worked separately and identically on the three channels of the color model. Fig. 1 Let us assume that we have passed planes, parallel to the plane (,y) and perpendicular to the ais z of each of the levels of z (0 z 255). Thus we obtain 256 two-dimensional images and each of them contains piels of the initial image, which have one and the same intensity. In fact it is a way of image coding which is identical to the raster coding. The difference is that in raster coding the intensities of the piels following in raster order are saved, while in the suggested method arrays containing coordinates of the piels with constant intensity are saved. We introduce the term image level z (0 z 255) as a set of image piels with identical intensity. Each level of the image is processed separately with suggested method. The advantage is that the level contains information of black & white type and bit by bit representation of the data may be looked for. All levels of the image are obtained with the program. Each level is divided into areas of size 256256 piels. Algorithm is applied on each of these areas separately. At the beginning of the level record of 5 bytes is stored, indicating presence or absence of image piels in these biggest areas of the level. The number of these bytes may vary depending on the size of the images. The bits in these bytes are formed in the run of the algorithm. On each area 256256, a raster movement is performed, usually using a 1616 matri containing 16 inclusion matries 44. Each level is processed using an algorithm which contains 4 stages. Each stage is turned on, depending on the closeness between the piels of the level. It begins with looking for and compressing piels of biggest degree of closeness (stage 1) and ends with looking for and compressing piels of smallest degree of closeness (stage 4). The term degree of closeness in the discrete plane of the piels is formulated very generally as a presence of a definite minimum number of image piels in the 44 matri, without taking into account their location in this matri and as a presence of a definite minimum number of piels in the 1616 matri.

Stage 1. At this stage the so called runs are searched in every level of the image. We regard as a run a horizontal line of 3 or more piels following one after the other ( 3 or more horizontal piels with a zero space between them) [7]. The structure of the record after this stage is as follows: stage3 bytes for each run one byte for the and one for the y coordinate of the first piel of the run and one byte for the number of piels in the run. The piels, encoded at this stage are deleted from the image of the level. The second stage of the algorithm follows. Stage 2. At this stage well grouped piels (piels in compact groups) are searched from the area of the image. In the 256256 area a raster scanning using 1616 matri is performed. This matri contains 16 sub-matries 44. At this stage the criterion for closeness between the piels, i. e. the criterion for its including in the compressing algorithm, is that the matri 1616 should contain at least 3 sub-matries 44 with sufficient number of image piels. In our case this sufficient number is 4 piels. Considering this, the encoding of the image level is performed in the following way (Fig. 2): 2 bytes for the address of the upper left piel of the 1616 matri one for the and one for the y coordinate. 2 bytes describing the inner structure for this block follow. This structure reflects the position of the 44 sub-matries which contain 4 or more image piels. Two bytes for each 44 sub-matri if this kind follow successively. The other matries 44 which do not satisfy this condition are not encoded at this. (, Y) 2 bytes 2 bytes 2 bytes 2 bytes Y 0 0 0 1 0 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 1 0 1 0 0 1 0 0 0 0 1 0..... Fig. 2

The encoded piels at this stage are also deleted from the initial image. Stage 3. At this stage the piels with more smaller degree of closeness than these of the previous stages, the so called clouds of piels are processed. The piels are far one from another, but still satisfy the condition for compactness [2]. Here, again in the 256256 area a raster scanning is performed using a 1616 matri, which contains 16 sub-matries 44. The encoding of the image area is performed in the following way: (Fig. 3) (,Y ) 0 1 2 3 0 Y 0 1 2 3 0 0 1 2 3 0 Y 0 1 2 3 0 0 1 2 3 0 Y 0 1 2 3 0 2 bytes 4 bytes 4 4 4 4 4 4 Y 1 0 1 1 0 0 0 0 0 0 1 0 1 000100011101001111 0 0 0 1 1 0 001... 0 0 1 1 0 0 0 0 0 0 1 0 1 0 0 1 0 Y 0 0 Y 0 0 Y 0 0 Y 0 0 Y 0 0 Y 0 Fig. 3 2 bytes for an address of the upper left corner of the 1616 matri. 4 bytes for the structure of this matri follow. In a pair of bits in these 4 bytes in raster order the number image piels in the 44 matries is saved. Here (0,0) means 0 piels, (0,1) 1 piel, (1,0) 2 piels, (1,1) 3 piels. The records of the relative coordinates of the piels in the 44 sub-matries follow and we have for 0 and Y 0 of each piel two bits, i. e. 0 and Y 0 are relative addresses of the piels in the 44 matri. Each point is saved in one semibyte and the records follow sequentially without any separators. This relative address registration of the piels is possible due to the fact that the topological information for them is already encoded in the 4 structural bytes at the beginning of the record. Compression is evidently present when there are more than12 piels in the 1616 matri. The algorithm takes care for this number and when the condition for presence of at least 12 image piels is not satisfied, the piels in this area are processed at the net stage. It is necessary to note that in the 44 matries at stage 3 is not possible to have more than 3 piels since these matries are already encoded at the previous stage 2, i. e. there is no condition for grouping of piels in the 44 matries. The piels encoded at stage 3 of the algorithm are deleted from the processed area.

Stage 4. After the three stages of the algorithm in each of the image levels single piels with a higher degree of remoteness one from another remain. The single piels from each levels are projected again on the plane (,y) each with the value of its intensity, i. e. the rest-image, consisting only of single distant piels is processed as a matri of numbers in the range ( 0,255). These piels are arranged in an area with a structure byte per piel, following raster one after the other and without separators between them. A cos-transformation is performed on these piels. From theory is known [2,5] that the straight cos-transformation of the function I(n) is carried out by the following formula: N 2 πkn bk = [I(n).cos( )], N n= 1 N where: k= 0,1,2,, K; k is the number of the transformation coefficients; К- count of coefficients; n number of the piels; N count of all piels. This transformation is carried out in the encoder. The obtained coefficients are saved sequentially in an array and the coefficients with small values (i. e. the frequencies with small values of the amplitudes in the costransformation) are nullified. In our case, the empirically specified threshold t, under which the coefficients are nullified is 0,05. After the saving of the topology of the coefficients array, it is shortened by removing the null records. The reverse cos-transformation is carried out in the decoder using the formula: K b 0 πkn I(n) = + [bk.cos( )], 2 k = 1 N where b k,k = 0,1,2,..., K are the transformation coefficients The restoring of the compressed piels of the image can be lossless or perceptually lossless depending on the choice of the threshold parameter t. CONCLUSIONS AND FUTURE WORK Initially the method was programmed in MATLAB 6.0 (Math Works, Inc., USA)[6] environment and a vast number of eperiments on test and author images of different kinds were carried out. After a good work and universality was achieved at all stages it was programmed in Visual Basic 6.0. Some compression results are presented on Table 1(gray level test images) and Table 2 (black & white images). A comparison with (.jp2) file format is made.(the used program was Lura Wave Smart Compress 3.0).Here (.mle) is our file format and C is compression coefficient. Table 1 Image (.bmp) file (.jp2) file (.mle) file [KB] [KB] C [KB} C lena 66.616 38.754 1.72 44.042 1.51 barbara 263.224 152.756 1.72 149.362 1.76 baboon 263.224 197.819 1.33 121.505 2.17 boat 263.224 159.930 1.65 147.242 1.79 goldhill 263.224 158.807 1.66 124.226 2.12 peppers 263.224 143.303 1.84 155.621 1.69

Table 2 Image (.bmp) file (.jp2) file (.mle) file [KB] [KB] C [KB] C bw1 8.486 8.902 0.95 0.981 8.65 bw2 59.550 68.933 0.85 27.410 2.17 bw3 11.862 14.552 0.82 3.982 2.98 tet 662.968 882.082 0.75 393.075 1.69 The large number of eperiments allow us to make the following more important conclusions: 1.An important advantage of the method is its universality it gives a good compression on tet and black & white graphical images as well as on photo-images (gray-level images) and color images. 2. The method is especially good at images with many run-s (the tet and graphic images) as well as at gray level images with a concentration of piels on some gray-levels (with picks in the histogram). The method gives here better results than the traditional methods. 3. The method gives good possibilities for future development of some of the coding stages. Till the last stage it is completely lossless and it can be worked further on the criteria of closeness between the piels in the second and the third stage. 4. With the including of the last stage of the method cos-transformation the method increases significantly its possibilities regarding the degree of compression. Depending on the threshold parameter t, it could work as lossless or perceptually lossless. Naturally, the degree of compression is very different for these modes. 5. It is interesting to carry out a research how this method would work when level on the z ais are united in images of the black & white type. A source of information for the number of the levels, which are to be united, may possibly be the image histogram. The levels may be united uniformly or non-uniformly in the different parts of the interval (0, 255). These are some of the further work directions on the method. REFERENCES [1] Handbook of Image and Video Processing. (Ed. Al Bovik), Academic Press, 2000. [2] Jain A. K. Fundamentals of Digital Image Processing. Prentice-Hall. Int.Ed. Englewood Cliffs, New York,1989. [3] Moffat A., T. C. Bell, I. H. Witten. Lossless Compression for Tet and Images. University of Melbourne Australia, Dep. Of Comp.Science, Facsimile, Oct.1995. [4] Parker J. R. Algorithms for Image Processing and Computer Vision. John Wiley&Sons,Inc., 1997. [5] Pratt W., K. Digital Image Processing. John Wiley& Sons, 1978. [6] Redfern D., C. Campbell. The MATLAB5 Handbook. Springer-Verlag New York, Inc., 1998. [7] Salomon D. Data Compression. Springer, 1997. ABOUT THE AUTHORS Assoc. Prof. Zlatoliliya Ilcheva, PhD, Institute of Computer and Communication Systems, Bulgarian Academy of Sciences, Phone: (+359 2) 73 29 51 (et 119), Е-mail: zlat@agatha.iac.bg MSc. Valeri Ilchev, Institute of Information Technologies, Bulgarian Academy of Sciences, Phone: (+359 2 )70 75 86, E-mail: ilch@iinf.bas.bg