IJRIT International Journal of Research in Information Technology, Volume 2, Issue 4, April 2014, Pg: 20- 27

International Journal of Research in Information Technology (IJRIT)

www.ijrit.com

ISSN 2001-5569

Image Compression with Single and Multiple Linear Regressions Jumana Nahas1 and Anu P Varghese2 1

2

Mtech Student, Computer Science, Model Engineering College Ernakulam, Kerala, India [email protected]

Assistant Professor, Computer Science, Model Engineering College Ernakulam,, Kerala, India

Abstract Image compression is an important area of image processing applications. Digital image storage,transmission and retrieval requirements are much high due to the enormous amount of data present in the digital images. So there is always a need for efficient and fast image compression technique. Image compression can be broadly classified as lossy and lossless compression. In the proposed approach, a lossy compression method can be achieved by employing curve fitting technique on two tone digital image. The goal of this method is to not only focus on the compression ratio but also the recognizability of the image after reconstruction. In the curve fitting technique, the correlation present between the neighboring pixels can be exploited in 1D as well as 2D.

Keywords: Image Compression,Curve Fitting,Single Linear Regression,Multiple linear Regression.

1. Introduction With the growth of multimedia technology, the need for digital information increases dramatically. The requirement of digital images in various applications has grown tremendously. Still images are widely used in applications like medical and satellite images. Digital Images play a very important role for describing the detailed information. The key obstacle for many applications is the vast amount of data required to represent a digital image directly. The various processes of digitizing the images to obtain it in the best quality for the more clear and accurate information leads to the requirement of more storage space and better storage and accessing mechanism in the form of hardware or software[1]. Binary images (Bi-level images; Bi-Color images, Two- tone images or Monochrome images) have been widely used in image processing, such as facsimile, letters, map archives, digital libraries, fingerprint databases, and those documents that could not be recognized by OCR. In order to reduce the storage space of binary images, there are many researchers attempted to propose more efficient algorithms for binary image compression[3]. The goal of image compression is to exploit the correlation present in the image and reduce the dimensionality. The basic goal of image compression is to represent an image with minimum number of bits of an acceptable image quality. The amount of data transmitted through the Internet rises exponentially, and a large portion of that data comprises of images. Image compression offers ways to represent an image in a more compact way, so that images can be stored in a compact manner and can be Jumana Nahas,

IJRIT

20

IJRIT International Journal of Research in Information Technology, Volume 2, Issue 4, April 2014, Pg: 20- 27

transmitted faster. The image compression techniques are broadly classified into two categories depending whether or not an exact replica of the original image could be reconstructed using the compressed image[3]. These are: • •

Lossless Compression Lossy Compression

Lossless compression involves with compressing data which, when decompressed, will be an exact replica of the original data. In lossless compression techniques, the original image can be perfectly recovered form the compressed (encoded) image. These are also called noiseless since they do not add noise to the signal (image). It is also known as entropy coding since it use statistics/decomposition techniques to eliminate/minimize redundancy. Lossless compression is used only for a few applications with stringent requirements such as medical imaging. Run length encoding, Huffman encoding, LZW coding, Area coding are the techniques are included in lossless compression.[3] Lossy schemes provide much higher compression ratios than lossless schemes. Lossy schemes are widely used since the quality of the reconstructed images is adequate for most applications. By this scheme, the decompressed image is not identical to the original image, but reasonably close to it. Transformation coding, Vector quantization, Fractal coding, Block Truncation Coding, Sub band coding are the techniques used for lossy compression[3].

