Hacker News new | ask | show | jobs
by nigma 1307 days ago
Wavelets are fun. I first heard about them in the early 2000s when I read about JPEG 2000 image compression format [1]. Back then the primary tool to play with signal transformation was the Matlab Wavelet Toolbox. As I got more interested in the topic I started work on PyWavelets [2] Python package for my master's thesis about medical signals processing and ML classification.

I'm not actively involved in the package development anymore but it is still maintained [3] and there is a great chance that you have it already in your Python environment as a dependency of scikit-image/scikit-learn. Just give it a try, it's very simple:

  >>> import pywt
  >>> cA, cD = pywt.dwt([1, 2, 3, 4], 'db1')

[1] https://en.wikipedia.org/wiki/JPEG_2000 [2] https://pywavelets.readthedocs.io/ [3] https://github.com/PyWavelets/pywt