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 Center および File ExchangeDiscrete Multiresolution Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by