How to find power spectral density of an image?

37 ビュー (過去 30 日間)
PRASHANT AMBADEKAR
PRASHANT AMBADEKAR 2017 年 8 月 14 日
コメント済み: Image Analyst 2017 年 9 月 7 日
What code is written in MATLAB to find PSD of an image?

採用された回答

Baptiste Ottino
Baptiste Ottino 2017 年 8 月 15 日
This might help you.

その他の回答 (1 件)

Image Analyst
Image Analyst 2017 年 8 月 15 日
Use fft2() and then take the magnitude of the resulting image.
  2 件のコメント
norliana khamisan
norliana khamisan 2017 年 9 月 7 日
i also find the same problem to obtain PSD in image processing. currently, i'm using gabor wavelet as feature extraction method and already got the magnitude response from gabor equation.i plan to obtain PSD as a feature from magnitude response gabor, however it indicates error.
the error is Error using fft2 Too many output arguments
Coding as below:
gbreal= exp(-.5*(x_theta.^2/sigma_x^2+y_theta.^2/sigma_y^2)).*cos(2*pi/lambda*x_theta+psi);
gbimaginary= exp(-.5*(x_theta.^2/sigma_x^2+y_theta.^2/sigma_y^2)).*sin(2*pi/lambda*x_theta+psi);
title('filtered image');
imagesc(gbreal);
response_real= conv2(Bearing,gbreal); %Output of filter
imagesc(response_real);
Magnituderesponse_real = abs(response_real);
[t,n] = fft2(Magnituderesponse_real);
Image Analyst
Image Analyst 2017 年 9 月 7 日
Read this http://www.mathworks.com/matlabcentral/answers/13205#answer_18099 then fix the formatting while you're also including the complete error message with the line number and code of the offending line, and provide code for the variables needed in computing gbreal. You can read this and then post a brand new discussion/question, unless you need Prashant's input or want to inform him of your needs.

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by