Power density spectrum of an image needed for further calculations

4 vues (au cours des 30 derniers jours)
Thorsten Zwinger
Thorsten Zwinger le 19 Mai 2017
Commenté : Babu Biswas le 20 Fév 2020
Hi there,
I need the density spectrum of an image. I found a calculation which looks like this:
img1 = imread('00001.tif');
F = fftshift(fft2(img1));
F_abs = abs(F).^2;
But I want a plain number which represents the whole density for further calculations. Is it mathematecally correct if I take the mean2(F_abs) for this or do I have to integrate something again?
Best wishes, Thorsten

Réponses (1)

Sebastian K
Sebastian K le 22 Mai 2017
Modifié(e) : Sebastian K le 22 Mai 2017
Hi Thorsten,
I believe you need to clarify what type of a "metric" or "measure" you are looking for in order to describe your image. When you say that you are looking for a "plain number", do you mean a scalar value?
"Power spectral density" is defined as the power content of a signal across its spectrum (frequency contents). For instance if we are talking about a simple signal in time domain, the power spectral density will be an array that shows how much power is associated with certain frequencies in the signal.
In the case of an image, you can think of it as a two-dimensional signal. Again, the power spectral density will be a function of the frequencies, and it will be represented as a 2-D array.
If you are looking for a scalar quantity, you should clarify what it is that you are trying to measure.
For instance, if we are talking about a 1-D sequence, signal to noise ratio (SNR) is a scalar quantity that can be used.
For images, you could also look into SNR and Peak SNR , but I am not sure if this is the kind of metric you would want to use. Also note that you would need to provide a reference image in order to calculate the SNR.
I hope this helps.
Sebastian
  1 commentaire
Babu Biswas
Babu Biswas le 20 Fév 2020
will u write a code for me to calculate SNR, PSNR, MSE, RMSE, NRMSE for a noisy signal and a noise free signal?
It will be great help for me sir

Connectez-vous pour commenter.

Catégories

En savoir plus sur Parametric Spectral Estimation dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by