how can i do 2d dft for image without using built-in function(fft2) and get matrix values for the separated magnitude and phase of an image after 2d dft?

1 次查看(过去 30 天)
i need to do 2d dft for an image using normal formula and get matrix values for separated mag and phase.

回答(1 个)

Steve Eddins
Steve Eddins 2013-10-30
F = fft2(f);
F_mag = abs(F);
F_phase = angle(F);

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by