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 个评论
回答(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!