3 s1 = double(imread('st.tif'));
5 x = s + 20*randn(size(s));
6 t = 0:5:50; % threshold range(0~50),increment by 5
7 e = den2(s,x,t); % using standard method
8 re = rden2(s,x,t); % using reduced 2-D dual-tree method
9 ce = cden2(s,x,t); % using complex 2-D dual-tree method
17 title('RMS error V.S. Threshold Pt.')
18 xlabel('Threshold pt.');
20 legend('Standard 2D','Reduced 2D dual','Complx 2D dual',0);
34 ax = [280*[1 1] 250*[1 1]]+[0 1 0 1]*120;