Happy Shrimp
http://blog.csdn.net/lights_joy/
Welcome reprint, but please keep the author information
Try it below python complete the operation of the wavelet correlation, which can be done by Pywavelet this library to complete.
Pywavelet The main features:
-1d,2d positive and negative discrete wavelet transform ( DWT , IDWT )
-1d,2d steady-State wavelet transform (Swt,stationarywavelet Transform)
-1d,2d reconstruction of wavelet packet decomposition
- approximation of the wavelet function and the scale function
- multiple built-in wavelet filters to support custom wavelets
- single and double precision support
- similar Matlab Wavelet Toolbox the Use
Pywavelet This library directly through Pip the command can be installed.
write a simple script and try 1D DWT :
#-*-Coding:utf-8-*-import numpy as Npimport pywtimport matplotlib.pyplot as plt# dwtx = Np.linspace ( -5,5,100) y = Np.s In (x) (CA, CD) = pywt.dwt (y, ' db1 ') plt.subplot (311) plt.plot (y) plt.subplot (312) plt.plot (CA) plt.subplot (313) Plt.plot ( CD) Plt.show ()
Look at the results of the run:
Everything is fine.
??
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Python image processing (+): Pywavelet