How to calculate power of a 2D fourier transformed image?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Kevin
am 20 Apr. 2015
Beantwortet: Image Analyst
am 21 Apr. 2015
Hi. We are given some training data and asked to find power spectral features.
f = imread('S1.GIF');
z = fft2(double(f));
q = fftshift(z);
Magq = abs(q);
Phaseq = angle(q);
imagesc(log(abs(q)+1));
colorbar;
I used the code above to fourier transform the image. The image before transformed is

And the image after is

I want to calculate the power from 200 - 400(x-axis) using this method

by formula

I don't know how to use the image to calculate the power. Could anyone give me some help? Thank you very much!
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 21 Apr. 2015
I don't see anything wrong with abs() like you're using. It does the formula you gave. Then just sum Magq in the 200-400 column zone:
p = sum(Magq(:, 200:400));
0 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!