Getting imaginary values when applying a 2D bandpass filter
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Image Analyst
el 18 de En. de 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 comentarios
Image Analyst
el 20 de En. de 2014
Editada: Image Analyst
el 20 de En. de 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)?
Ver también
Categorías
Más información sobre Frequency Transformations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!