What do "fftshift" do exactly for an image ?

 채택된 답변

Image Analyst
Image Analyst 2015년 2월 16일

0 개 추천

Normally the "center" or the 0 frequency location of the spectrum is at the first and last element, and the "ends" of the spectrum (highest frequencies) are at the center of the array. That's just how the fft works. But that's confusing for display because the low frequencies are appearing in two disconnected locations. So fftshift() moves the zero frequency location to the middle of the array so that when you display it with imshow() or plot(), it looks like you'd expect.

댓글 수: 5

bh dhouha
bh dhouha 2015년 2월 16일
can you explain it more with an image please?
Image Analyst
Image Analyst 2015년 2월 16일
See my attached demos.
Youssef  Khmou
Youssef Khmou 2015년 2월 16일
addition : the first element is the sum of signal components.
bh dhouha
bh dhouha 2015년 2월 17일
Image analyst you said: "Normally the "center" or the 0 frequency location of the spectrum is at the first and last element, and the "ends" of the spectrum (highest frequencies) are at the center of the array. That's just how the fft works", i would like to understand the location of each frequency in the spectrum, is there a document on this or something that explains this point?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Fourier Analysis and Filtering에 대해 자세히 알아보기

질문:

2015년 2월 16일

댓글:

2015년 2월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by