【问题标题】:Effect of decreasing phase and magnitude of Fourier transform in image降低图像中傅里叶变换的相位和幅度的影响
【发布时间】:2013-11-30 12:30:40
【问题描述】:

降低图像傅里叶变换的相位和幅度有什么影响?用matlab怎么做呢?我有一个图像A,我想将图像A 的傅里叶变换的相位设置为零,然后将图像A 的变换为零,看看对图像的影响。

我该怎么办?

A=imread('sample.tif');
F=fft2(A);
F2=fftshift(F);
F_inverse=ifft2(F);
subplot(2,2,1);imshow(A);
title('Original Image');
subplot(2,2,2);imshow(log(1+abs(F2)),[]);
title('Fourier Spectrum');
subplot(2,2,3);imshow(angle(F2),[-pi pi]);
title('Fourier Phase');
subplot(2,2,4);imshow(F_inverse,[]);
title('Inverse Fourier');

【问题讨论】:

    标签: matlab image-processing


    【解决方案1】:
    f1 = real(F);
    f2 = imag(F);
    magnitude = abs(F);
    Fnew=real(ifft2(f0)); % set all phases to zero
    figure,imagesc(Fnew)
    

    如果将所有幅度设置为零,则像素都为零。可以自己设置ab两个参数,观察real(ifft2(a*f1 + i*b*f2))imagesc的变化

    【讨论】:

    • 谢谢,在数字图像中,相位重要还是幅度重要?
    • 我会说两者。并取决于您调整的方式和区域。基本上,即使在图像中的同一对象中,相位也会为您带来不同的对比度。以及图像中形状或边缘所表示的某些特定频率的幅度。
    猜你喜欢
    • 2011-09-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-01-20
    • 1970-01-01
    相关资源
    最近更新 更多