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 (최근 30일)
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);

채택된 답변

hmi amid
hmi amid 2017년 4월 21일
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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Digital Filter Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by