No BSD License
by Frédéric Chanal
13 Mar 2004
(Updated 16 Mar 2004)
Compute a n*n Haar matrix.
Watch this File
Used in image compression, the haar transform is an alternative to the DCT transformation. This file compute an n*n Haar matrix. (same use as "dctmtx")
Thank you for this function!
don't use "inf" as a variable name!!!!
nice one.rhis is my work:
h(k+1,i+q*t1) = (2^(p/2))/sqrt(N);
Properly constructs the Haar matrix. The code is not vectorized, but this is fine because you only need to call the function once and can reuse the matrix from that point onward.