Walsh Hadamard
Walsh Hadamard
Walsh Hadamard
WALSH – HADAMARD
TRANSFORMATION OF A CONVOLUTION
DEFINITION 1. Let Nk = 2k, k = 0, 1, 2… A (column)
Anna UŠÁKOVÁ, Jana KOTULIAKOVÁ vector z = x * y ∈ RNk × 1 is called a dyadic convolution of
Dept. of Telecommunication x, y ∈ RNk × 1 if its n-th entry is
Michal ZAJAC N k −1
1
Dept. of Mathematics
Slovak University of Technology
z (n) =
Nk
∑ x(d ) y (n ⊕ d ) ,
d =0
n = 0,1,K N k − 1.
Abstract [
x = x0T x1T ] T
(1)
1⎧ 1 2k −1
1 2k +1 −1 ⎫
Keywords = ⎨ k
2 ⎩2
∑ x(d ) y (n ⊕ d ) + k
2
∑ x(d ) y (n ⊕ d )⎬ .
d =0 d = 2k ⎭
Convolution, Walsh-Hadamard transformation,
dyadic convolution If 0 ≤ n < 2k (i.e. for coordinates of z0), we obtain in the
first sum of (2) n ⊕ d < 2k, and in the second sum n ⊕ d =
= 2k + [n ⊕ (d - 2k)], consequently
1. Introduction
1
It is well known that for many orthogonal transforma-
z0 = [x0 ∗ y0 + x1 ∗ y1 ].
2
tions, the image of the convolution of a pair of functions is
equal to the product of their transforms. In order to obtain Similarly one can see that z1 = 0.5 [x0 * y1 + x1 * y0], i.e.
an analogous rule for Walsh–Hadamard transformation, the
convolution should be replaced by the dyadic convolution. ⎡ x0 ⎤ ⎡ y0 ⎤ 1 ⎡ x0 ∗ y0 + x1 ∗ y1 ⎤
⎢ x ⎥ ∗ ⎢ y ⎥ = 2 ⎢x ∗ y + x ∗ y ⎥ . (3)
Recall that if ⎣ 1⎦ ⎣ 1⎦ ⎣ 0 1 1 0⎦
∞ ∞
Recall that Hadamard matrices are defined inductively by
m = ∑ mi 2 i n = ∑ ni 2 i .
i =0 i =0
⎡1 1 ⎤ ⎡H k H 2k ⎤
H 1 = [1], H 2 = ⎢ ,K, H 2k +1 = ⎢ 2 (4)
are binary expansions of non-negative integers m, n then ⎥
⎣1 − 1⎦ ⎣ H 2k − H 2k ⎥⎦
their dyadic sum is
k
∞ ×1
and the Walsh-Hadamard transformation x ∈ R 2 is
m ⊕ n = ∑ mi − n i ⋅ 2 . i
i =0
1
Xh = H kx. (5)
m×n
R denotes the space of all m×n matrices with real 2k 2
entries.
Radioengineering Walsh-Hadamard Transformation of a Convolution 41
Vol. 11, No. 3, September 2002 J. KOTULIAKOVÁ, M. ZAJAC, A. UŠÁKOVÁ
i.e., multiply element by element (WHT)w’s of I’ with N fast Fourier transform coefficients Fx(k), k = 0, 1…N-1 is
transfer function of the filter N ⋅ log2N complex multiplies and adds. On the other side,
N2 additions and subtractions are required to compute the
Y(k1,k2) = WI’(k1,k2) ⋅ H(k1,k2). (11) (WHT)w coefficients Wx(k), where k = 0, 1… N-1. A fast
4. The reconstructed image is given by the equation algorithm (FWHT)w yields the Wx(k), k = 0, 1… N-1, in
N ⋅ log2N additions and subtractions. In frequency domain
y(n1,n2) = 2 ⋅ (UN1)T ⋅ Y(k1,k2) ⋅ UN2 (12) (FFT), we required complex multiplications element by
element, in comparison with (WHT)w, where we do only
where UN1 is the base of 1-D (WHT)w. real multiplications element by element.
References
[1] AHMED, N., RAO, K. R. Orthogonal Transforms for Digital
Signal Processing. Berlin: Springer-Verlag, 1975.
About authors...
Jana KOTULIAKOVÁ (Doc, Ing, CSc) was born (1939)
in Levoča, graduated in 1962 in Faculty of Electrical Engi-
neering of the Slovak University of Technology in Brati-
slava. Since 1964 she has been working at the Dept. of
Telecommunications. She received the CSc (PhD) degree
in 1980. In 1988 she received the Doc (associate professor)
c) d)
degree. Her research interests include digital signal proces-
sing, digital filtering.