hi,
i want to apply a high pass filter to image in frequency domain. Here is the code:-
I= imread('cameraman.jpg');FA = fftshift(fft2(I));w=0.5; % cutoff frequency
N=2; %filter order
highPassFilter=butter(N,w,'high');OM=highPassFilter(512,512).*abs(FA); % applying high-pass filter
————————————————————-
I'm getting this error:
??? Attempted to access b(512,512); index out of bounds because size(b)=[1,3].Error in ==> all at 32OM=b(512,512).*abs(FA);
Best Answer