2. Proposed Method Curve fitting is the process of constructing a curve, or mathematical function, that has the best fit to a series of data points, possibly subject to constraints. Curve fitting can involve either interpolation, where an exact fit to the data is required, or smoothing, in which a smoothing function is constructed that approximately fits the data[2].A related topic is regression analysis, which focuses more on questions of statistical inference such as how much uncertainty is present in a curve that is fit to data observed with random errors. Fitted curves can be used as an aid for data visualization,to infer values of a function where no data are available, and to summarize the relationships among two or more variables. Extrapolation refers to the use of a fitted curve beyond the range of the observed data, and is subject to a degree of uncertainty since it may reflect the method used to construct the curve as much as it reflects the observed data. Lines and polynomial curves can be fitted to data points. A first degree polynomial equation is given by (1) This is a line with slope a. A line will connect any two points, so a first degree polynomial equation is an exact fit through any two points with distinct x co ordinates. The equation for a second order polynomial is (2) This will exactly fit a simple curve to three points. The equation for a third order polynomial is (3) This will exactly fit four points. The objective of curve fitting is to theoretically describe experimental data with a model and to find the parameters associated with this model. Regression analysis is the study of the relationship between one or several predictors and the response. To perform regression analysis on a dataset, a regression model is first developed. Then the best fit parameters are estimated using least square method. Finally, the quality of the model is assessed using one or more hypothesis tests. From a mathematical point of view, there are two basic types of regression: linear and nonlinear. A model where the fit parameters appear linearly in the Least Squares normal equations is know as a linear model, otherwise it is nonlinear. In many scientific experiments, the regression model has only one or two predictors, and the aim of regression is to fit a curve or a surface to the experimental data. So we may also refer to regression analysis as curve fitting or surface fitting. In the proposed system, a curve is fitted to the data in the digital image. Coefficients of the curve can be obtained either by Single Linear regression or Multiple Linear regression. In Single Linear regression,there Jumana Nahas,

IJRIT

21

IJRIT International Journal of Research in Information Technology, Volume 2, Issue 4, April 2014, Pg: 20- 27

will be one independent variable where as in Multiple Linear regression more than one independent variable exists. In Single Linear regression, correlation present between neighboring pixels are exploited horizontally only. In Multiple Linear regression, correlation present between neighboring pixels are exploited in both directions. Since regression is used to obtain response from one or more predictors,error will be introduced in the reconstruction procedure. The error introduced on reconstruction can be controlled by Mean Square Error and PSNR ratio. The PSNR ratio is commonly used to measure the quality of reconstruction in lossy compression. The Mean Square Error is given by

(4) The PSNR is defined as

(5) where MAXI is the maximum possible pixel value of the image. A larger number of PSNR implies a better image. Block Diagram of curve fitting is given by

2. 1 Image Compression using Single Linear Regression If an image can be expressed as Y ,then reconstructed image is , (6) where Xi,1, is ith location of pixel in each row, Ŷi is the value of the pixel in the position Xi,1,i=1....N the number of pixels and a0 , a1 are the parameters to be estimated. Mean Square Error is

(7) The equation of the image represents Linear Regression. For linear regression, coefficients can be solved by following equation

Jumana Nahas,

IJRIT

22

IJRIT International Journal of Research in Information Technology, Volume 2, Issue 4, April 2014, Pg: 20- 27

(8)

From the equation, a0 and a1 can be obtained. n represents the number of points in the reconstructed image. Reconstructed image can be obtained by (9) Algorithm for image compression using Single Linear Regression is given by

2. 2 Image Compression using Multiple Linear Regression If an image can be expressed as Y,then reconstructed image is (10) where Xi,1 and Xi,2 are the location of pixel for i=1....N and a0 , a1 , a2 are the parameters to be estimated. The image is divided into N x N blocks. The above equation represents multiple linear regression with independent variables being the indices's of the pixel. Our goal is to minimize the difference between original and reconstructed image. So mean square error in each block is minimized. That is (11)

For multiple linear regression, coefficients can be solved by following equation (12)

where Y is the pixel values represented as a column vector

Jumana Nahas,

IJRIT

23

IJRIT International Journal of Research in Information Technology, Volume 2, Issue 4, April 2014, Pg: 20- 27

(13)

X corresponds to location of n pixels given by

(14)

Coefficient matrix, A is given by

(15)

From the Coefficient matrix, reconstructed image is (16) where ε is the residual . Algorithm for image compression using Multiple Linear regression is given by

Jumana Nahas,

IJRIT

24

IJRIT International Journal of Research in Information Technology, Volume 2, Issue 4, April 2014, Pg: 20- 27

