Introduction - If you have any usage issues, please Google them yourself
The Haar transform can be expressed in the matrix form as T = HIHT (inverse transform HTTH) where I is an NxN image matrix, H is an NxN transformation matrix and T is the resulting NxN transform.
For Haar transform, the transformation matrix H contains the Haar basis functions hk(x). They are defined on a continuous, closed interval, x-[0, 1] for k = 0,1,2 ...,N-1 where N = 2n.