• 沒有找到結果。

A novel image compression algorithm by using Log-Exp transform

N/A
N/A
Protected

Academic year: 2021

Share "A novel image compression algorithm by using Log-Exp transform"

Copied!
4
0
0

加載中.... (立即查看全文)

全文

(1)

A Novel Image Compression Algorithm by Using

LOG-EXP

Transform*

Sheng-Chieh Huang, Liang-Gee Chen and

Hao-Chieh Chang

Department

of

Electrical Engineering

National Taiwan University,

Taipei, Taiwan, R.O.C.

ABSTRACT

Based on the logarithmic and exponential transform, an efficient Log-Exp still image compression system is proposed. The Log- Esp-compression is designed for the high quality still image, especially for the PSNR above 36. At the similar image quality (Log-Exp PSNR = 41.52 and P E G PSNR = 41.23); the Log-Exp compression can get the higher compression ratio than JPEG by 1.84 times for the benchmark image lena. Besides, the Log-Exp compression is computing in pixel-by-pixel without the block artifacts, In comparison with the JPEG compression result (bpp =

0.99; PSNR = 26.9), the Log-Exp compression uses less bpp (bpp

= 0 8 7 ) to get higher image quality (PSNR=36.38) for the benchmark image baboon.

1.INTRODUCTION

In recent years. the networking multimedia systems are popular in life. For example, the WWW, video conference, video phone, DVD. Sct-Top Box, HDTV, Digital TV are the trend of the consumer electronic applications. In these multimedia products, the high image quality is the key requirement. So, the JPEG still image compression standard is widely used in many applications. According to the previous researches for the JPEG image transmission [ I ] and VLSI implementation [ 2 ] , there are two key points have to be improved in JPEG. The first point is the compression ratio must be increased for the more and more large image data. Secondly, due to the JPEG is based on the DCT transform, the block artifacts make large distortion in the image qualityc especially in the zoom view for the region of interest

(ROI) access. To improve the above drawbacks in JPEG, a novel

image compression algorithm by using LOG-EXP transform is proposed in this paper.

2. SYSTEM DESIGN

Based on the logarithmic number system (J-NS) [3] properties, the compression and decompression flow of the Log-Exp image compression system are shown on Fig. 1. In first, the LNS fixed- point data format and pixel value difference are used to reduce pixel value bits from 8 bits to 6 bits. Secondly, the neighboring pixel value of the same object is similar or same, there are many repeat items can be removed with repeat reduction. In finial: the Huffman coding is used to remove the whole image entropy redundancy. Each function unit is described in the following sessions.

2.1 Logarithmic Transform

For the gray level image, the pixel value is usually represented in integer format. For reducing the distribution of the pixel value to locate in the small and continuous range, the pixels are processed with the logarithmic transform. As shown in Fig. 2.. when the difference is 12 between the 16 and 4 in the pixel values of the integer format, the difference is 2 between the 4 and 2 in the LNS format (based on log,). The large neighboring difference between two pixels can be reduced into small range. Besides, due to the bit numbers of the pixel value are finite (i.e. finite word length effect) and the continuous distribution of the pixel value in IONS [4], the original 8 bits gray level image can be represented in 7

bits LNS format.

2.2 Neighboring Difference and Snake Scan

The neighbor pixels usually represent the same object so that the values of the pixels are similar or same. To compute the differences between the neighbor pixels, the neighboring differences will be very small and there are many same differences. According to the experiments for the benchmark image baboon, lena, pepper. the integer part of the neighboring differences are distributed from 1 0 , to 0 , (i.e. 2 to 0 in decimal). When the neighboring difference is stored in 7 bits fixed point data format (3 bits integer part and 4 bits fraction part) in LNS. the most significant bit (MSB) is always equal to zero in the integer part. So, the 7 bits neighboring difference can be reduced to 6 bits. If the neighboring difference i s negative. the additional one is appended in the finial bit of the neighboring difference. Besides, when the pixel is processed in sequential scan and changes from this line to the next line, there will be one large neighboring difference. To avoid such kind of large neighboring difference, the snake scan is used and shown in Fig. 3.

