As promised, here is an implementation of the Cohen-Daubechies-Feauveau 9 tap / 7 tap wavelet transform on a 2D signal in Python. This is the same transform used in the JPEG2000 codec.
”’
2D CDF 9/7 Wavelet Forward and Inverse Transform (lifting implementation)

This code is provided “as is” and is given for educational purposes.
2008 – Kris Olhovsky – code.inquiries@olhovsky.com
”’

from PIL [...]

Tags: , , , , , ,