Hi i tried 2d dwt without inbuilt function8,but i am getting error as"Dimensions of matrices being concatenated are not consistent."

1 次查看(过去 30 天)
My code is f=image(2562x256) h='haar' N = length(h); L = length(f); c = f; h0 = fliplr(h); % Scaling filter h1 = h; h1(1:2:N) = -h1(1:2:N); % Wavelet filter
L = length(c); c = [c(mod((-(N-1):-1),L)+1) c]; % Make periodic
%subplot(3,1,1);plot(f); %subplot(3,1,2);plot(c);
d = conv(c,h1); d = d(N:2:(N+L-2)); % Convolve & d-sample c = conv(c,h0); c = c(N:2:(N+L-2)); % Convolve & d-sample
g = [c,d]; % The DWT

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Discrete Multiresolution Analysis 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by