Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am filtering a blurred image, and want to evaluate the performance of Peak Signal to Noise Ratio (PSNR) in Mathematica version 9.0. But I am facing the problem of evaluating the PSNR. Could anyone explain how to do this?

share|improve this question
Welcome to Mathematica SE ! Please, provide the code you are working on in order to receive constructive answers. – Sektor Aug 8 '13 at 13:46
Actually, I have successfully calculated the various parameters like MEAN INTENSITY, ENTROPY & STANDARD DEVIATION INTENSITY, etc. of the images using MMA 9.0. But, it is told me to calculate also the PSNR for my class room assignment. If possible, please provide the necessary guidelines of how to go about it – user8727 Aug 8 '13 at 13:58

PSNR is a measure of the difference between two images (see for instance the article in wikipedia). Mathematica has a function for calculating the MSE (mean squared error) between two images

 ImageDistance[img1, img2]

The default measure in this calculation is the Euclidean distance, which is probably what you need to calculate the PSNR. If not, ImageDistance takes a DistanceFunction option which is quite flexible.

share|improve this answer
ThankU soo much for Ur time and kind reply..... – user8727 Aug 8 '13 at 14:27
@user8727 - you're welcome, but the normal thing to do is to click the little up arrow if you find the answer useful. – bill s Aug 8 '13 at 14:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.