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!