# Fast Stereo Images Compression Method based on Wavelet Transform and Two Dimensional Logarithmic (TDL) Algorithm Marwah Kamil Hussien Abstract-In this paper, a fast stereo images compression method has been proposed. In proposed method, Firstly, stereo images were transformed using Discrete Wavelet Transform (DWT) in order to reduce computation time. The disparities between these images were estimated by Two Dimensional Logarithmic (TDL) algorithm. The result of the Motion Vector (MV) was encoded into a bit stream by Huffman encoding while the remaining part is compressed like the compression that is used in still image. The proposed method produced good results in terms of Peak Signal-to-Noise Ratio (PSNR), CR, and computation time. # ??????ïº?"? # I. Introduction pair of stereo images is very similar each other as they are the images of a stationary object taken from two different angles. This is why compressing both images independently is an inefficient way of compressing stereo images [1]. In this research, has been selected a pair of stereo images which are very similar to each other are taken from two different angles (and this is why the pressure of each of the images independently, which means in the efficiency of the stereo image compression).We can get the sequence of these images by film cameras or generated by demand sequentially. Compress these pictures is the foundation necessary to reduce this data through the difference between the two images Account (matching), also known as disparity estimation, then squeeze one image independently. This is known as image as a reference, and can either is the right image or the left image, then use the reference image and vector disparity to rebuild the second image. The work aims to propose an efficient technique for stereo images compression by transformed using Discrete Wavelet Transform technique (DWT) in order to reduce computation times, we show that in Section 2.The disparity vectors between them (The left and right image after transform in to DWT levels) were estimated by Two Dimensional Logarithmic (TDL).The remaining image is compressed as still image; we show that in Section 3. The two images are very similar to each other; so that the disparity vectors between the two images are estimated. Section 4 and Section 5 are gives the proposed method and evaluation criteria. Experimental results show in Section 6. Finally, the paper has been concluded in Section 7. # II. Discrete Wavelet Transform (dwt) Wavelet transform is one of important and useful computation tools for a variety of signal and image processing applications. In image processing field, the main process in wavelet transform is to filter signal of image by two filters, namely, low pass filter (L) and high pass filter. Then, it will down sampled by factor of two leading to compose transform of one level. Repeating of one level transform on the part of low pass output only, results multiple level transform. Two dimensional (2-D) wavelet transform can be obtained by applying 1-D wavelet transform, wavelet filter separately. This computation is done by carrying out 1-D transform on the rows signals one time and on the columns signal another time. As a result of that, it separates image signals into four sub-band images: LL (low frequency in horizon and vertical), LH (low frequency in horizon and high frequency in vertical),HL(high frequency in horizon and low frequency in vertical), HH(high frequency in horizon and vertical). Therefore, it is possible to use different methods for the sake of enhancement of the details in different frequency domain [2]. LL sub-band image often contains the most important information of the original image and it is usually called approximations the three other sub-band images are named as details. HH subband normally includes the small coefficients which are more likely due to undesirable noise [3]. Fig. 1 shows # III. Motion Estimation Motion Estimation (ME) is the process of analyzing successive frames in any image sequence to identify objects motion. In this paper, motion estimation used to process of analyzing two stereo images using TDL. The motion of an object is usually described by a two-dimensional motion vector, which is the placement of the co-ordinate of the best similar block in previous frame for the block in current frame. This placement is represented by the length and direction of motion [4,5]. # a) Three Step Search (TSS) TSS is one of the earliest attempts at fast block matching algorithms and dates back to mid1980s. The TSS is the algorithm that limits the number of checking points in a search area. The general idea is represented in Fig. 2, it starts with the search location at the center and sets the "step size" S = 4, for a usual search parameter value of 7. It then searches at eight locations +/-S pixels around location (0,0). From these nine locations searched so far it picks the one giving least cost and makes it the new search origin. It then sets the new step size S = S/2, and repeats similar search for two more iterations until S = 1.At that point, it finds the location with the least cost function and the macro block at that location is the best match. The calculated motion vector is then saved for transmission. It gives a flat reduction in computation by a factor of 9 [6, 7]. # First Step. Second Step. Third Step. # b) Disparity Estimation Using the Two Dimensional Logarithmic Algorithm TDL Algorithm was introduced by Jain and around the same time that the Three Step Search was introduced and is closely related to it. Although this algorithm requires more steps than the Three Step Search, it can be more accurate, especially when the search window is large [2]. The algorithm may be described as: Step1-Pick an initial step size. Look at the block at the center the search are and the four blocks at a distance of s from this one the X and Y axes. (The five positions from a + sign) Step 2-If the position of best match is at the center, halve the step size. If however, one of the other four points is the best match, then it becomes the center and step 1 is repeated. Step 3-When the step size becomes 1, all the nine blocks around the center are chosen for the search and the best among them is picked as the required block. A particular path for the convergence of the algorithm is shown in the following figure: Some people argue that the step size should be halved at every stage. Some people believe that the step size should also be halved if an edge of the search space is reached. However, this last idea has been found to fail sometimes. # IV. The Proposed Method In proposed method, there are four main steps. The first step we process the images used to convert its signal to levels using discrete wavelet Transform separately. In the second step, we match the two images the director of the first stage using TSS and TDL algorithms to find the movement between the two images and estimate the motion vector for the remaining images. Then, the remaining image will be compressed as a still image. Fig. 4 shows flowchart of compression a pair of stereo images. # V. Evaluation Criteria Peak signal-to-noise ratio (PSNR) is the standard method for quantitatively comparing a compressed image with the original. For an 8-bit grayscale image, the peak signal value is 255. Hence, the PSNR of an M×N 8-bit grayscale image C ij and its reconstruction R ij is calculated as [8,9]: # MSE PSNR N i N j ij ij n m R n m C N MSE Table (1): display the results of data (PSNR, CR and computation Time) for the TSS algorithm of stress selected three images recorded after using discrete wavelet transform. Table 2: display the results of data (PSNR, CR and computation Time) for the proposed method of stress selected three images recorded after using discrete wavelet transform. The decoded left and right images were compared with the original left and right images. The Mean Square Error (MSE) between the original and decoded left and right images was referred in Equ. Table1: Data for TSS Algorithm. # VII. Conclusions In this paper, a method for stereo images has been proposed to decrease the computation time without much influence on PSNR and compression ratio. Referring to the results that are shown in Table 1, and Table 2, it is obviously that the values of PSNR, CR, and computation time are affected by the length and the resolution of each pair from the images. Additionally, we can notice clearly that the use of DWT minimized the processing time approximately 45%. Three pair of images were compressed and then reconstructed by reversing the steps followed to compress the images. The reconstructed images were then compared with the original images. # Images 1![Figure 1: A) Foreman image B) Three levels Discrete Wavelet Transform of Lena image C) Low and High sub-bands resulted from three levels DWT[3].](image-2.png "Figure 1 :") 2![Figure 2: Example Path for Convergence of Three Step Search.](image-3.png "Figure 2 :") ![Blocks chosen for first stageBlocks chosen for second stageBlocks chosen for third stage A lot of variations of this algorithm exist and they differ mainly in the way in which the step size is changed [6, 7].](image-4.png "H") 4![Figure 4: Flow chart of proposed method.](image-5.png "Figure 4 :") ![Square Error (MSE) is defined as [10]: (3) PSNR is measured in decibels (dB), M: height of the image, N: width of the image. © 2017 Global Journals Inc. (US) VI. Experimental Results This section explains the experiments which have been implemented on two stereo images, Aloe, child and chosen image from personal camera as test images; each one of them is in size of 256*256 and of JPEG format. MATLAB version 7.4.0.287 (R2007a) was Fast Stereo Images Compression Method based on Wavelet Transform and Two Dimensional Logarithmic (TDL) Algorithm](image-6.png "") 3![Figure 3: Example Path for Convergence of Two Dimensional Logarithmic Search.](image-7.png "Figure 3 :") 5![Figure 5: (a), (b), (c), (d), (e) and(f) Original Left and Right Images. (a1), (b1), (c1), (d1), (e1) and(f1) Reconstructed Left and Right images.](image-8.png "Figure 5 :") 6![Figure 6: PSNR vs Bitrate for TSS Algorithm.](image-9.png "Figure 6 :") 7![Figure 7: PSNR vs Bitrate for the Proposed Method.](image-10.png "Figure 7 :") ?????? ??????? ?????? (Two Dimensional Logarithmic) ??????? ????????ïº?"???????ïº?"? ??????? ?????? ?)??????(? ???ï»?"??? ?????? ??????? (Motion Vector) ??????ïº?"???????(.? ????? ) ?????ïº?"? ?????ïº?"? ?????? ?ï»?"???? ????????? ??????? ????? ????????.? ???? ????? ) ????????? ????? ??????ïº?"? ???ïº?"? ????? ???? ????ïº?"? ??????? ?????? ????????ïº?"? ???????ïº?"? PSNR ( ??????? ?????ïº?"? ?ï»?"?? ?????????? ????????ïº?"? ????? ????? ???? ??????? ??????? ?????ïº?"? ????????? . ??????ïº?"? ????????ïº?"? , ??????ïº?"? ??????? ?????ï»?"??,? ????????? ????????? , ???????ïº?"? ??????? : ??????? ??????? ?????????? . 2 © 20 7 Global Journa ls Inc. (US) 1 © 2017 Global Journals Inc. (US) * Surface reconstruction from stereoscopy and "shape from shading WBeil ICarlsen SEM images in Machine Vision and Applications 2010 * Novel Image Enhancement Algorithm based on Wavelet Multiscale QYan RLi 3rd International Conference on Intelligent Networks and Intelligent Systems November. 2010 * Performance Evaluation of Image Enhancement Techniques in Spatial and Wavelet Domains LPassrija AVirk MKuar International Journal of Computers and Technology 3 1 2012 * 3D Tool Wear Measurement and Visualization Using Stereo Imaging AKarthik SChandra SDas International Journal of Machine Tools and Manufacture 2005 * Layered Encryption Techniques for DCT-Coded Visual Data MMFisch HStg? AUhl Proceedings (CD-ROM) of the European Signal Processing Conference, EUSIPCO '04 (CD-ROM) of the European Signal Processing Conference, EUSIPCO '04Vienna, Austria September 2004