wavelet using wv_dwt [message #76549] |
Thu, 16 June 2011 02:10 |
Lavanya
Messages: 7 Registered: August 2010
|
Junior Member |
|
|
Hi
i am trying to decompose an image into its wavelet coefficients
(approximate LL and detailed ones LH, HL, HH). I used the following
code decompose the image into scaling and wavelet coeffs at level 2
decomposition. After that i am not able to proceed further. Please
suggest ways of getting these coefficients or i am approaching the
problem in a wrong way
PRO test
x1 = read_tiff(filepath('image.tif',subdir = ['examples','data']))
x = congrid(x1, 128,128 ,/cubic)
info = wv_fn_daubechies(2, wavelet, scaling,ioff, joff)
wv_dwtpartial = wv_dwt(x,wavelet,scaling,ioff,joff, N_LEVELS = 2)
wv_level1 = wv_pwt(x,wavelet,scaling, ioff, joff)
w_scaling1 = wv_level1[0:n/2-1]
w_wavelet1 = wv_level1[n/2:*]
similarily, obtained scaling and wavelet for 2nd level.
Please tell me how to get the sub bands of the image and display it
|
|
|