필터 지우기
필터 지우기

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개)

카테고리

Help CenterFile Exchange에서 Denoising and Compression에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by