2.3 Repeat Reduction and Huffman Coding

There are many repeat items of the neighboring difference can be removed with the repeat reduction unit. The repeat reduction is shown in Fig. 4 . The left part is the neighboring differencc rcsult. In the right part, the data part is the data after removing the same value and the times part is recording how many repeat times in these data. After reducing the repeat values, the data part and times part are processed with the Huffman encoder to remove the

* This work \\as supported by NatIonal Science Council under Grant NSC88-2215-E-002-034 0-7803-5471 -0/99/$10.0001999 IEEE

(2)

largc amount of similar neighboring differences redundancy.

Compression Ratio.

On the other side, the decompression phase reconstructs image from the compressed data by the Huffman decoding, restoring the repeat value, adding the neighboring difference with the previous pixel and then making the exponential function computation.

9.19 8.25

3. IMPLEMENTATION and EVALUATION

Log-Exp PSNR Log-Exp Compression Ratio

JPEC PSNR

There are four stages: logarithmic transform, neighboring difference, repeat reduction, and Huffman encoding in compression phase. The logarithmic transform and the neighboring difference remove the pixel representation redundancy. And then, the repeat reduction deletes the repeat of the neighboring difference to remove the same object redundancy. In finial, the Huffman encoder removes the whole image entropy redundancy. The total compression ratio is calculated with the product of the value repeat reduction compression ratio and the Huffman coding compression ratio. In the following table, the compression ratios in each stage are presented.

41.31 36.38 7.36 9.19 37.23 34.53 Ratio Huffman Coding Compression Ratio Log-Exp PSNR Log-Exp Compression Ratio

I

I

I

Total Compression Ratio

I

8.40

I

7.91

I

7.36

41.51 36.62 7.91 10.06 I I I PSNR

I

41.52

I

41.51

I

41.31 R E G PSNR I I 39.23 36.45 P E G Compression Ratio

JPEG Compression Ratio

I

2.39

I

2.98

4.13 9.14

Log-Exp PSNR Log-Exp Compression Ratio

41.52 36.62 8.40 11.05

JPEG Compression Ratio 4.57 11.13

I I

JPEG PSNR 41.23

I

36.91

Table. 2. The Compression Ratio vs. PSNR Comparison when the PSNR above 36.

Based on the similar PSNR, the comparison of the compression ratio is shown on the following table.

Log-Exp PSNR Log-Exp Compression Ratio

JPEG PSNR

Table. 3. The Compression Ratio Comparison on the Similar PSNR.

In the benchmark image lena, when the PSNR is similar (Log- Exp PSNR = 41.52 and JPEG PSNR = 31.23), the Log-Exp compression effect is superior to JPEG by 1.84 times.

In table 4, the PSNR comparison is shown when the compression ratio is similar.

Baboon

I

Log-Exp

I

JPEG

1

I

PSNR.

I

36.38

I

26.7

1

Pepper

PSNR.

LOg-EV JPEG

PSNR. 41.52 38.29

Table. 4. The PSNR Comparison on the Similar Compression Ratio.

The subject view comparison is shown in Fig. 5. and Fig. 6. The Fig. 5. shows the benchmark image baboon’s left eye part. Though the the bit per pixel (bpp) of the P E G compression is more than the Log-Exp compression. the image quality of the Log-Exp is superior to the JPEG. Besides, the block artifacts of the JPEG image are very obvious in this figure. The Log-Exp

compression is processing pixel by pixel, there is no block artifacts.

The Fig. 6. is the subject view of the benchmark image lena’s hat. For the texture of the lena’s hat, there are the very serious block artifact in whole image and the blur distortion on the left upper part in JPEG compressed image. At the similar bpp (Log-Exp =

0.95, JPEG = 0.97) requirement, the subject view of the Log-Exp image is more clear in the texture of the lena’s hat and without the block artifact distortion.

