Inverse fourier transform Imginary Components
11 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
采纳的回答
Walter Roberson
2015-5-30
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 个评论
Image Analyst
2015-5-30
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 个)
Image Analyst
2015-5-30
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.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!