error in thresholding
1 回表示 (過去 30 日間)
古いコメントを表示
I have a code
x=rand(64,64,16)
J=1;T=50;
[Faf, Fsf] = FSfarras;
[af, sf] = dualfilt1;
w = dualtree3D(x, J, Faf, af);
for j = 1:J
% loop thru subbands
for s1 = 1:2
for s2 = 1:3
w{j}{s1}{s2} = soft((w{j}{s1}{s2}),T);
end
I get same number of coefficients before and after thresholding,please help,after threshold the number of elements is it correct ,if so please tell where i had done mistake
0 件のコメント
回答 (1 件)
Wayne King
2012 年 6 月 6 日
soft thresholding shouldn't change the total number of coefficients. What soft thresholding will do is to change the value of the those coefficients and with many images and signals, it will significantly change the number of coefficients that are near zero.
Even hard thresholding will still return the same number of coefficients, it's just that many of them will be set to 0, so you can throw them away.
3 件のコメント
Wayne King
2012 年 6 月 6 日
I'm not sure what you mean by "lower" coefficients, but the higher the threshold, the more wavelet coefficients will be shrunk toward zero in the case of soft thresholding.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!