Professional Documents
Culture Documents
Modified SPIHT Algorithm For Wavelet Packet Image Coding
Modified SPIHT Algorithm For Wavelet Packet Image Coding
Multimedia and Vision Lab, Department of Electronic Engineering, Queen Mary, University of London, London E1 4NS, UK
b
Faculty of Electrical Engineering and Computing, University of Zagreb, Unska 3/XII, HR-10000 Zagreb, Croatia
Available online 10 August 2005
Abstract
This paper introduces a new implementation of wavelet packet decomposition which is combined with SPIHT (Set Partitioning in
Hierarchical Trees) compression scheme. We provide the analysis of the problems arising from the application of zerotree
quantisation based algorithms (such as SPIHT) to wavelet packet transform coefcients. We established the generalized
parentchild relationships for wavelet packets, providing complete tree structures for SPIHT. The proposed algorithm can be used
for both wavelet dyadic and Wavelet Packet decomposition (WP-SPIHT). An extensive evaluation of the algorithm was performed
and it has been shown that WP-SPIHT signicantly outperforms base-line SPIHT coder for texture images. For these images the
suboptimal WP cost-function enables good enough energy compaction that is efciently exploited by the WP-SPIHT.
r 2005 Elsevier Ltd. All rights reserved.
1. Introduction
Discrete Wavelet Transform (DWT) provides a
multiresolution image representation and has become
one of the most important tools in image analysis and
coding over the last two decades. Image compression
algorithms based on DWT [18] provide high coding
efciency for natural (smooth) images. As dyadic DWT
does not adapt to the various space-frequency properties
of images, the energy compaction it achieves is generally
not optimal. However, the performance can be improved by selecting the transform basis adaptively to the
image. Wavelet Packets (WP) represent a generalization
of wavelet decomposition scheme. WP image decomposition adaptively selects a transform basis that will be
best suited to the particular image. To achieve that, the
criterion for best basis selection is needed.
Coifman and Wickerhauser proposed entropy based
algorithm for best basis selection [9]. In their work, the
best basis is a basis that describes the particular image
with the smallest number of basis functions. It is a oneCorresponding author.
ARTICLE IN PRESS
N. Sprljan et al. / Real-Time Imaging 11 (2005) 378388
2. Wavelet analysis
Wavelet analysis of an image can be viewed in the
frequency domain as partitioning into a set of subbands,
379
ARTICLE IN PRESS
N. Sprljan et al. / Real-Time Imaging 11 (2005) 378388
380
N
1
X
k0
(1)
(2)
f G0u f D 3 a0
d 1
X
22k d k
k1
a1
d 1
X
2k
(3)
d k 1 L2
k1
1
1
a0 d1 3d 4
fD
3
4
2
a1 d1 3d 1 L2
4
4
p a0 d
a1 d L2 .
3
N1
4
1 2
4
a0 2k L2 a0
L pa0 L2 .
N2
3
34
d 1
X
22k L2
k1
fD
d1
1
a0 2a1 L2 2f D .
4d1
ARTICLE IN PRESS
N. Sprljan et al. / Real-Time Imaging 11 (2005) 378388
Table 1
Pseudocode for wavelet packets decomposition
Table 3
Pseudocode for wavelet packets reconstruction
image ! LL0
0 ! costimage
for k N to 1
if kod
! treeinf
for k 1 to N
DWTLLk1 ! LLk HLk T LHk HHk T ! LLk1
if kod
WPanalysisHLk ; d k; treeinf ! fHLk ; costHL ; treeinfg
WPanalysisLHk ; d k; treeinf ! fLHk ; costLH ; treeinfg
WPanalysisHHk ; d k; treeinf ! fHHk ; costHH ; treeinfg
else
costHLk ! costHLk
costLHk ! costLH k
costHHk ! costHH k
costimage costHLk costLH k costHH k ! costimage
dene parentchildren relations
resolve parental conicts
costimage costLLN ! costimage
S
LL0 ! S N
k1 HLk ; LHk ; HHk ; LLN
381
Table 2
Pseudocode for greedy tree growth algorithm
function WPanalysisS; depth; treeinf ! fS; costS ; treeinfg
DWTS ! LL HLT LH HHT ! S
cost(S) ! costS
cost(LL) ! costLL
cost(HL) ! costHL
cost(LH) ! costLH
cost(HH) ! costHH
if costLL costHL costLH costHH ocostS
if depth41
WPanalysisLL; depth 1; treeinf ! fLL; costLL ; treeinfg
WPanalysisHL; depth 1; treeinf ! fHL; costHL ; treeinfg
WPanalysisLH; depth 1; treeinf ! fLH; costLH ; treeinfg
WPanalysisHH; depth 1; treeinf ! fHH; costHH ; treeinfg
1 treeinf ! treeinf
costLL costHL costLH costHH ! costS
LL HLT LH HHT ! S
else 0 treeinf ! treeinf
ARTICLE IN PRESS
382
Fig. 3. Examples of parentchild assignments: (a) wavelet decomposition tree, (b) wavelet packet trees and inter-level dependencies, (c)
parentchild assignments after resolving the parental conicts.
ARTICLE IN PRESS
N. Sprljan et al. / Real-Time Imaging 11 (2005) 378388
383
4. Experimental results
Fig. 5. Lena: comparison of PSNR values for SPIHT and WP-SPIHT.
Fig. 4. Best basis geometry: (a) Goldhill, (b) Lena, (c) Barbara,
(d) Fingerprints, (e) Zone, (f) D49.
ARTICLE IN PRESS
384
Fig. 8. (a) Original image Barbara, (b) SPIHT decoded, 0.25 bpp, (c) WP-SPIHT decoded, 0.25 bpp.
Fig. 9. Magnied detail from image Barbara: (a) original, (b) SPIHT decoded, 0.25 bpp, (c) WP-SPIHT decoded, 0.25 bpp.
Fig. 10. (a) Original Goldhill, (b) SPIHT decoded, 0.25 bpp, (c) WP-SPIHT decoded, 0.25 bpp.
Fig. 11. Magnied detail from image Goldhill: (a) original, (b) SPIHT decoded, 0.25 bpp, (c) WP-SPIHT decoded, 0.25 bpp.
ARTICLE IN PRESS
N. Sprljan et al. / Real-Time Imaging 11 (2005) 378388
385
Fig. 14. Texture D49: comparison of PSNR values for SPIHT and
WP-SPIHT.
Fig. 15. Texture D76: comparison of PSNR values for SPIHT and
WP-SPIHT.
Fig. 12. Fingerprints: comparison of PSNR values for SPIHT and
WP-SPIHT.
Fig. 16. Texture D106: comparison of PSNR values for SPIHT and
WP-SPIHT.
ARTICLE IN PRESS
386
Fig. 17. (a) Original Fingerprints, (b) SPIHT: decoded Fingerprints, 0.25 bpp, (c) WP-SPIHT: decoded Fingerprints, 0.25 bpp.
Fig. 18. (a) Original Zone, (b) SPIHT: decoded Zone, 0.25 bpp, (c) WP-SPIHT: decoded Zone, 0.25 bpp.
Fig. 19. (a) Original texture D49, (b) SPIHT: decoded D49, 0.25 bpp, (c) WP-SPIHT: decoded D49, 0.25 bpp.
ARTICLE IN PRESS
N. Sprljan et al. / Real-Time Imaging 11 (2005) 378388
an image and SPIHT for other regions. Moreover, WPSPIHT algorithm can be used in applications where
excellent texture coding performance is essential such as
compression of satellite/remote sensing images or
medical images for telemedicine, where use of WPSPIHT algorithm can lead to signicant results and
improved diagnosis.
5. Conclusion
Efcient set of rules for establishing zerotree structures when used with WP decomposition is presented.
The proposed solution enables the modication of
popular SPIHT scheme, called WP-SPIHTa combination of WP as a decomposition method with SPIHT as
an image compression scheme. The compression performance of WP-SPIHT has been compared to SPIHT
both visually and in terms of PSNR. WP-SPIHT
signicantly outperforms SPIHT for textures. For
natural images, which consist of both smooth and
textured areas, the chosen cost function used in WP is
not capable of estimating correctly the true cost for a
case when the subband is encoded with SPIHT. For
those images the PSNR performance of WP-SPIHT is
usually slightly worse. As opposed to wavelets, wavelet
packet basis might not necessarily produce coefcients
that help towards success of the zerotree quantization.
Using the entropy as a criterion for the best basis
selection can result into many coarse scale high
frequency subbands. If a coefcient somewhere at the
bottom of the zerotree is found to be signicant, the
parent nodes need to be encoded even if some of them
are insignicant. One way to improve those results
would be in designing an advanced cost metric that
would take into account the characteristics of SPIHT
algorithm and provide optimal distortion value for a
given bitrate.
References
[1] Antonini M, Barland M, Mathieu P, Daubechies I. Image coding
using the wavelet transform. IEEE Transactions on Image
Processing 1992;2:20520.
[2] Grgic S, Grgic M, Zovko-Cihlar B. Performance analysis of image
compression using wavelets. IEEE Transactions on Industrial
Electronics 2002;48:68295.
[3] Grgic S, Kers K, Grgic M. Image compression using wavelets.
Proceedings of the IEEE international symposium on industrial
electronics, ISIE99, Bled, Slovenia, 1216 July 1999. p. 99104.
[4] Hilton ML, Jawerth BO, Sengupta A. Compressing still and
moving images with wavelets. Multimedia Systems 1994;2:21827.
[5] Lewis AS, Knowles G. Image compression using the 2-D
wavelet transform. IEEE Transactions on Image Processing
1992;1:24450.
[6] Taubman D, Marcellin MW. JPEG2000 image compression:
fundamentals, standards and practice. Dordrecht: Kluwer
Academic Publishers; 2002.
387
ARTICLE IN PRESS
388