4.

CONCLUSION

(3)

The LOG-EXP image compression can get high compression ratio for the complex texture image (e.g. benchmark image baboon) and the high quality image, especially the PSNR above 36. The pixel-by-pixel processing style is useful to avoid the block artifact for the high quality image compression [5].

I

Logarithmic Difference Repeat Reduction

REFERENCES

I

Huffman

Encode Compressed [ I ] Y. H. Han, J. J. Leou, "Detection and Correction of

Transmission Errors in JPEG Images," IEEE Trans. on Circuit and System for Video Technology, Vol. 8, No. 2, Apr.

1998.

[2] M. Kovac, N. Ranganathan, "JAUGUAR: A Fully Pipelined

Exponential Difference Transform Addition

VLSl Architecture for JPEG Image Compression Standard.'' Proceeding of the IEEE, Vol. 83. No. 2, Feb. 1995.

[3] S.C. Huang, L.G. Chen, T.H. Chen, "The Chip Design of A 32-b Logarithmic Number System." IEEE Sym. on Circuit and System, vol. 4, pp. 167- 170. 1994.

[4] S.C. Huang, L.G. Chen. T.H. Chen, "A 32-bit Logarithmic Number System Processor," Journal of VLSl Signal Processing Systems for Signal. Image. and Video Technology, Vol. 14, No. 3. pp. 311-319. Dec. 1996. [5] S. C. Huang, L.G. Chen. "LOG-EXP Compression System

Design and Implementation." IEEE International Sym on Consumer Electronics. 1998. Repeat Huffman Restore Decode

I

I I ,

.

,

I

I

Compression Phase

Image

I

Fig. 1. Log-Exp Image Compression System.

1: 16 14 11 10

2 :

6 4 1 n

Fig. 2. The Integer

and

LNS Format for Pixel Value Range.

(4)

Neighboring Difference

A

Y U

...

~ ~~ p i f f e r e n c e Data Times 00.0010(~) 00.01 14,) 00.01 11 (2) 00.0001 2 00.011 lf2) 00.0111 2 ~ o o . o l l l ( 2 ) 1 00.0001 (2)

U

a

00.0111 2 ~ 0 0 . 0 1 1 1 ( ~ ) 1 ~~~ ~

Fig. 3. Neighboring Difference and Snake Scan. Fig. 4. Repeat Reduction.

Log-Exp: bpp

=

0.87, PSNR

=

36.38

JPEG: bpp

=

0.99,

PSNR

=

26.9

Fig. 5. The Left Eye of the Benchmark Image baboon.

Log-Exp:

bpp

=

0.95, PSNR

=

41.52

JPEG:

bpp

=

0.97,

PSNR

=

38.29

Fig. 6. The Hat of the Benchmark Image Iena.

數據

Fig. 1.  Log-Exp Image Compression System.
Fig. 3.  Neighboring Difference and Snake Scan.  Fig. 4.  Repeat Reduction.

參考文獻

相關文件

Hence, code for each non zero AC coefficient is composed of a basecode (corresponding to runlength/category) and a code corresponding to offset in.. Standard tables vs

• The scene with depth variations and the camera has movement... Planar scene (or a

• Richard Szeliski, Image Alignment and Stitching: A Tutorial, Foundations and Trends in Computer Graphics and Computer Vision, 2(1):1-104, December 2006. Szeliski

 image processing, visualization and interaction modules can be combined to complex image processing networks using a graphical

Light rays start from pixels B(s, t) in the background image, interact with the foreground object and finally reach pixel C(x, y) in the recorded image plane. The goal of environment

 Retrieval performance of different texture features according to the number of relevant images retrieved at various scopes using Corel Photo galleries. # of top

contributions to the nearby pixels and writes the final floating point image to a file on disk the final floating-point image to a file on disk. • Tone mapping operations can be

The regression analysis results indicated that after the corporate image, service quality, satisfaction, perceived value and loyalty between each dimension and is