Documente Academic
Documente Profesional
Documente Cultură
WALSH-HADAMARD
TRANSFORM
DEFINITION OF H-
TRANSFORM
• The Hadamard transform Hm is a
2m × 2m matrix, the Hadamard
matrix (scaled by a normalization
factor), that transforms 2m real
numbers xn into 2m real numbers
X k.
• The hadamard transform can be
much understood if we could
realize what the hadamard matrix
is?????????
Hadamard matrix
• the Hadamard matrices are made up
entirely of 1 and −1.
• Equivalently, we can define the
Hadamard matrix by its (k, n)-th entry
by writing
•
• And k as
•
• where the kj and nj are the binary digits
(0 or 1) of k and n, respectively
• in this case
•
•
• we define the 1 × 1 Hadamard
transform H0 by the identity H0 = 1,
and then define Hm for m > 0 by:
•
•
•
EXAMPLES
• If
•
•
•
•
• Similarly
•
•
• And the next term
•
•
•
•
•
•
• where is i. j the bitwise dot product of the binary
representations of the numbers i and j…
Walsh functions
• For example
•
•
•
• agreeing with the above (ignoring the
overall constant). Note that the first
row, first column of the matrix is
denoted by H00
• The rows of the Hadamard matrices are
the Walsh functions.
ROOT OF HADAMARD
TRANSFORM
•
• The Hadamard matrices of dimension 2k for k ∈ N are
given by the recursive formula
•
•
•
•
•
•
• In general ,
Two dimensional W-H
transform
The 2D Walsh-Hadamard transform is the tensor of the
1D transform.
16 images.
(1,1,-1,-1)
(1,-1,-1,1)
(1,-1,1,-1)
(1,1,1,1)
these sixteen images?
•
•
Take the corresponding
elements of the 1D (1,1,1,
basis and find their 1)
tensor product.
•
(1,1,-1,-1)
•
(1,-1,-1,1)
(1,-1,1,-1)
Two dimensional W-H
transform
1 −1 −1 1
1 1 −1 −1 1
1 1 −1 −1 1
−1 −1 1 1 −1
−1 −1 1 1 −1
PROPERTIES
One change
two changes
Discrete Walsh-
Hadamard transform
1) Hadamard transform
1 1 1
H1 = 1 − 1 Now we meet our
2 old friend in a
new light again!
H n −1 H n −1
1
H n = H n −1 ⊗ H1 =
2 H − H
n −1 n −1
# of sign changes
⇒ sequency
1 1 1 1 0
1 1 − 1 1 − 1 3
H2 =
2 1 1 − 1 − 1 1
1 − 1 − 1 1 2
sequency
1 1 1 1 1 1 1 1 0
1 −1 1 −1 1 −1 1 − 1 7
1 1 −1 −1 1 1 − 1 − 1 3
H H2
1 2 = 1 1 −1 −1 1 1 −1 − 1 1 4
H3 =
8 H − H 8 1 1 1 1 −1 −1 − 1 − 1 1
2 2
1 −1 1 −1 −1 1 − 1 1 6
1 1 −1 −1 −1 −1 1 1 2
1 −1 −1 1 −1 1 1 − 1 5
⇒ natural or Hadamard order
⇒ also can be generated by sampling the Walsh function (1923, Walsh)
⇒ Walsh - Hadamard transform
sequency
1 1 1 1 1 1 1 1 0
1 1 1 1 − 1 − 1 − 1 − 1 1
1 1 − 1 − 1 − 1 − 1 1 1 2
1 1 1 − 1 − 1 1 1 − 1 − 1 3
H3 =
8 1 − 1 − 1 1 1 − 1 − 1 1 4
1 − 1 − 1 1 − 1 1 1 − 1 5
1 − 1 1 − 1 − 1 1 − 1 1 6
1 − 1 1 − 1 1 − 1 1 − 1 7
⇒ sequency or Walsh order
Relationship between Walsh-
ordered and Hadamard-ordered