Is the fft2 output mirrored as in the fft?

2 ビュー (過去 30 日間)
Andrea Muratori
Andrea Muratori 2021 年 5 月 28 日
回答済み: Manas Meena 2021 年 5 月 31 日
Hi,
I know that the fft algorithm gives a mirrored spectrum as output. Now, I'm working with the fft2 and I get a spectrum which seems to be symmetric but actually peaks has different heigths and slightly different positions.
My question: is this difference due to the double performing of the one dimensional fft (as by definition is fft2 = fft(fft(X).').' ) or the fft2 output is not symmetric as in the fft case?
Thanks

回答 (1 件)

Manas Meena
Manas Meena 2021 年 5 月 31 日
The spectrum seems to be symmetric but if you look at the spectrum matrix values you'll see that is not the case. This is caused by the round-off error. If you want to ensure a symmetric matrix you must specify the "symmetric" option on ifft2 function.
For example,
X = ifft2(Y,'symmetric')

カテゴリ

Help Center および File ExchangeFourier Analysis and Filtering についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by