我已经在方法的帮助下转换了图像,fft2
现在我想找到嘈杂的峰值并删除它们,如下图链接所示:
请建议实现此目的的 matlab 功能
这就是我到目前为止所做的
F = fft2(myImage);
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,[]); % Display the result