Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Lossless Compression based on Curvelet-IWT

ijcta.com

ISSN:2229-6093 Avisha Khanna et al ,Int.J.Computer Technology & Applications,Vol 3 (1), 431-436 Lossless Compression based on Curvelet-IWT AvishaKhanna, Sanjeev Sharma, Nishchol Mishra School of information technology, RGPV,Bhopal, India avishakhanna87@gmail.com, sanjeev@rgtu.net, nishchol@rgtu.net Abstract The growth of data rate increases in decades. The maximum part of data is image, image required huge amount of memory for storage purpose and take more time for process of storage. Now lossless image compression is a necessary for saving memory and time. In the process of lossless image compression transform function play a vital role. In this work, we obtained better compression technique using Curvelet-IWT, resulting better peak signal to noise ratio (PSNR), Compression rate, Compression ratio. The transform function that we are using in this work is curvelet transform. In this work, Curvelet-IWT is compared with IWT, IWPT and DPCM-IWT resulting better than other techniques. the IWP coefficients is bigger than the wavelet transform coefficients which affect the effect of the lossless image compression. But, if add the DPCM before the IWP, it can decorrelate the raw image data, therefore increasing the compressibility of the image. So we can get better compress result than using the IWPT called DPCMIWT[6]. Recently, curvelet transform has been produced. It represents edges and other singularities along curves much more efficiently than traditional transforms, i.e. using many fewer coefficients for a given accuracy of reconstruction. Itrequires only about1/ �curvelets to represent an edge. Inthis work, we will use curvelet transform function to achieve better compressed image [5] [17]. Keywords Curvelet- IWT, IWT, IWPT and DPCM IWT. 1. Introduction Lossless image compression plays a crucial rule in the field of data compression. It develops very slowly and it is difficult to improve the efficiency of compression, since complete information and high fidelity are demanded. The lossless compression ratio of the conventional methods is around 2:1 and 3:1, which doesn’t satisfy practical compression needs. So, it is necessary to develop more efficient lossless image compression methods. In this paper, we will discuss various compression techniques like IWT, IWPT, DPCMIWT. We will also discuss on various characteristics of image compression. IWT is an invertible integer-tointeger wavelet analysis algorithm [12][13]. IWT can be used in the applications where integer coefficients need to be produced for integer-encoded signals.IWT is memory-efficient, computationally faster and suitable in lossless data-compression applications. The IWT enables you to reconstruct an integer signal perfectly from the computed integer coefficients [7].IWPT yields a representation which can be lossless, as it maps an integer valued sequence onto integer valued coefficients in the transformed domain; moreover, it allows for the selection of an adaptive representation, which can match the variable characteristics of image better than the IWT. Although IWPT has get very good result in the lossless compression of images, it is not perfect [6]. The range of IJCTA | JAN-FEB 2012 Available online@www.ijcta.com 2. Integer Wavelet Transform The wavelet domain is growing up very quickly. A lot of mathematical papers and practical trials are published every month. Wavelets have been effectively utilized as a powerful tool in many diverse fields, including approximation theory; signal processing, physics, astronomy, and image processing. In one dimensional discrete wavelet transform when high pass filter is applied it results in smoothed version of the input and when low pass filter is applied, high frequency part is captured. Syntheses filters are used for reconstruction and the results of these convolutions are added. In two dimensional, firstly, one step of the one dimensional transform is applied to all rows. Then, we repeat the same for all columns. In the next step, the coefficients are proceeded that result from a convolution in both directions [12] [13]. As shown in figure 1, these steps result in four classes of coefficients: (HG and GH) reflect vertical and horizontal information, (HH) coefficients represent diagonal features of the image. At the coarsest level, we also keep low pass coefficients (LL). We can do the same decomposition on the LL quadrant up to log2(min (height, width)). Since the discrete wavelet transform allows independent processing of the resulting components without significant perceptible interaction between them, hence it is expected to make the process of imperceptible embedding more effective. However, the used wavelet filters have floating point coefficients. Thus, when the input data consist of sequences of integers (as in 431 ISSN:2229-6093 Avisha Khanna et al ,Int.J.Computer Technology & Applications,Vol 3 (1), 431-436 the case for images), the resulting filtered outputs no longer consist of integers, which doesn't allow perfect reconstruction of the original image [10]. However, with the introduction of Wavelet transforms that map integers to integers we are able to characterize the output completely with integers [7]. S transform is an example of wavelet transforms that map integers to integers. The result of high pass filters is smooth(s) output for an index n given in equation (1a) and the result of low pass filter is detail (d) output for an index n that is given in equation (1b). However, the sum and the difference of two integers are either both odd or both even. We can thus safely omit the last bit of the sum since it equals to the last bit of the difference. The S transform is thus reversible and its inverse is given in equations (2a) and (2b) [7]. coefficients represent horizontal features of the image, whereas (V) and (D) reflect vertical and diagonal information respectively. During the transform we ignore any odd pixels on the borders [7]. � , = ( 2 ,2 + 2 +1,2 )/2 , = ( 2 ,2 +1 − 2 ,2 ) − 2 ,2 ) , = ( 2 +1,2 , = ( 2 +1,2 +1 − 2 ,2 ) 2 ,2 = � , − , /2 2 ,2 +1 = � , + ( , + 1)/2 2 +1,2 = 2 ,2 +1 + , − , = + − 2 +1,2 +1 2 +1,2 , , Where 1≤ ≤ H Image HH HL HH LL LH LH LL 2� = � = � + 2� + 2� + 1 2 LH LL In this section a review of the wavelet transform and of the filter bank scheme are given, and the wavelet packets transform are introduced. The block scheme of the single level wavelet transform is shown in Figure 2. H’ z G’ z 1 2� − 2� + 1 1 � +1 2 (2 ) � +1 (2 ) 2 However, we need to redefine those equations in 2D in order to be applied on images and hence be useful in our implementation. In this section, we will define the construction of the 2D S-transform. (3a), (3b), (3c), and (3d) equations of an image are used for computed the 2D S-transform. Where original image is denoted by I. Original image(I) is X pixel high and Y pixel wide. Pixels located at position i and j by Ii,j. The transform is reversible, i.e., we can exactly recover the original image pixels from the computed transform coefficients. The inverse is given in equations (4a), (4b), (4c), and (4d). Note that the transform results in four classes of coefficients: (A) the low pass coefficients, the (H) 2� + 1 = � − IJCTA | JAN-FEB 2012 Available online@www.ijcta.com ≤ ≤ /2 3. Integer Wavelet Packet Transform 3.1 Wavelet transform and wavelet packets transform Figure 1: A Two Dimensional Wavelet Transform � = 2,1 Note that the presented transforms are not computed using integer arithmetic, The computations are done with floating point number but the result is guaranteed to be integer because the floor function is used and hence the invertetibility is preserved.[7] [8] [9]. L HH HL 3 3 3 3 4 4 4 4 LP HP 2 2 2 2 2 2 LP 2 2 HP H(z) + G(z) Figure 2: One Level Wavelet Transform The low-pass analysis filters and the high-pass ones are followed by down sampling of a factor two. At the reconstruction side, the low-pass and band-pass branches are upsampled and filtered with the synthesis filters H(z) and G(z) in order to obtain the original signal. A wavelet transform on J levels is obtained by iterating the filter bank J-1 times on the low-pass branch. The wavelet transform coefficients consist of the J high-pass and the terminal low-pass node sequences output by the 432 ISSN:2229-6093 Avisha Khanna et al ,Int.J.Computer Technology & Applications,Vol 3 (1), 431-436 filter bank tree. Given a perfect reconstruction filter bank, the iterated scheme represents an either orthonormal or biorthogonal (non redundant) representation of the original signal. Differently from the wavelet transform, the J-level WPT are achieved by iterating the one level filter bank on both the low-pass and the high-pass branch, and then applying a pruning algorithm to select a suitable representation. An algorithm has been proposed which selects the best representation of a sequence across the entire tree based on some proper cost function, which must measure the compactness of the representation [6]. 3.2. Integer wavelet transform and integer wavelet packets transform It is straightforward to understand that the same procedure which leads to IWT from wavelet transform can be applied to the wavelet packets transform, yielding the IWPT. The implementation follows the same scheme used for the IWT. The IWPT tree can be built iterating the single wavelet decomposition step on both the low-pass and high-pass branches, with rounding off in order to achieve the integer transforms. IWPT yields a representation which can be lossless, as it maps an integer valued sequence onto integer valued coefficients in the transformed domain; moreover, it allows for the selection of an adaptive representation, which can match the variable characteristics of image better than the IWT[1][6].. 4. Differential Pulse Code Modulation-Integer Wavelet Transform (DPCM-IWT) Although IWPT has get very good result in the lossless compression of images, it is not perfect. The range of the IWP coefficients is bigger than the wavelet transform coefficients which affect the effect of the lossless image compression. But, if add the DPCM before the IWP, it can decorrelate the raw image data, therefore increasing the compressibility of the image. So we can get better compress result than using the IWPT. We call the new method DPCM- IWPT. The steps are as following. (1) Do the DPCM for the original image F and get the forecast image F’ (2) Get the residual image I= F’ -F (3) Do the IWPT for the residual image I. (4) Do the Huffman coding for the IWPT coefficients. The decoding process is the inverse of the encoding process [6][11]. 5. Continuous Curvelet Transform In continuum plane R2, with spatial variable x, with ξ a frequency-domain variable, and with r and ω polar coordinates in the frequency-domain. We start with a pair IJCTA | JAN-FEB 2012 Available online@www.ijcta.com of windows W(r) and V (t), which we will call the ‘radial window’ and ‘angular window’, respectively. These are smooth, nonnegative and real-valued, with W taking positive real arguments and supported on r Є (1/2, 2) and V taking real arguments and supported for tЄ[−1, 1].We use these windows in the frequency domain to construct a family of analysing elements with three parameters: scale a > 0, location b ЄR2and orientation θ Є[0, 2π) (or (−π, π) according to convenience below). At scale a, the family is generated by translation and rotation of a basic element γa00: � � =� 00 ( � )(x − b), Where Rθis the 2-by-2 rotation matrix effecting planar rotation by θ radians. The generating element at scale a is defined by going to polar Fourier coordinates (r, ω) and setting � ′ 00 , = . . � . 3 4 ,0 < < 0 Thus the support of each γ’abθis a polar ‘wedge’ defined by the support of W and V, the radial and angular windows, applied with scale-dependent window widths in each direction. In effect, the scaling is parabolic in the polar variables r and , with being the ‘thin’ variable. In accord with the use of the terminology curveletto denote families exhibiting such parabolic scaling [4, 2, 5, 3], we call this system of analyzing elements curvelets. However, note that the curveletγa00is not a simple affine change-of-variables acting on γa’,0,0fora’!= a. We initially omit description of the transform at coarse scales. Note that these curvelets are highly oriented and they become very needle-like at fine scales. Equipped with this family of curvelets, we can define Continuous Curvelet Transform Γf, a function on scale/location/direction space defined by Γf , , � = � � , , < 0 , � 2 , ��[0,2�] Here and below, a 0is a fixed number – the coarsest scale for our problem. It is fixed once and for all, and must obey a 0< π2for the above construction to work properly. 6. Lifting and Shifting Scheme The lifting scheme is a technique for both designing wavelets and performing the discrete wavelet transform. Actually it is worthwhile to merge these steps and design the wavelet filters while performing the wavelet transform. This is then called the second generation wavelet transform. The basic idea of lifting is the following: If a pair of filters (h,g) is complementary, that is it allows for perfect reconstruction, then for every filter s the pair (h',g) with h’(z) = h(z) + s(z2) allows for perfect reconstruction, too. Of course, this is also true for every pair (h,g') of the form g’(z) = g(z) + t(z2) . h(z).The 433 ISSN:2229-6093 Avisha Khanna et al ,Int.J.Computer Technology & Applications,Vol 3 (1), 431-436 converse is also true: If the filter banks (h,g) and (h',g) allow for perfect reconstruction, then there is a unique filter s with h’(z) = h(z) + s(z2).g(z).[6][11] The method of zero shifting is a simple and easy-toimplement technique which preserves the embedded property of the SPIHT coding. By downward scaling of the pixel values by 2(N-1), N being the number of bits representing the original pixel, the spatial domain magnitude becomes bipolar ranging from(-2(N-1)) to (+2(N1 )-1), with almost half of the maximum absolute spatial value. In the transform domain, the wavelet lifting scheme produces the high pass sub band by taking the weighted differences of the pixel values after prediction. Similarly, the low pass sub band is produced by taking the weighted average of the pixel values after the updating step. This lowpass sub band is further decomposed iteratively for each level of decomposition to finally provide one lowest frequency band, the rest being high frequency bands. [6] curves of images resulting better outcome. We call the new method Curvelet- IWT. The steps are as following. 1) Read original image f = f( x,y) 2) Divide the image into resolution layers. Each layer contains different frequencies. P0 is low-pass filter α1 , α 2 is high pass filters. 3) Image expression can be written as : = �0 �0 4) Ideal Low pass filter ф0 with low frequencies near |f| <= 1 5) Ideal High Pass filter domain 7. PROPOSED WORK The process of image compression suffered from the problem of extraction of actual data without loss of information. In this work, we obtained better compression technique using curvelet-IWT, resulting better peak signal to noise ratio (PSNR), Compression rate, Compression ratio. In current trend, the compression of an image is performed by transform function by the decomposition of value on coefficient factor in low and high pass filter. In low pass filter, the filter generates fractional number such as 6.4. Here 0.4 is fractional data and actual data is not quantified which causes loss of data. We have proposed the integer wavelet transform (IWT) with the combination of curvelet transform. Firstly the curvelet transform is applied on an original image → Ґ ( , , Ѳ) of function f(x1,x2) on R2. Where a is continuous scale and b is location where ∈ 2 and Ѳ is orientation that shows direction where Ѳ ∈ (0,2�). Ґ , , � = � � , means project f onto � � called curvelet that causes sub band decomposition of an image which provides low and high frequencies values which included fractional frequencies too. Integer wavelet transform (IWT) is applied that converts fractional value into whole number. Shifting are done on the basis of low and high pass filter which produces the high pass sub band by taking the weighted differences of the pixel values after prediction. Similarly, the low pass sub band is produced by taking the weighted average of the pixel values after the updating step. This low pass sub band is further decomposed iteratively for each level of decomposition to finally provide, one lowest frequency band, the rest being high frequency bands. Curvelet IWT is compared with IWT, IWPT and DPCM-IWT resulting better than other techniques. By using Curvelet IWT technique, better compression can be obtained on the IJCTA | JAN-FEB 2012 Available online@www.ijcta.com � � + 2s with frequency near ℇ [2 , 22 + 2] The sub-band decomposition is simply applying a convolution operator: P0 f = Φ0 * f , � = 2s * f 6) Apply integer wavelet transform and convert fractional frequency value into whole number. � = � = 2� + 2� + 1 2 2� − 2� + 1 The smooth S(n) and the detail D(n) outputs are the results of the application of the high-pass and the lowpass filters respectively. 7) Shifting are done on the basis of low pass filter and high pass filter. On the basis of low pass filter and high pass filter we use shifting scheme that brings the spatial values in signed integer range without changing the dynamic ranges, so that the transformed coefficient calculation becomes more consistent. Shifting can be obtained by downward scaling of the pixel values by 2(N1) , N being the number of bits representing the original pixel, the spatial domain magnitude becomes bipolar ranging from (-2(N-1)) to (+2(N-1)-1), with almost half of the maximum absolute spatial value. The highest number bit plane is decided by the maximum absolute value of the transformed coefficients. Further, the lower absolute image values in the spatial domain (which originally ranges from 0≤pi,j≤2N-1) are shifted to higher absolute range in the bipolar sense. The lower image values are 434 ISSN:2229-6093 Avisha Khanna et al ,Int.J.Computer Technology & Applications,Vol 3 (1), 431-436 detailed information pertaining to the boundaries, edges, etc 8) Huffman encoding is performed on output that is mapping of the code words to the corresponding symbols will result in a compressed data Coding can be done by using following steps: a) Decorrelate the raw image data by using some prediction function (f). b) Apply standard Huffman Coding by using the following function: Input:Alphabet A= {a1, a2….an}, which is the symbol alphabet of size n. Set W= {w1, w2….wn}, which is the set of the (positive) symbol weights (usually proportional to probabilities), i.e. wi =weight (ai), 1<=i<=n Output:Code C(A,W)={ c1, c2….cn } , which is the set of (binary) code words, where ci is the codeword for ai, 1<=i<=n Constraint: Let � = � =1 ∗� � ( ) be the weighted path length of code C. Condition: L(C) <=L(T). noise ratio (PSNR), compression rate (CT) and compression ratio (CR). We compared the performance of integer wavelet transform and integer wavelet packet transform on two images: Cameraman2 (512 x 512). Figure 5 shows the reconstructed images of IWT,IWPT, DPCM-IWT and Curvelet-IWT. Table 1 Experimental Result Image (Cameraman2 ) PSNR Compressio n rate Compressio n ratio IWT 20.584 9 0.43283 bits/pixel 7.6497:1 IWPT 22.430 4 0.5456 bits/pixel 8.3805:1 DPCM-IWT 26.121 4 0.67165 bits/pixel 9.2359:1 Curvelet-IWT 29.625 0.7932 bits/pixel 11.0814:1 9) Original image compressed. The decoding process is the inverse of the encoding process. The processes of encoding and decoding are as Figure 3. Original Image Curvelet Transform Shifting Scheme As shown in figure 5, one cannot conclude that which image has obtained better compression than other techniques, but from the Table 1 shown above, it can be easily concluded that the performance of Curvelet-IWT is better than other techniques. IWT Huffman Coding Compressed Image Figure 3: Encoding Process 8. EXPERIMENTAL RESULTS The simulation of this paper is done in MATLAB 7.8.Inthis paper, we compared integer wavelet transform (IWT),,integer wavelet packet transform (IWPT) and Differential Pulse Code Modulation Integer Wavelet Transform (DPCM-IWT) with Curvelet IWT. The quality of a compression method could be measured by the traditional distortion measures such as the peak signal to- IJCTA | JAN-FEB 2012 Available online@www.ijcta.com Original Image(Cameraman2) IWT(Compressed) 435 ISSN:2229-6093 Avisha Khanna et al ,Int.J.Computer Technology & Applications,Vol 3 (1), 431-436 IWPT (Compressed) DPCMIWT(Compressed) Colloquium on Computing, Communication, Control, and Management. [7]M. F. Tolba, M. A. Ghonemy, I. A. Taha, and A. S. Khalifa,using integer wavelet transforms in colored imagesteganography,2004. [8] R. C. Calderbank, I. Daubechies, W. Sweldens, and B. Yeo, “Lossless Image Compression using Integer to Integer Wavelet Transforms”, International Conference on Image Processing, Vol.1, pp. 596-599. [9] R. C. Calderbank, I. Daubechies,W. Sweldens, and B.Yeo, “Wavelet Transforms that Map Integers to Integers”,Applied and Computational Harmonic Analysis, 1998, Vol. 5, no. 3, pp. 332-369, 160 [10] S. Dewine and Comelis, “Lossless integer wavelet transform”. IEEE Signal PmcessingMer, 1997, VoI 4, pp. 158150. [11]Shilpa s. Dhulap” Image Compression Based On Iwt, Iwpt&Dpcm-Iwpt” in International Journal of Engineering Science and Technology Vol. 2 (12), 2010, 7413-7422 [12] T.T. Nguyen, H. Chauris, Uniform Discrete Curvelet Transform for Seismic Processing,2008 Curvelet-IWT(Compressed) Figure 4 Experimental Results 9.CONCLUSIONS Lossless compression of image is an important field in image processing. In this paper we have described the IWT, IWPT and DPCM-IWT and have proposed Curvelet-IWT. After testing on a large image set, we have drawn the conclusion that Curvelet-IWPT is able to achieve better performance of the corresponding real valued transforms without additional computational effort than IWT, IWPT and DPCM-IWT. However, we believe that there is more room for improvement to achieve even better performance by different choices of the elements and parameters of our model or by combining our method with the others. 10. REFERENCES [1] Adrian Munteanu, etal,”Wavelet-based Lossless Compression of Coronary Angiographic Images”.IEEE Transactions on Medical Imaging, 1999, Vol. 18.no.3, pp. 272 – 281. [2] Andrew B. Watson “Image Compression Using the Discrete Cosine Transform” in Mathematica Journal, 4(1), 1994, p. 8188. [3] David L. Donoho& Mark R. Duncan Department of Statistics Stanford University, Digital Curvelet Transform. Strategy, Implementation and Experiments, November, 1999. [4] Emmanuel J. Candµes and David L. Donoho, Curvelets - A Surprisingly ElectiveNonadaptive Representation For Objects with Edges,2000. [5] Emmanuel Cand`es, Laurent Demanet, David Donoho] and Lexing Ying, Fast Discrete Curvelet Transforms, March 2006. [6]Hua Li. And Yiming Zhu “Lossless Image Compression Based On DPCM-IWPT” in 2008 ISECS International IJCTA | JAN-FEB 2012 Available online@www.ijcta.com 436