From: Wayne King on
nasim <nasim.breeze112004(a)gmail.com> wrote in message <1608677254.88105.1273235872255.JavaMail.root(a)gallium.mathforum.org>...
> yes but i don't know how choose scales and positions based on powers of two, i want dyadic scales and positions.

That's fine Nasim.

load woman
dwtmode('per','nodisp');
% Using Haar wavelet
[C,L] = wavedec2(X,3,'db1');

You should see that C has length (256*256)

You can extract any detail coefficients you want:

[H,V,D] = detcoef2('all',C,L,2);

Obtains the horizontal, vertical, and detail coefficients at level 2. Note these will be 64x64 because at level 2, you have decimated by 4.

Wayne


From: nasim on
thanks a lot


Message was edited by: nasim

First  |  Prev  | 
Pages: 1 2 3
Prev: Image Comparison
Next: function in background?