Sunteți pe pagina 1din 3

5/11/2020 How to compute the PSNR (peak signal-to-noise ratio) of a digitized image expressed in the form of an m x n matrix - Quora

Search for questions, people, and topics Sign In

Quora uses cookies to improve your experience. Read more

Digital Image Signal to Noise Ratio Digital Image Processing (DIP)

How do I compute the PSNR (peak signal-to-noise


ratio) of a digitized image expressed in the form of an
m x n matrix?

2 Answers

Rehan Maroofi, former Technical Associate at Wipro BPO (2005-2006)


Updated Oct 20, 2018 · Author has 218 answers and 447.1k answer views

Let us consider our image matrix (3x3 to keep things easy to understand):

[121

236

582]

So, we have the “SIGNAL” part of our task complete.

Now, we need to find the “NOISE” part of our problem. When we have these two, we just
need to find the ratio of signal to noise.

“NOISE” is any unwanted addition to our signal.

Let us say that we transmitted our image over a noisy channel, and the image matrix
received at the other end was:

[131

235

5 8 1]

Obviously, there is a change in our received image.

The noise can be calculated as the difference between the received image and the sent
image, so in our case it would be:

[010

0 0 -1

0 0 -1]

Since, noise can be positive or negative as seen above, if we summed positive and negative
noises, many would cancel each other out. To avoid this, we use square of the noise. So, all
noise values, positive or negative, become positive.

Then we simply find the mean or average of these positive values. Related Questions

https://www.quora.com/How-do-I-compute-the-PSNR-peak-signal-to-noise-ratio-of-a-digitized-image-expressed-in-the-form-of-an-m-x-n-matrix 1/3
5/11/2020 How to compute the PSNR (peak signal-to-noise ratio) of a digitized image expressed in the form of an m x n matrix - Quora
This is called the MSE or mean square error. (The M and N in the MSE formula are the
number of rowsSearch
andfor questions,
columns people,
in our imageand topics
matrix). Sign In
How do I calculate the signal-to-noise ratio of an
image?
Using MSE in the formula above for PSNR, we can then calculate the PSNR.
What is a signal-to-noise ratio?
In the formula for PSNR, the value of R is decided by the format of the image. If the image
How can I calculate the Signal to Noise ratio?
is an 8 bit image, R = 255. If the image is expressed using floating point numbers, R = 1.
How is signal-to-noise ratio calculated?
So, let us assume that our image is 8 bit, so R=255.
Why is signal-to-noise ratio important?
MSE = [ (1)^2 + (-1)^2 + (-1)^2 ] / (3 * 3) = 3/9 = 0.3333…
What does signal-to-noise ratio mean in terms of
so PSNR = 10 log (255 * 255 * 3) = 52.9 dB (approximately) for our image example.
modelling datasets?

I hope this will help to get you on your way.


3.5k views · View 25 Upvoters · Answer requested by Souvik Chakraborty

Related Questions More Answers Below

How do I calculate the signal-to-noise ratio of an image?

What is a signal-to-noise ratio?

How can I calculate the Signal to Noise ratio?

How is signal-to-noise ratio calculated?

Why is signal-to-noise ratio important?

Konstantinos Konstantinides, EE, worked in digital signal and image processing


Answered Sep 25, 2017 · Author has 34.4k answers and 27.6m answer views

Check

Peak signal-to-noise ratio - Wikipedia

However, what is your “noise”? If there is an “original image” the noise corresponds to the
MSE between them.
1.8k views · View 1 Upvoter

Related Questions

How do I calculate the signal-to-noise ratio of an image?

What is a signal-to-noise ratio?

How can I calculate the Signal to Noise ratio?

How is signal-to-noise ratio calculated?

Why is signal-to-noise ratio important?

What does signal-to-noise ratio mean in terms of modelling datasets?

How do I check the signal-to-noise ratio of an audio signal?

Why isn't signal-to-noise ratio expressed in a percentage instead of in dB?

How do I affordably measure WiFi signal to noise ratio (SNR, S/R)?

Why is my signal to noise ratio negative?

What does the signal-to-noise ratio (SNR) mean in BER (bit error rate) versus an SNR
curve?

How is the signal-to-noise ratio calculated?

How do you calculate signal to noise ratio on a graph?

How can I plot the relationship between the probability of an error and the signal to noise
ratio?

What is the best way to implement blind deconvolution for signal r(n) = h(n) * s(n) + a(n) in
Matlab?

https://www.quora.com/How-do-I-compute-the-PSNR-peak-signal-to-noise-ratio-of-a-digitized-image-expressed-in-the-form-of-an-m-x-n-matrix 2/3
5/11/2020 How to compute the PSNR (peak signal-to-noise ratio) of a digitized image expressed in the form of an m x n matrix - Quora

Search for questions, people, and topics Sign In


About · Careers · Privacy · Terms · Contact

https://www.quora.com/How-do-I-compute-the-PSNR-peak-signal-to-noise-ratio-of-a-digitized-image-expressed-in-the-form-of-an-m-x-n-matrix 3/3

S-ar putea să vă placă și