How can I swap the phases of two fourier transforms?
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
In my assignment I am supposed to swap phases of the Fourier transform for two images and perform the inverse Fourier transform to reconstruct the images using ifft2(). I am new to Matlab and all I could find was extracting the phase from a fourier transform using angle(), but how do I assign it to another fourier transform?
0 comentarios
Respuestas (1)
Bjorn Gustavsson
el 1 de Feb. de 2021
Tip: Think about the difference between Cartesian and polar representation of a complet number are, also be prepared to use element-wise multiplication (i.e.: .*) and the exp-function.
HTH
5 comentarios
Bjorn Gustavsson
el 3 de Feb. de 2021
Sounds exactly right! But if you are a bit unsure about the assignment of variables and such I suggest that you browse through the on-ramp courses: matlab-onramp. That is intended to get you up and running as fast as possible.
With regards to the dimensions-nuisance: You might (I've neither thought nor tested this) get somewhere by zero-padding the fft of the smaller images
Ver también
Categorías
Más información sobre Fourier Analysis and Filtering 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!