Haar Transform
Haar Transform
Probably the simplest useful energy compression process is the Haar transform.
y 1 y 2
T
into
using:
y 1 x 1
T (1)
y 2 x 2
1 1 1
T
where 2 1 1 . Thus y 1 and y 2 are simply the sum and difference of
1
x 1
and x 2 , scaled by 2 to preserve energy.
Note that T is an orthonormal matrix because its row are orthogonal to each other
(their dot products are zero) and they are normalised to unit magnitude. Therefore
T 1 T T (In this case T is symmetric so T T T ). Hence we may recover x from y
using:
x 1 y 1
T
T
(2)
x 2 y 2
In 2-dimensions x and y become 2x2 matrices. We may transform first the colums
of x , by premultiplying by T , and then the rows of result by post multiplying by
T T . Hence:
y TxT T (3)
and to invert:
x T T yT (4)
then
1a bc d abcd
y
2a bcd abcd