diego domenzain September 2020 @ Colorado School of Mines
2d Haar wavelets are rectangle thingies that tile the plane.
These scripts are examples of the Haar wavelet decomposition.
This whole project is from this great book.
In the terminal:
make
make clean
./haar-test
This prints the coefficients in the blocky Haar basis, and the found coefficients in the weird Haar basis.
To convince you the Haar transform code is good, visualize it with Matlab running the script,
haar_see.m
This script has hard-coded the values printed by the executable haar-test
.
It displays,
- the elements of the blocky Haar basis,
- the weird Haar basis,
- the function in the blocky basis,
- and the same function in the weird basis.
Under construction.
All C functions are cloned in Matlab in the src/
directory here.
This was done so it is easy to play with them.
You can also visualize the basis elements for both the blocky and weird basis.
Programming Projects in C for Students of Engineering, Science, and Mathematics. Rouben Rostamian. SIAM, 2014.
These handsome squares are the Haar 2D basis for a discretized domain containing 16 pixels.
Picture modified from the book.