I currently have a code on haar wavelet transform decomposition for one(1) level, but will really appreciate if good hands can work on it and make it a 2-level HAAR wavelet transform decomposition
2 次查看(过去 30 天)
显示 更早的评论
current code for the 1-level haar wavelet decomposition, which gives me 4 images(4 states), i need for 2-level,which will give me 7images.
getd = @(p)path(p,path);%%%% Path Location containing haar wavelet toolbox
getd('toolbox_signal/');
getd('toolbox_general/');
n = 256;
N = n*n;
name = 'DSC00458';%%%%%%%%%%%%%% Loading of the new image
f = load_image(name,n);
figure, imshow(f);
f = rescale( sum(f,3) );
J = log2(n)-1;
haarV = @(a)[ a(1:2:length(a),:) + a(2:2:length(a),:);
a(1:2:length(a),:) - a(2:2:length(a),:) ]/sqrt(2);
haarH = @(a)haarV(a')';
haar = @(a)haarH(haarV(a));
I = (plot_wavelet(haar(f),J));
arrayfun(@cla,findall(0,'type','axes'));
imshow(I)
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Denoising and Compression 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!