View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Image Quality Measures

4.3 | 18 ratings Rate this file 73 Downloads (last 30 days) File Size: 1.02 MB File ID: #25005 Version: 1.1
image thumbnail

Image Quality Measures


Athi (view profile)


12 Aug 2009 (Updated )

Image quality measures are calculated for a distorted image with reference to an original image

| Watch this File

File Information

Image / Picture Quality Measures

In this application, different image quality measures are calculated for a distorted image with reference to an original image. To test the application, a set of 20 distorted images is included in this package. The list of Image Quality measures implemented in this package include,

1. Structural Content (SC)
2. Mean Square Error (MSE)
3. Peak Signal to Noise Ratio (PSNR in dB)
4. Normalized Cross-Correlation (NCC)
5. Average Difference (AD)
6. Maximum Difference (MD)
7. Normalized Absolute Error (NAE)

Refer "Reference.png" for the mathematical expressions implemented in this package.

Original images are kept in the folder "OriginalImages".
Distorted images are kept in the folder "DistortedImages".

Required Products Image Processing Toolbox
MATLAB release MATLAB 6.5 (R13)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (21)
12 Jun 2016 minseok Kim

thank you very much

Comment only
26 Apr 2016 RR

RR (view profile)

19 Apr 2016 kapil raviya

thank you very much sir

12 Apr 2016 Yousif Hassan

thank you

21 Jul 2015 shivam agrawal

thank you

30 Mar 2015 abhilasha malhotra

04 Mar 2015 Muhammad Rizky


07 Jan 2014 patel Shital

24 Aug 2013 Sudharsan

24 Jan 2013 india

india (view profile)

30 Mar 2012 Akshay Bhosale

01 Nov 2011 Emad Taha

very good work

23 Jun 2011 Adi Navve

Adi Navve (view profile)

Adding to Sean de, I don't know what does "NormalizedCrossCorrelation" compute but it is not normalized cross correlation, not even close. This is wrong and misleading. One should have more responsibility over what he claims in his published code.

07 Jun 2011 Sean de

Sean de (view profile)

07 Jun 2011 Sean de

Sean de (view profile)

Don't overwrite the (VERY) important built-in function: error!

Maximum Difference is a pretty much useless measure. You want the maximum absolute difference since you're looking for magnitude.

Assumptions are made in the PSNR calculation that the images have a max of 255 (that for uint8) - this is never alluded to in the documentation.

No error checking.

This suite has potential but the documentation needs to be augmented.

Three stars for now.

Comment only
25 Mar 2011 Tian

Tian (view profile)

21 Jul 2010 uitm put

dear sir,

i have tried your algorithm in Image and Picture Quality Measures.
But i could not measure the PSNR using lena (from folder "OriginalImages") and lena (from folder "DistortedImages").
In Matlab occured the message " ??? Error using ==> minus, Matrix dimensions must agree".
Could you please give me any ideas how to solve this problem.

Puteri Zirwatul Nadila
Postgraduate Student UITM Malaysia

Comment only
23 Jun 2010 RAJKUMAR Palaniappan

hello Sir
can i have your Email id so that i can clarify many more doubts

Thanking you

06 Oct 2009 Deni

Deni (view profile)

Sir, Could you please explain what Does 3 values given by PSNR and MSE for .jpeg extension files means?? (is it because .jpeg consist 3 samples, so it gives 3 values for PSNR and MSE??)

20 Sep 2009 Shrinivas

Good application for quality comparison of two images.
Sir, I would like to know
* To what extent distImg is close to OrigImg ( how much % )

12 Aug 2009 Christopher

Works well

07 Jun 2011 1.1

Author Info Updated

Contact us