Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
%wavelet decomposition
%5 level decomposition using db1 (haar)
%scale level 1
[LL1,HL1,LH1,HH1]=dwt2(n_im,'haar');
%LL approximation HL horizontal |a_LL |h_HL|
%LH vertical HH diagonal |-----|----|
% |v_LH |d_HH|
%scale level 2
[LL2,HL2,LH2,HH2]=dwt2(LL1,'haar');
%scale level 3
[LL3,HL3,LH3,HH3]=dwt2(LL2,'haar');
%scale level 4
[LL4,HL4,LH4,HH4]=dwt2(LL3,'haar');
%scale level 5
[LL5,HL5,LH5,HH5]=dwt2(LL4,'haar');
%to see the whole wavelet decomposition images
figure
colormap(gray)
imagesc([[[[[LL5 HL5;LH5 HH5] HL4;LH4 HH4] HL3;LH3 HH3] HL2;LH2 HH2] HL1;LH1 HH1])