我想编写一个简短的 MATLAB 程序,使我能够从图像表示中指定并仅保留最大数量级的傅里叶变换的一部分。
到目前为止,这是我的代码,其中“image123”是 256x256 uint8:
I= image123;
F = fft2(I);
F = fftshift(F);
F = abs(F); % Get the magnitude
F = log(F + 1);
F = mat2gray(F);
figure, imshow(F,[])
如果我在“F = log(F + 1)”中增加我的值 1,这会增加傅里叶变换的幅度吗?