clc;clear;close all;R=imread('img_00155.bmp');K=rgb2gray(R);K(K > 255*0.62) = 255;figure,imshow(K);K(K < 255*0.30) = 0;figure,imshow(K);J = 3;L = 8*2^(J+1);[Faf, Fsf] = FSdoubledualfilt;[af, sf] = doubledualfilt;w = cplxdoubledual_f2D(double(K), J, Faf, af);y = cplxdoubledual_i2D(w, J, Fsf, sf);y = [y; sqrt(y(1:L,:).^2+y(L+[1:L],:).^2)];figure,clfimagesc(y);title('Complex 2-D Double-Density Dual-Tree Wavelets')axis imageaxis offcolormap(gray(128))
error is
Index in position 1 exceeds array bounds (must not exceed 240).Error in te1 (line 21)y = [y; sqrt(y(1:L,:).^2+y(L+[1:L],:).^2)]; >>
Best Answer