Skip to content

Instantly share code, notes, and snippets.

@leandromoreira
Last active October 9, 2016 17:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leandromoreira/9dd06679f234902b7669198ca466f2ab to your computer and use it in GitHub Desktop.
Save leandromoreira/9dd06679f234902b7669198ca466f2ab to your computer and use it in GitHub Desktop.
MSE = ∑ ∑ ( [n1[i]-n2[i]] ) ^ 2 / m * n
*n1 is the original image, n2 the comparable image, m and n are the image size
PSNR = 10 log₁₀ ( MAX ^ 2 / MSE )
*MAX is the maximum possible pixel value of the image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment