400
W.-J. Hwang et al. / Pattern Recognition Letters 21 (2000) 399±405
multiplications are still required for these algo-
rithms.
The objective of this letter therefore is to
present multiplication-free fast codeword search
algorithms for the encoding of full-search VQs
based on squared-distance measure. Similar to
the technique presented in (Hwang et al., 1997),
our algorithms achieve fast encoding by per-
forming the partial distance search (PDS) (Bei
and Gray, 1985) in the wavelet domain (Vetterli
and Kovacevic, 1995). The wavelet used for the
fast search is the simple Haar wavelet so that the
wavelet coecients of codewords are ®nite-preci-
sion numbers. Consequently, squared distance
calculation can be realized using additions. In our
algorithms, the addition-based squared computa-
tion is decomposed into a number of stages. The
PDS is also extended to these stages to further
reduce the addition complexity of the algorithm.
When all the stages for squared computation are
considered in PDS, the actual closest codeword to
each sourceword can always be found and the
rate-distortion performance is not degraded.
Moreover, by performing the PDS over smaller
number of stages, lower computational complex-
ity can be obtained at the expense of possible
slight degradation in average distortion. There-
fore, in our algorithms, in addition to be multi-
plication-free, the addition complexity is allowed
to be controlled to provide best trade o be-
tween computational complexity and rate-distor-
tion performance in accordance with the
application needs.
Fig. 1. The DWT of a vector x.
orientation selective highpass sub-vectors),
k n; . . . ; 1, are obtained recursively from
xLꢀk1 with xL0 x. The decomposition of xLꢀk1
into four sub-vectors xLk; xVk; xHk; xDk can be car-
ried out using a simple quadrature mirror ®lter
(QMF) scheme as shown in (Vetterli and Kovac-
evic, 1995).
Now, suppose there are K codewords in the
codebook of a full-search VQ: y1; . . . ; yK, each one
with dimension 2n  2n. Let x be the sourceword
with the same dimension as these codewords. The
objective of the fast search algorithm for the full-
search VQ is to reduce the computational time for
®nding a codeword whose squared distance is
closest to the sourceword. That is, the algorithm
reduces the computational complexities for ®nding
yj , wherejà arg min1 6 j 6 KDꢀx; yj; andDꢀu; v
Ã
2. Preliminaries
P
N
i1
2
ꢀui vi is the squared distance between u
and v and N is the dimension of u and v.
In this section we review some basic facts of
wavelet transform (Vetterli and Kovacevic, 1995)
and the fast codeword search algorithm perform-
ing PDS in the wavelet domain (Hwang et al.,
1997). Let X be the n-stage discrete wavelet
transform (DWT) of a 2n  2n vector x. Then,
as shown in Fig. 1, X is also a 2n  2n vector
Let X and Yj be the n-stage DWT of x and yj,
respectively. It can be shown that Dꢀx; yj
DꢀX; Yj: Starting from the upper-left corner of
the DWT coecients, we index the elements of
vectors X and Yj in the zig-zag order as shown
in Fig. 2. Let Xi and Yij be the ith element of X
and Yj, respectively. Moreover, let DmꢀX; Yj
containing sub-vectors xLꢀ
and xVk; xHk; xDk;
n
P
m
i1
ꢀXi Yij2; m 1; . . . ; 2n  2n; be the partial
k n; . . . ; 1, each with dimension 2ꢀnk
Â
distance between X and Yj. Since DꢀX; Yj >
DmꢀX; Yj, it follows that:
2ꢀkn. Note that, in the DWT, the sub-vectors xLk
(lowpass sub-vectors) and xVk; xHk; xDk (V, H and D