Image Compression Using Block Truncation Coding
Image Compression Using Block Truncation Coding
Image Compression Using Block Truncation Coding
1 n
1 M ,N
∑ ∑[x(m, n) − x(m, n −1)]
2
xL = xi R= (12)
16 − K xi p x (7 MN m=1n=2
measure for the loss of image quality due to its simplicity and
mathematical convenience .Peak signal-to-noise ratio (PSNR) D. Structural Similarity Index (SSIM).
is a qualitative measure based on the mean-square-error of the Another category of image quality measures is based on
reconstructed imageَ .If the reconstructed image is close to the the assumption that the human visual system is highly adapted
original image, then MSE is small and PSNR takes a large to extract structural information from the viewing field [12].
The error sensitivity approach estimates perceived errors to
value .PSNR is dimensionless and is expressed in decibel .
quantify image degradations, while this approach considers
Peak Signal-to-Noise Ratio (PSNR) avoids this problem by image degradations as perceived structural information
scaling the MSE according to the image range .PSNR is variation. The structural Similarity (SSIM) index can be
defined as follow: calculated as a function of three components: luminance,
contrast and structure.
1 M N
(13)
∑ ∑ [y ( i , j ) − x (i, j )]
2
=
SSIM ( x, y) = [l ( x, y)] ⋅ [c( x, y)] ⋅ [s( x, y)]
MSE α β γ
(20)
MN i =1 j =1
Where L is the dynamic range of the pixel values (255 for 8- (µ + µ y2 + C1 )(σ x2 + σ y2 + C 2 )
2
x
⎛ L2 ⎞ (15)
WPSNR = 10 log ⎜ ⎟ A. Measuring Spatial Frequency (SFM)
⎜
⎝ ( y − x ). NVF 2
⎟
⎠ The Spatial frequencies (SFM) and values computed for the
Where NVF = 1 (16) above set of images are given in Table 1 (16)
(1 + θ σ ( i , j ))
2
x
1 L L TABLE 1 spatial frequency measure of images
(17)
2 ∑ ∑
σ x2 (i, j ) = ( x(i + m, j + n) − x (i, j ))2
(2 L + 1) m = − L n = − L
D Lena Baboon Peppers Goldhill Barb
θ = (18)
σ 2
x max
Where ó2xmax is the maximum local variance of a given image SFM 14.0421 36.5146 15.8446 16.1666 29.4567
and D ∈ [50 ,150 ] is a determined parameter.
11
The above tables assure that the image compression using
AMBTC provides better image quality than image compression
using BTC at the same bit rate. Moreover, the AMBTC is quite
faster compared to BTC. Figure 2,3,4,5 and Figure6 shows the
original and compressed images using BTC and AMBTC.
Goldhill Barb
Figure 1. Image Database (size of 512×512 pixels). (a) (b) (c)
Figure 2. (a)Original image, (b), (c) compressed images
Test image Baboon has a lot of details and consequently large using BTC and AMBTC respectively
SFM. Large value of SFM means that image contains
components in high frequency area. It returns that Baboon
presents low redundant image, which is difficult for
compression. Test image Lena are images has low details and
consequently small SFM. Small value of SFM means that
image contains components in low frequency area. It returns
that Lena presents high redundant image, which is easy for
compression than Baboon.
12
[8] W. J. Chen and S. C. Tai, “Postprocessing Techniques for Absolute
Moment Block Truncation Coding“ Proc. of ICS'98, Workshop on
Image Processing and Character Recognition, pp. 125-130, Dec. 17-19,
1998, Tainan, Taiwan.
[9] A. M. Eskicioglu and P.S. Fisher, “Image quality measures and their
performance,” IEEE Trans. Communications, vol. 34, pp. 2959-2965,
Dec. 1995.
(a) (b) (c) [10] N. Yamsang and S. Udomhunsakul,”Image Quality Scale (IQS) for
Figure 6. (a)Original image, (b), (c) compressed images compressed images quality measurement”, Proceedings of the
using BTC and AMBTC respectively
International Multiconference of Engineers and Computer Scientists,
In this paper, image compression using block [11] S. Voloshynovskiy, S. Pereira, A. Herrigel, N. Baumgartner, T. Pun, “A
truncation coding has been investigated. Two algorithms were Stochastic Approach to Content Adaptive Digital Image Watermarking”,
selected namely, the original block truncation coding (BTC) Proceedings of the Third International Workshop on Information Hiding,
and Absolute Moment block truncation coding (AMBTC). pp.211-236, 1999.
The two algorithms are based on dividing the image into non
[12] Z. Wang, A. C. Bovik, H. R. Sheikh, and E. P. Simoncelli, "Image
overlapping blocks and uses a two-level quantize. The two
techniques were applied to different grey level test image quality assessment: From error measurement to structural similarity"
each contains 512×512 pixels with 8 bits/pixel (256 grey IEEE Transactions on Image Processing, vol. 13, No. 1, January 2004.
levels). The reconstructed images have a bit rate of 1.25
bit/pixel. This corresponds to 85% compression. Objectives
measures were used to evaluate the image quality such as:
Peak Signal to Noise Ratio (PSNR), Weighted Peak Signal to Doaa Mohammed received the B.S. in
Noise Ratio (WPSNR), Bit Rate (BR) and Structural Electronics and Communications
Similarity Index (SSIM).The results have shown that the Engineering from Faculty of
ATBTC algorithm outperforms the BTC. It has been show Engineering, Mansoura University,
that the image compression using AMBTC provides better Egypt in 2004. She is now preparing for
image quality than image compression using BTC at the same M.S. degree in Electrical Engineering.
bit rate. Moreover, the AMBTC is quite faster compared to Her interests include signal processing,
BTC. image processing and information
security.
References
[1] Rafael C. Gonzalez, Richard Eugene; “Digital image processing”,
Fatma El-Zahraa Abou-Chadi is
Edition 3, 2008, page 466
currently a professor and head of
[2] M. Ghanbari "Standard Codecs: Image Compression to Advanced
department of Electronics and
Video Coding" Institution Electrical Engineers , ISBN: 0852967101, Communications Engineering
2003 , CHM , 430 pages. Department, Faculty of Engineering,
[3] Delp, E. J., Saenz, M., and Salama, P., 2000, Block Truncation Coding Mansoura University, Egypt. Her
research interests focus on digital
(BTC), Handbook of Image and Video Processing, edited by
signal processing, image processing
Bovik A. C., Academic Press, pp. 176-181. and biomedical engineering.
[4] Franti P, Nevalainen O, Kaukoranta T. Compression of Digital Images
by Block Truncation Coding: A Survey, The Computer Journal, Vol. 37,
No. 4, 1994.
[5] C. C. Tsou, S. H. Wu, Y. C. Hu, "Fast Pixel Grouping Technique for
Block Truncation Coding," 2005 Workshop on Consumer Electronics
and Signal Processing (WCEsp 2005), Yunlin, Nov. 17-18, 2005.
[6] M.D.Lema, O.R.Mitchell, “Absolute Moment Block Truncation Coding
and its Application to Color Image”, IEEE Trans. Coomun., Vol.
COM-32, No. 10, pp. 1148-1157, Oct. 1984.
[7] Somasundaram, K.and I. Kaspar Raj. “Low Computational Image
Compression Scheme based on Absolute Moment Block Truncation
Coding“. May 2006. Vol. 13.
13