3. Results and Analysis This method achieves high compression ratio as well as good recognizability. The quality of compression techniques lies in achieving high compression as well as good visual quality. Both Single and Multiple Linear Regression produces images with good visual quality as well as high compression. The following outputs shows the quality of reconstructed image using Single Linear Regression

Fig.1 Input and Reconstructed Image using Single Linear Regression for image 'circles.png'

Jumana Nahas,

IJRIT

25

IJRIT International Journal of Research in Information Technology, Volume 2, Issue 4, April 2014, Pg: 20- 27

Fig.2 Input and Reconstructed Image using Single Linear Regression for image 'morph.bmp'

Fig.3 Input and Reconstructed Image using Single Linear Regression for image 'morph1.bmp' The following figure shows the output obtained by Multiple Linear Regression

Fig.4 Input and Reconstructed Image using Multiple Linear Regression for image 'circles.png'

Fig.5 Input and Reconstructed Image using Multiple Linear Regression for image 'morph.bmp'

Jumana Nahas,

IJRIT

26

IJRIT International Journal of Research in Information Technology, Volume 2, Issue 4, April 2014, Pg: 20- 27

Fig.6 Input and Reconstructed Image using Multiple Linear Regression for image 'morph1.bmp' From close observation,it is clear that more visual quality is for image compression using Multiple Linear Regression than Single Linear Regression. Compression achieved using Single and Multiple Linear Regression for the above input images are shown below Table 1.Compression achieved in Single and Multiple Linear Regression Image

Single Linear Regression

Multiple linear Regression

morph.bmp

86

88

circles.png

77

73

morph1.bmp 93 93 From the above table,it is clear that compression is achieved by reasonably well in both the methods .The compression achieved is almost equal in both the methods and comparison among them is understood in terms of the information present in the image. From the above examples, for the images with less transitions, Multiple Linear regression and the one more transitions ,Single Linear Regression achieves higher compression.

3. Conclusion Though the storage device price decreases and size increases, the storage requirements are still increasing as the present day images are of huge size. Since saving storage space and bandwidth are the major concerns, techniques that lead to small increase in compression ratio compared to the existing system is very important. In this work, image compression using single and multiple linear regression for two tone image is proposed to achieve higher compression and acceptable visual quality. Both Single and multiple linear Regressions achieve higher compression. During the compression process, some information is lost since curve fitting is an approximation of data only. This loss of information results in degradation in subjective quality of an image and increases the Mean Square Error. This made the algorithm a lossy compression technique.

References [1] Prof. Rajendra Kumar Patel, "An Efficient Image Compression Technique Based on Arithmetic Coding",International Journal of Advanced Computer Research, Vol. 2, No. 4, 2012 [2] Amar Majeed Butt and Rana Asif Sattar,"On Image Compression Using Curve Fitting", M.S. thesis, Computer Science, Blekinge Institute of Technology, Sweden, 2010 [3] Hao Sung and Wen-Yan Kuo, "A Skip-line with Threshold Algorithm for Binary Image Compression", International Congress on Image and Signal Processing, 2010, Vol.3

Jumana Nahas,

IJRIT

27

Image Compression with Single and Multiple Linear Regressions

Keywords: Image Compression,Curve Fitting,Single Linear Regression,Multiple linear Regression. 1. Introduction. With the growth of ... in applications like medical and satellite images. Digital Images play a very .... In the proposed system, a curve is fitted to the data in the digital image. Coefficients of the curve can be.

183KB Sizes 1 Downloads 257 Views

Recommend Documents

Image Compression with Single and Multiple Linear Regressions - IJRIT
Ernakulam, Kerala, India [email protected]. 2Assistant Professor, Computer Science, Model Engineering College. Ernakulam,, Kerala, India. Abstract.

Interactive Image Segmentation with Multiple Linear ...
Oct 20, 2011 - [12], snapping [5] and jet-stream [13] require the user to label the pixels near ...... have ||M1 − C1||F = 5.5164 and ||M2 − C2||F = 1.7321 × 104.

Fractal Image Compression
published by Microsoft Corporation, includes on one ... an iterated function system (IFS), [1]. Use this IFS .... from the fractal file is shown in Figure 3. In Fig-.

