TutorialΒΆ

2D Example:

>>> from scipy.misc import lena
>>> import matplotlib.pyplot as plt
>>> from rwt import dwt, idwt
>>> from rwt.wavelets import daubcqf
>>> img = lena()
>>> h0, h1 = daubcqf(4, 'min')
>>> L = 1
>>> y, L = dwt(img, h, L)
>>> plt.imshow(y)
>>> plt.show()

2D Example’s output and explanation:

_images/lena_dwt.png

The coefficients in y are arranged as follows.

_images/coef_table.png

where:

  1. High pass vertically and high pass horizontally
  2. Low pass vertically and high pass horizontally
  3. High pass vertically and low pass horizontally
  4. Low pass vertically and Low pass horizontally (scaling coefficients)

Previous topic

Installation

Next topic

Wavelets Reference

This Page