Inverse fourier transform Imginary Components

When I take an image and do fft on it in Matlab it produces a complex matrix. If I take the ifft of that image, it produces a double array. When doing the ifft, does matlab discard the imaginary component of the image, if any?

 채택된 답변

Walter Roberson
Walter Roberson 2015년 5월 30일

0 개 추천

When you have a set of fourier coefficients that are in complex conjugates pairs, then the result of the inverse fourier is always real-valued; see here for one
It is not a matter of discarding any complex part: it is that the result of the inverse transformation you did had only 0's for the complex part, and MATLAB automatically leaves out an all-0 complex part.
If you had done an inverse fft of coefficients that did not have the complex-conjugate symmetries then the result would have been something that had non-zero complex parts.

댓글 수: 2

Will this hold even if I convolve the image with a filter, and then do ifft.
Yes, if you convolve the spatial domain image in the spatial domain with a spatial filter. A "round trip" will still be real.
No, if you convolve the spectrum in the Fourier domain with a filter. That may make the spectrum non-Hermitian and thus introduce imaginary components when transformed back to the spatial domain.

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

추가 답변 (2개)

Greg Heath
Greg Heath 2015년 5월 30일

0 개 추천

Matlab discards nothing of the ifft.
Image Analyst
Image Analyst 2015년 5월 30일

0 개 추천

Ikenna, look at the Fourier Transform properties table about a third of the way down this page: http://www.cv.nrao.edu/course/astr534/FourierTransforms.html
I haven't tried it, but if you do a round trip with a real matrix and have some small imaginary component then it could be just some kind of precision/rounding/truncation issue, since the theory says it should be purely real again. But any imaginary component should be very small if it's even there at all.

카테고리

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

질문:

2015년 5월 30일

댓글:

2015년 5월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by