Python image processing (+): Pywavelet

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.