PSNR

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(replace <math> with images generated @ Wikipedia)
m (format inline math)
Line 7: Line 7:
 
[[File:PSNR_Eq2.png|x40|<math>MSE(I,K) = \frac{1}{M} \cdot \sum_{j=0}^{width-1} \sum_{k=0}^{height-1} &#124; I(j,k) - K(j,k) &#124;^{2}</math>]]
 
[[File:PSNR_Eq2.png|x40|<math>MSE(I,K) = \frac{1}{M} \cdot \sum_{j=0}^{width-1} \sum_{k=0}^{height-1} &#124; I(j,k) - K(j,k) &#124;^{2}</math>]]
  
where <tt>M</tt> = <tt>width</tt> '''&middot;''' <tt>height</tt> is the number of pixels in a frame and <tt>width</tt>, <tt>height</tt> are the width and height of the frame, respectively, in pixels.  
+
where ''{{Serif|M}} = {{Serif|width}} '''&middot;''' {{Serif|height}}'' is the number of pixels in a frame and {{Serif|''width''}}, {{Serif|''height''}} are the width and height of the frame, respectively, in pixels.  
  
The double-sum term states that <tt>(j,k)</tt> runs over all pixels of the frame, summing the absolute value of the difference of I, K functions raised to the power of 2.
+
The double-sum term states that {{Serif|(''j'',''k'')}} runs over all pixels of the frame, summing the absolute value of the difference of {{Serif|''I, K''}} functions raised to the power of 2.
  
 
For more details see: http://en.wikipedia.org/wiki/PSNR .
 
For more details see: http://en.wikipedia.org/wiki/PSNR .
  
 
[[Category:Glossary]]
 
[[Category:Glossary]]

Revision as of 17:28, 21 November 2015

PSNR is measured in decibels. It's defined as

<math>PSNR(I,K) = 20 \cdot \log_{10}{(\frac{255}{\sqrt{MSE(I,K)}})}</math>

with

<math>MSE(I,K) = \frac{1}{M} \cdot \sum_{j=0}^{width-1} \sum_{k=0}^{height-1} | I(j,k) - K(j,k) |^{2}</math>

where M = width · height is the number of pixels in a frame and width, height are the width and height of the frame, respectively, in pixels.

The double-sum term states that (j,k) runs over all pixels of the frame, summing the absolute value of the difference of I, K functions raised to the power of 2.

For more details see: http://en.wikipedia.org/wiki/PSNR .

Personal tools