i am trying to make a highpass filter manually but error appears in line 6 saying " the operation or expression "(" has no evident effect " what can i do ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Ahmed Eweed
am 21 Apr. 2017
Kommentiert: Ahmed Eweed
am 21 Apr. 2017
img=imread('cameraman.tif');
ftrans=fft2(img);
ftrans=fftshift(ftrans);
%[m,n]= size(256,256);
highpassfilter=ones(256,256);
highpassfilter(128-30:128+30,128-30:128+30);
smoothed=ftrans.*highpassfilter;
out=ifft2(smoothed);
0 Kommentare
Akzeptierte Antwort
hmi amid
am 21 Apr. 2017
Hi Ahmed, I think you should assign the values highpassfilter(128-30:128+30,128-30:128+30) to something. You are just outputting values of highpassfilter(128-30:128+30,128-30:128+30) into Ans which does not do anything. Maybe : highpassfilter(128-30:128+30,128-30:128+30)=0; ? Amid.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Digital Filter Analysis finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!