PyWavelets (pywt) computes forward and inverse wavelet transforms on 1D, 2D, and nD data with NumPy-friendly APIs.
Overview
PyWavelets is open-source software for wavelet analysis in Python. Wavelets are localized in time and frequency, so transforms help study signals and images beyond what Fourier methods alone provide.
The library implements forward and inverse discrete transforms in multiple dimensions, multilevel decompositions, stationary undecimated transforms, wavelet packets, and continuous transforms. It includes routines to approximate scaling and wavelet functions, ships over a hundred built-in filters, and accepts custom wavelets.
Calculations run in single or double precision on real or complex data, with results aligned to MATLAB's Wavelet Toolbox conventions where applicable. Runtime depends on NumPy; C and Cython code backs the heavy lifting while staying easy to invoke from an interactive shell.
Documentation and examples show transforms on vectors and images, including visualization of approximation and detail bands. PyWavelets suits signal processing, scientific imaging, and any Python workflow needing orthogonal or biorthogonal filter banks.
Key features
- 1D, 2D, and nD DWT and inverse DWT
- Multilevel decomposition and reconstruction
- Stationary undecimated transforms
- Wavelet packet analysis
- Continuous wavelet transform
- 100+ built-in wavelet filters
- Custom wavelet support
- Single and double precision
Use cases
- Image detail and approximation analysis
- Time-series denoising or feature extraction
- MATLAB-compatible wavelet experiments
- Teaching wavelet fundamentals in Python
- Scientific pipelines with NumPy arrays