How do I generate a two dimensional Fourier Transform with a given image in a .mat file?
Mostrar comentarios más antiguos
I don't even know how to start. Help will be much appreciated.
Thank you
1 comentario
David Young
el 9 de Mzo. de 2015
The documentation for fft2 and save will help you get started.
Respuestas (2)
Konstantinos Sofos
el 9 de Mzo. de 2015
Hi,
Mathworks documentation is excellent and is always a good point to start. Have a look here Fourier Transform and Image Transforms
Assuming that I is your input image and F is its Fourier Transform (i.e. F = fft2(I))
You can use this code:
F = fftshift(F); % Center FFT
F = abs(F); % Get the magnitude
F = log(F+1); % Use log, for perceptual scaling, and +1 since log(0) is undefined
F = mat2gray(F); % Use mat2gray to scale the image between 0 and 1
imshow(F,[]); % Display the result
Regards
1 comentario
sean darmadi
el 9 de Mzo. de 2015
Image Analyst
el 9 de Mzo. de 2015
0 votos
Attached are two of my FFT2 demos for you.
2 comentarios
sean darmadi
el 9 de Mzo. de 2015
Image Analyst
el 9 de Mzo. de 2015
You forgot to attach your .mat file and your .m file so I'm unable to do anything to help you (yet).
Categorías
Más información sobre Fourier Analysis and Filtering en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!