wavelets
1 次查看(过去 30 天)
显示 更早的评论
difference b/w the functions dwt2 and wavedec2
0 个评论
采纳的回答
Wayne King
2011-9-9
Hi Aavula, dwt2 gives you the 2D (separable) discrete wavelet transform at one level.
wavedec2 gives you the 2D (separable) discrete wavelet transform at a number of levels if you wish (provided as an input argument). wavedec2 uses dwt2 to iterate on the LL component.
Hope that helps,
Wayne
更多回答(1 个)
Wayne King
2011-9-10
From wavedec2 you obtain a C and S vector. You can then use detcoef2 and appcoef2 to extract the detail and approximation coefficients at a given level.
For example:
image = randn(16,16);
[C,S] = wavedec2(image,3,'db2');
% get level 2 detail coefficients
[H,V,D] = detcoef2('all',C,S,2);
% get level 2 approx. coefficients
A = appcoef2(C,S,'db2',2);
Wayne
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Discrete Multiresolution Analysis 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!