Defining a notch filter
3 次查看(过去 30 天)
显示 更早的评论
Hi, I'm new to Matlab. I'm trying to define a notch filter in matlab and implement it. The steps I've read for manually defining a notch filter so far are:
1- Taking the fft
2-Taking fftshift of the image
3- Defining the noise frequences in the fftshift image as notch centers
4-Implementing notch filter
I've done steps 1 and 2
I=imread('cameraman.tif');
F=fft2(I);
F = fftshift(F); % Center FFT
F = abs(F); % Get the magnitude
F = log(F+1); % Use log, for perceptual scaling, and +1 since log(0) is undefined
F = mat2gray(F); % Use mat2gray to scale the image between 0 and 1
imshow(F,[]);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/164550/image.jpeg)
Now I don't know how to get the frequencies to set as the notch centers. Kindly help!
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!