Single-Image Vignetting Correction
of feature classes in an image. There exist ... a certain class, a finer partitioning of the region can be ob- ..... Cambridge University Press, New York, NY, 1992.

Full Resolution Image Compression with ... - Research at Google
This paper presents a set of full-resolution lossy image compression ..... Computing z1 does not require any masked convolution since the codes of the previous.

Image Compression with Back-Propagation Neural ...
Dec 17, 2006 - of a straight and unconstrained codebook is a computationally intensive and the complexity grows exponentially with the block. Artificial Neural ...

Image processing using linear light values and other image ...
Nov 12, 2004 - US 7,158,668 B2. Jan. 2, 2007. (10) Patent N0.: (45) Date of Patent: (54). (75) ..... 2003, available at , 5.

Secure Accessibility to Multiple Services with Single ...
With the advent of distributed computing and its prevailing existence in the ... sectors like banking, insurance, e-Commerce and so on. .... and cloud computing.

Segmentation-based CT image compression
The existing image compression standards like JPEG and JPEG 2000, compress the whole image as a single frame. This makes the system simple but ...

Seemingly unrelated regressions with identical ...
for this set of reduced-form equations is the SUR and a question of interest is whether ... equation parameters which are obtained by maximizing the full-information joint ..... expressions for P12, P21, P22, one may verify that in general, Vp A2.

image compression using deep autoencoder - GitHub
Deep Autoencoder neural network trains on a large set of images to figure out similarities .... 2.1.3 Representing and generalizing nonlinear structure in data .

Example-based Image Compression - Research at Google
Index Terms— Image compression, Texture analysis. 1. ..... 1The JPEG2000 encoder we used for this comparison was Kakadu Soft- ware version 6.0 [10]. (a).

Single-Channel Power Supply Monitor with ... - Linear Technology
from the monitoring and control features of a power sup- ply manager, but most power supply manager ICs have more than one channel. In an application that ...

Single-Channel Power Supply Monitor with ... - Linear Technology
relying on the IDAC to be accurate, we have very good knowledge ... produced by Linear Technology®. ..... sures, so sensitivity is in degrees Centigrade per volt.

level-embedded lossless image compression
information loss, in several areas–such as medical, satellite, and legal imaging– lossless ..... tation of picture and audio information - progressive bi-level.

SOT-23 1kHz to 30MHz Oscillator with Single ... - Linear Technology
Single Resistor Frequency Set – Design Note 262. Andy Crofts. 07/01/ .... The most straightforward application for the LTC1799 is as a constant-frequency ...

Image Compression and the Discrete Cosine Transform ...
We are now ready to perform the Discrete Cosine Transform, which is accomplished by matrix multiplication. D : TMT r. 5. In Equation (5) matrix M is first multiplied on the left by the DCT matrix T from the previous section; this transforms the rows.

Interactive color image segmentation with linear ...
Jan 18, 2008 - Some remedies have been proposed to salvage the SDP- .... The first term is known as a data-term, capturing the color consistency, and the ...

Comparing single and multiple carrier schemes using ...
... [email protected], {marcioft, mdm}@mackenzie.br ... The OFDM systems divide the available band- ... Block diagram of a typical COFDM system; CP: Cyclic.

Generalized Boundaries from Multiple Image ...
IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, VOL. .... In this example Gb uses color, soft-segmentation, and optical flow.

Generalized Boundaries from Multiple Image Interpretations
Feb 16, 2012 - ure/ground soft-segmentation that can be used in conjunc- tion with our boundary ..... also define matrix C of the same size as X, with each col-.

Generalized Boundaries from Multiple Image ...
edge is clearly present in the output of a soft segmentation method. Right: in video, moving .... define NW × 2 position matrix P: on its i-th row we store the x and y ...

Neural network approaches to image compression
partment of Electrical and Computer Engineering, McMaster University,. Hamilton .... A simple, yet powerful, class of transform coding tech- niques is linear block ...

an approach to lossy image compression using 1 ... - Semantic Scholar
images are composed by 256 grayscale levels (8 bits- per-pixel resolution), so an analysis for color images can be implemented using this method for each of ...