Getting imaginary values when applying a 2D bandpass filter
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I am trying to bandpass filter a 2D matrix Q. I create my bandpass filter by following the steps in fwind2 such that my final filter h looks sensible.
I then simply try Q_filtered=ifft2(fft2(Q).*h); but Q_filtered now has imaginary values. I have tried fftshift without success.
Any ideas on how to do this properly?
Thanks
0 Commenti
Risposte (1)
Image Analyst
il 18 Gen 2014
If you don't have a real and symmetric signal, then your FT will be Hermitian (complex). See the table on this page for properties such as this: http://www.cv.nrao.edu/course/astr534/FourierTransforms.html
Time Domain Frequency Domain
real hermitian (real=even, imag=odd)
imaginary anti-hermitian (real=odd, imag=even)
even even
odd odd
real and even real and even (i.e. cosine transform)
real and odd imaginary and odd (i.e. sine transform)
imaginary and even imaginary and even
imaginary and odd real and odd
2 Commenti
Image Analyst
il 20 Gen 2014
Modificato: Image Analyst
il 20 Gen 2014
According to the table, a real signal gives a Hermitian fft. Hermitian means complex, meaning it has an imaginary component. The only way you'd get a purely real output is if you have a completely symmetrical input, which I doubt you have. So, after that explanation, can you explain why you think you should have a purely real signal (no imaginary component)?
Vedere anche
Categorie
Scopri di più su Frequency Transformations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!